summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2017-12-12 01:37:27 +0000
committerGerrit Code Review <review@openstack.org>2017-12-12 01:37:27 +0000
commit4acc66e9530a1fc19b0b2451f6d0635a95eedf47 (patch)
treed5dd405d91aeafe0c58ad366c01343bb1118f7e6
parentd621267402cf85eb607e0a0f328958ca9c9c3754 (diff)
parent8cac6b77a9d6724f610a2f3ecb9c7c4dd504f661 (diff)
Merge "Remove unnecessary sleep"
-rw-r--r--masakari/engine/drivers/taskflow/host_failure.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/masakari/engine/drivers/taskflow/host_failure.py b/masakari/engine/drivers/taskflow/host_failure.py
index c4590a4..c67765a 100644
--- a/masakari/engine/drivers/taskflow/host_failure.py
+++ b/masakari/engine/drivers/taskflow/host_failure.py
@@ -264,13 +264,6 @@ class EvacuateInstancesTask(base.MasakariTask):
264 self.novaclient.enable_disable_service( 264 self.novaclient.enable_disable_service(
265 context, reserved_host.name, enable=True) 265 context, reserved_host.name, enable=True)
266 266
267 # Sleep until nova-compute service is marked as enabled.
268 msg = ("Sleeping %(wait)s sec before starting recovery "
269 "thread until nova recognizes the node up.")
270 LOG.info(msg, {
271 'wait': CONF.wait_period_after_service_update})
272 eventlet.sleep(CONF.wait_period_after_service_update)
273
274 # Set reserved property of reserved_host to False 267 # Set reserved property of reserved_host to False
275 reserved_host.reserved = False 268 reserved_host.reserved = False
276 reserved_host.save() 269 reserved_host.save()