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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user