From 7c87c2f5f744a86d4d854e47848b903ab2674795 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Fri, 6 May 2022 16:27:11 -0400 Subject: [PATCH] Switch libvirt event timeout message to warning At the moment, if libvirt times out in detaching a device, it reports this as an ERROR even if the process will be retried and eventually succeed. We should just log a warning since there's nothing to do, and if the process fails after all the retries, it will log an ERROR anyways. Closes-Bug: #1972023 Change-Id: Idda12db5758706a97b7841571b9ecd3dc6e6905e --- nova/virt/libvirt/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py index 34526abc38..128c2e69df 100644 --- a/nova/virt/libvirt/driver.py +++ b/nova/virt/libvirt/driver.py @@ -2567,7 +2567,7 @@ class LibvirtDriver(driver.ComputeDriver): # ServerRescueNegativeTestJSON.test_rescued_vm_detach_volume # Log a warning and let the upper layer detect that the device is # still attached and retry - LOG.error( + LOG.warning( 'Waiting for libvirt event about the detach of ' 'device %s with device alias %s from instance %s is timed ' 'out.', device_name, dev.alias, instance_uuid)