Log pending task when instance is in unstable states
When synchronizing power state, we will ignore DELETED and ERROR states, and only log pending task when it's in unstable states. Change-Id: Ia0aa0e3fc8d577fa57530ea074093c7e8f29233f
This commit is contained in:
parent
28124994b8
commit
bec4986818
|
@ -138,10 +138,11 @@ class EngineManager(base_manager.BaseEngineManager):
|
|||
continue
|
||||
|
||||
if db_instance.status not in (states.ACTIVE, states.STOPPED):
|
||||
LOG.info(_LI("During sync_power_state the instance has a "
|
||||
"pending task (%(task)s). Skip."),
|
||||
{'task': db_instance.status},
|
||||
instance=db_instance)
|
||||
if db_instance.status in states.UNSTABLE_STATES:
|
||||
LOG.info(_LI("During sync_power_state the instance has a "
|
||||
"pending task (%(task)s). Skip."),
|
||||
{'task': db_instance.status},
|
||||
instance=db_instance)
|
||||
continue
|
||||
|
||||
if uuid not in node_dict:
|
||||
|
|
Loading…
Reference in New Issue