summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKengo Takahara <takahara-kn@njk.co.jp>2017-12-11 17:23:53 +0900
committerKengo Takahara <takahara-kn@njk.co.jp>2017-12-11 17:34:52 +0900
commit8cac6b77a9d6724f610a2f3ecb9c7c4dd504f661 (patch)
treeba21d1e8380d11577034d0eaa504333d3ffb1ef3
parent42e48076265fc626403c451da2a4d6e0be269acc (diff)
Remove unnecessary sleep
This patch removed unnecessary sleep which existed in host-failure recovery process. Change-Id: Ic1df0200c8ddf7d6be7548f1df5b37b74a9ba737 Closes-Bug: #1736906
Notes
Notes (review): Code-Review+2: Tushar Patil <tushar.vitthal.patil@gmail.com> Code-Review+2: Rikimaru Honjo <honjo.rikimaru@po.ntt-tx.co.jp> Workflow+1: Rikimaru Honjo <honjo.rikimaru@po.ntt-tx.co.jp> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 12 Dec 2017 01:37:27 +0000 Reviewed-on: https://review.openstack.org/527016 Project: openstack/masakari Branch: refs/heads/master
-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 355292b..8b88ccc 100644
--- a/masakari/engine/drivers/taskflow/host_failure.py
+++ b/masakari/engine/drivers/taskflow/host_failure.py
@@ -254,13 +254,6 @@ class EvacuateInstancesTask(base.MasakariTask):
254 self.novaclient.enable_disable_service( 254 self.novaclient.enable_disable_service(
255 context, reserved_host.name, enable=True) 255 context, reserved_host.name, enable=True)
256 256
257 # Sleep until nova-compute service is marked as enabled.
258 msg = ("Sleeping %(wait)s sec before starting recovery "
259 "thread until nova recognizes the node up.")
260 LOG.info(msg, {
261 'wait': CONF.wait_period_after_service_update})
262 eventlet.sleep(CONF.wait_period_after_service_update)
263
264 # Set reserved property of reserved_host to False 257 # Set reserved property of reserved_host to False
265 reserved_host.reserved = False 258 reserved_host.reserved = False
266 reserved_host.save() 259 reserved_host.save()