From 5ced6b778a1dbacec2c23eec843fea7187a012dd Mon Sep 17 00:00:00 2001 From: Doug Shelley Date: Tue, 22 Sep 2015 18:11:20 +0000 Subject: [PATCH] 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 --- trove/guestagent/datastore/experimental/mongodb/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trove/guestagent/datastore/experimental/mongodb/manager.py b/trove/guestagent/datastore/experimental/mongodb/manager.py index 264b6a4b86..d74fbd5948 100644 --- a/trove/guestagent/datastore/experimental/mongodb/manager.py +++ b/trove/guestagent/datastore/experimental/mongodb/manager.py @@ -99,7 +99,7 @@ class Manager(periodic_task.PeriodicTasks): if not cluster_config and backup_info: self._perform_restore(backup_info, context, mount_point, self.app) if service.MongoDBAdmin().is_root_enabled(): - self.app.status.report_root('root') + self.app.status.report_root(context, 'root') if not cluster_config and root_password: LOG.debug('Root password provided. Enabling root.')