qemu path goes orphan upon snap revision update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MicroStack |
Triaged
|
High
|
Unassigned |
Bug Description
I had a VM lying around in stopped state for a while.
I've installed several new snaps of microstack, which basically rendered qemu to break.
It has a reference to an old (x1) version of microstack, whereas snapd only keeps the last 2 copies of the snap (in my case, x5 and x6).
When I tried to restart the whole microstack service chain, it failed as it couldn't find the qemu x1 binary (because it has been cleaned up by the snap GC).
Basically:
# systemctl status snap.microstack
Dec 06 13:19:31 abulfeda libvirtd[9811]: Cannot check QEMU binary /snap/microstac
# grep -sr qemu qemu/instance-
qemu/instance-
qemu/instance-
qemu/instance-
qemu/instance-
qemu/instance-
qemu/instance-
# ls /snap/microstack/
current x5 x6
Thank you for the bug report! I haven't been able to loop back around and reproduce this one yet (and it's going to be a fun one to test), but this definitely needs to be fixed ...