Remove unnecessary sleep

This patch removed unnecessary sleep which existed in host-failure
recovery process.

Change-Id: Ic1df0200c8ddf7d6be7548f1df5b37b74a9ba737
Closes-Bug: #1736906
This commit is contained in:
Kengo Takahara 2017-12-11 17:23:53 +09:00
parent 42e4807626
commit 8cac6b77a9
1 changed files with 0 additions and 7 deletions

View File

@ -254,13 +254,6 @@ class EvacuateInstancesTask(base.MasakariTask):
self.novaclient.enable_disable_service(
context, reserved_host.name, enable=True)
# Sleep until nova-compute service is marked as enabled.
msg = ("Sleeping %(wait)s sec before starting recovery "
"thread until nova recognizes the node up.")
LOG.info(msg, {
'wait': CONF.wait_period_after_service_update})
eventlet.sleep(CONF.wait_period_after_service_update)
# Set reserved property of reserved_host to False
reserved_host.reserved = False
reserved_host.save()