Merge "cinder-backup - coordination not initialized" into stable/newton
This commit is contained in:
commit
98a11913ea
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue