MongoDB prepare needs to wait for Mongo to actually start

Bug #1474522 reported by Matthew Van Dijk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
Matthew Van Dijk

Bug Description

The code in the manager's prepare function tells the service to start but does not wait for it to complete. This causes errors if the process startup takes a while (frequently happens for config servers). A poll on the service status needs to be done right after this line: https://github.com/openstack/trove/blob/master/trove/guestagent/datastore/experimental/mongodb/manager.py#L64

Changed in trove:
assignee: nobody → Matthew Van Dijk (mvandijk)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/203650

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/203650
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=df5da486ebdfa9221f2df7cb4ba302177d5e5eab
Submitter: Jenkins
Branch: master

commit df5da486ebdfa9221f2df7cb4ba302177d5e5eab
Author: Matt Van Dijk <email address hidden>
Date: Wed Jul 15 11:31:11 2015 -0400

    MongoDB prepare needs to wait for Mongo to start

    MongoDB's prepare method assumes that the mongod service has finished
    starting. This may not be the case. It needs to wait.
    The fix is to use the polling code in the start_db function, so factor
    this out.

    Change-Id: I2f1e6ecec3f9c0b438007f01334168ea4fbe3884
    Closes-bug: #1474522

Changed in trove:
status: In Progress → Fix Committed
Changed in trove:
milestone: none → liberty-2
importance: Undecided → Medium
Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: liberty-2 → 4.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.