Image sync fails when a VM refers to an unrelated image that doesn't exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
uvtool |
Triaged
|
Low
|
Unassigned |
Bug Description
When trying to run:
uvt-simplestrea
the following error occurs:
Traceback (most recent call last):
File "/usr/bin/
uvtool.
File "/usr/lib/
args.func(args)
File "/usr/lib/
clean_
File "/usr/lib/
volume_
File "/usr/lib/
volume = conn.storageVol
File "/usr/lib/
raise libvirtError(
libvirt.
I'm not sure why it is referring to a completely unrelated storage pool (the pool is "home-kvm" whereas uvtool uses the "uvtool" pool). The focal-server-
I have not delved deep because I'm unsure where to start, I am a new uvtool user!
Hi,
The image sync removes unused images. To do that it to scan all VMs to see if any are using an image that could be deleted. It sounds like you have a VM defined that refers to a volume that no longer exists? I think uvtool is trying to look it up to see if it matches one of its own volumes. If this is true then your libvirt setup is a little bit broken.
I suppose uvtool could try to skip the VM and move on in this case, but maybe that knowledge will help you work around the problem for now.