#2189 Test mongo 1.8 for allura

v1.0.0
closed
sf-2 (994)
General
nobody
2015-08-20
2011-05-31
No

Test SFX & Allura usage of mongo 1.8

For sfpy testing, I upgraded to pymongo 1.11 and set the masters to a list (e.g. "mongodb://sft-mongo-1:25017,sft-mongo-1:25018") and the slaves to null. That might not be necessary since sfn-mongo is already a replica set (sfpy is changing from master/slave to replica set). But probably good to do anyway.

SOG can assist with sft-mongo-1 data if needed. To upgrade the RPM on a sandbox, something like this should work:

sudo yum -y remove mongodb
sudo yum -y remove mongo-stable
wget -c http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/RPMS/mongo-10gen-1.8.1-mongodb_1.x86_64.rpm
sudo yum -y install ./mongo-10gen-1.8.1-mongodb_1.x86_64.rpm

Discussion

  • Dave Brondsema

    Dave Brondsema - 2011-06-17
    • milestone: jun-17 --> jul-01
     
  • Mark Ramm - 2011-07-21
    • milestone: jul-22 --> aug-05
     
  • Anonymous - 2011-08-18

    Originally by: algorithms

    • status: open --> in-progress
    • assigned_to: Wayne Witzel III
     
  • Anonymous - 2011-08-22

    Originally by: algorithms

    I've done all the upgrading on my sandbox and have been using it since Thursday. I've run the test suites in both Allura and sfpy and I've explorer a large number of core site features that rely on mongo and they are working without incident.

    At this point, there isn't much more I can think of. Everything seems to run well. I've had to make no code changes thus far.

    • status: in-progress --> closed
     
  • Anonymous - 2011-08-22

    Originally by: algorithms

    Wasn't actually using the mongo servers when the tests run. Reconfigured to ensure new mongo servers would being used and got some tests that failed. Looking in to them.

     
  • Anonymous - 2011-08-22

    Originally by: algorithms

    • status: closed --> in-progress
     
  • Anonymous - 2011-08-25

    Originally by: algorithms

    forge:ww/2189

    updated some tests to work under mim and pymongo

    to test, use the instructions above to upgrade your sandbox to 1.8. change the data base strings in test.ini to point to your local mongo install (pay careful attention to the database names, it is pyforge not allura). run tests

    [root@h9v9029 Allura dev]# nosetests -x
    .................................................................................................................................................................................................................................................................................
    ----------------------------------------------------------------------
    Ran 273 tests in 580.289s
    
    OK
    [root@h9v9029 Allura dev]# vim test.ini # change connection strings back to mim://
    [root@h9v9029 Allura dev]# nosetests -x
    .................................................................................................................................................................................................................................................................................
    ----------------------------------------------------------------------
    Ran 273 tests in 575.831s
    
    OK
    
    • status: in-progress --> code-review
    • assigned_to: Wayne Witzel III --> Dave Brondsema
     
  • Dave Brondsema

    Dave Brondsema - 2011-08-25
    • status: code-review --> closed
     

Log in to post a comment.