Merge "Include pending task in log message on skip sync_power_state"
This commit is contained in:
commit
9fdc2de700
|
@ -5262,7 +5262,9 @@ class ComputeManager(manager.Manager):
|
|||
for db_instance in db_instances:
|
||||
if db_instance['task_state'] is not None:
|
||||
LOG.info(_("During sync_power_state the instance has a "
|
||||
"pending task. Skip."), instance=db_instance)
|
||||
"pending task (%(task)s). Skip."),
|
||||
{'task': db_instance['task_state']},
|
||||
instance=db_instance)
|
||||
continue
|
||||
# No pending tasks. Now try to figure out the real vm_power_state.
|
||||
try:
|
||||
|
@ -5323,7 +5325,9 @@ class ComputeManager(manager.Manager):
|
|||
# yet. In this case, let's allow the loop to continue
|
||||
# and run the state sync in a later round
|
||||
LOG.info(_("During sync_power_state the instance has a "
|
||||
"pending task. Skip."), instance=db_instance)
|
||||
"pending task (%(task)s). Skip."),
|
||||
{'task': db_instance.task_state},
|
||||
instance=db_instance)
|
||||
return
|
||||
|
||||
if vm_power_state != db_power_state:
|
||||
|
|
Loading…
Reference in New Issue