From 6ea939b792279595e37b80fff3d44c1e712d4fc7 Mon Sep 17 00:00:00 2001 From: melanie witt Date: Fri, 26 Jan 2018 01:30:51 +0000 Subject: [PATCH] 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 --- nova/virt/libvirt/driver.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py index 9f054c8e34ba..8d8ad6046e78 100644 --- a/nova/virt/libvirt/driver.py +++ b/nova/virt/libvirt/driver.py @@ -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: