Excessive warnings about snapshotting a non-running instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Triaged
|
Low
|
Matt Riedemann |
Bug Description
We see this warning from the compute manager in CI runs:
Mar 22 16:45:28.061143 ubuntu-
state=3 is PAUSED and 1=RUNNING.
And this:
Mar 22 16:45:51.800064 ubuntu-
state=4 is SHUTDOWN.
Maybe this is related to bug 1741667 which for older versions of libvirt, trying to snapshot a PAUSED instance would hang:
https:/
If you look at that patch, it's specifically about doing *live* snapshots with the libvirt driver on a SHUTDOWN or PAUSED instance. Live snapshot is controlled in the libvirt driver via a config option:
[workarounds]
That now defaults to False so we always attempt a live snapshot with the libvirt driver, at least in CI runs.
Given the guest state of the instance during the snapshot is only a concern for the underlying virt driver and if it's doing a live snapshot or not, (which should probably be a capability trait on the compute node via the driver btw), and the API allows users to snapshot paused and stopped instances:
We should either downgrade the warning to DEBUG level or remove it completely from the compute manager since it's really virt-driver specific.
summary: |
- Excessive warnings about snapshotting a paused instance + Excessive warnings about snapshotting a non-running instance |
Another thing we should cleanup is the documentation around the "disable_ libvirt_ livesnapshot" config option because it talks about libvirt 1.2.2 but the minimum required libvirt version at this point is 1.2.9, so that's confusing. Per bug 1741667, we should probably mention that live snapshot of a non-running instance isn't known to work until at least libvirt 3.6.0 per our test infrastructure. Anything between 1.2.9 and 1.3.6 would have to be tested for snapshotting a non-running instance.