MongoDB restore fails with report_root takes exactly 3 arguments

Bug #1498568 reported by Doug Shelley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
High
Doug Shelley

Bug Description

Attempting to create a Mongo instance from a backup when root-enable has been run. Guest agent log show this:

ERROR oslo_messaging.rpc.dispatcher [-] Exception during message handling: report_root() takes exactly 3 arguments (2 given)
TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
TRACE oslo_messaging.rpc.dispatcher executor_callback))
TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
TRACE oslo_messaging.rpc.dispatcher executor_callback)
TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper
TRACE oslo_messaging.rpc.dispatcher return f(*args, **kwargs)
TRACE oslo_messaging.rpc.dispatcher File "/home/ubuntu/trove/trove/guestagent/datastore/experimental/mongodb/manager.py", line 102, in prepare
TRACE oslo_messaging.rpc.dispatcher self.app.status.report_root('root')
TRACE oslo_messaging.rpc.dispatcher TypeError: report_root() takes exactly 3 arguments (2 given)
TRACE oslo_messaging.rpc.dispatcher

Doug Shelley (0-doug)
Changed in trove:
assignee: nobody → Doug Shelley (0-doug)
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/226479

Changed in trove:
status: New → In Progress
Changed in trove:
milestone: none → liberty-rc1
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

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

commit 5ced6b778a1dbacec2c23eec843fea7187a012dd
Author: Doug Shelley <email address hidden>
Date: Tue Sep 22 18:11:20 2015 +0000

    Fix Mongo report_root call to have correct args

    report_root is being called in the case of a new instance being
    created from backup when root is enabled on the originating instance.
    A change [1] was made that added the context object to the report_root
    argument list and the Mongo guest wasn't passing it.

    [1] https://review.openstack.org/#/c/124355/

    Change-Id: Id61337ae85fb980752d606bddb2f1e574a345cba
    Closes-bug: 1498568

Changed in trove:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: liberty-rc1 → 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.