Merge "cinder-backup - coordination not initialized" into stable/newton

This commit is contained in:
Jenkins 2017-03-29 04:18:12 +00:00 committed by Gerrit Code Review
commit 98a11913ea
2 changed files with 4 additions and 2 deletions

View File

@ -54,6 +54,7 @@ def main():
priv_context.init(root_helper=shlex.split(utils.get_root_helper()))
utils.monkey_patch()
gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
server = service.Service.create(binary='cinder-backup')
server = service.Service.create(binary='cinder-backup',
coordination=True)
service.serve(server)
service.wait()

View File

@ -107,7 +107,8 @@ class TestCinderBackupCmd(test.TestCase):
self.assertEqual(CONF.version, version.version_string())
log_setup.assert_called_once_with(CONF, "cinder")
monkey_patch.assert_called_once_with()
service_create.assert_called_once_with(binary='cinder-backup')
service_create.assert_called_once_with(binary='cinder-backup',
coordination=True)
service_serve.assert_called_once_with(server)
service_wait.assert_called_once_with()