Log the events we timed out waiting for while plugging vifs

We currently log that we timed out waiting for vif plugging callbacks
from neutron but we don't include detail about which vif_ids we were
waiting for. This adds the event_names to the log message to aid
in debugging.

Related-Bug: #1744361

Change-Id: I8b67f1049b6a968b1dd0d839a7f0b30aa1730eeb
This commit is contained in:
melanie witt 2018-01-26 01:30:51 +00:00
parent 233285de49
commit 6ea939b792
1 changed files with 3 additions and 2 deletions

View File

@ -5341,10 +5341,11 @@ class LibvirtDriver(driver.ComputeDriver):
destroy_disks_on_failure)
except eventlet.timeout.Timeout:
# We never heard from Neutron
LOG.warning('Timeout waiting for vif plugging callback for '
LOG.warning('Timeout waiting for %(events)s for '
'instance with vm_state %(vm_state)s and '
'task_state %(task_state)s.',
{'vm_state': instance.vm_state,
{'events': events,
'vm_state': instance.vm_state,
'task_state': instance.task_state},
instance=instance)
if CONF.vif_plugging_is_fatal: