Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 747871 - app-emulation/virt-manager-3.1.0: Libvirt connection does not support snapshots
Summary: app-emulation/virt-manager-3.1.0: Libvirt connection does not support snapshots
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
: 760872 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-11 19:37 UTC by Julien Delquié
Modified: 2021-02-11 17:17 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Delquié 2020-10-11 19:37:44 UTC
The Snapshot manager is greyed out, and the mouseover tells me that « Libvirt connection does not support snapshots ».

If I try to launch virt-manager with --debug --no-fork:
Exception ignored in: <function virDomainSnapshot.__del__ at 0x7fcc49fa7c10>
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/libvirt.py", line 7030, in __del__
[dim., 11 oct. 2020 21:28:32 virt-manager 82974] DEBUG (connection:1076) network=default status=Actif added
[dim., 11 oct. 2020 21:28:32 virt-manager 82974] DEBUG (connection:691) storage pool refresh event: pool=ISOs
    if self._o is not None:
AttributeError: 'virDomainSnapshot' object has no attribute '_o'

Same thing happens with python3.7 and also with virt-manager-2.2.1-r3.

It seems that using virsh to manage snapshot is still working great, but only has a workaround…

Reproducible: Always

Steps to Reproduce:
1. Try to manage snapshot of a VM
2. Icon is greyed out
3. Impossible to take snapshot with virt-manager
Actual Results:  
No snapshot management available.

Expected Results:  
Snapshot management available.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-11 19:43:25 UTC
Did you try upgrading libvirt to the latest version?
Comment 2 Julien Delquié 2020-10-11 21:17:58 UTC
I'm currently using app-emulation/libvirt-6.8.0.
Comment 3 Julien Delquié 2020-10-15 11:50:10 UTC
Here are more info:
- Kernel: 5.9.0-gentoo-x86_64,
- app-emulation/libvirt-6.8.0,
- app-emulation/libvirt-glib-3.0.0,
- dev-python/libvirt-python-6.8.0,
- app-emulation/virt-manager-3.1.0,
- app-emulation/spice-0.14.3,
- app-emulation/spice-protocol-0.14.1,
- net-misc/spice-gtk-0.38,
- media-libs/libglvnd-1.3.2-r1,
- media-libs/virglrenderer-0.8.2,
- app-emulation/qemu-5.1.0-r1.
Comment 4 Julien Delquié 2020-10-18 17:58:14 UTC
After some little investigations, I found a « workaround »:
- downgrade app-emulation/libvirt to 6.7.0,
- downgrade dev-python/libvirt-python to 6.7.0.

It seems that virt-manager is not yet compatible with:
- app-emulation/libvirt-6.8.0,
- dev-python/libvirt-python-6.8.0.

Especially with dev-python/libvirt-python-6.8.0.
Scripts from that package (in this version) are complaining when used by virt-manager.
Comment 5 Julien Delquié 2020-11-15 20:26:47 UTC
It seams that using the following works:
- app-emulation/libvirt-6.9.0-r1,
- dev-python/libvirt-python-6.9.0.

The issue was a bug in libvirt-python-6.8.0 upstream.
There was no problem in app-emulation/virt-manager, actually.

No more issue now. :)
Comment 6 Alexander Tsoy 2020-11-15 23:05:52 UTC
I have slightly different problem with a stable app-emulation/virt-manager-2.2.1-r3: it doesn't list VMs that have snapshots. Upgrading from libvirt-6.8.0 to 6.9.0 fixes that.
Comment 7 El Goretto 2020-11-18 09:47:30 UTC
@Julien: Thank you for this report, it was really useful.

@Alexander: I tried app-emulation/virt-manager-3.1.0 and it has the same issue you describe, I too had eventually to upgrade app-emulation/libvirt and dev-python/libvirt-python to 6.9.0 instead of simply downgrading to 6.7.0, in order to fix both issues.
Comment 8 Jonathan Davies 2020-12-05 11:53:00 UTC
It appears that this was fixed with virt-manager-3.1.0 and libvirt-6.9.0.

I pushed up virt-manager-3.2.0 and libvirt-6.10.0 this week - could someone affected by this please try this combination and see if the issue remains there?
Comment 9 hfk22 2021-01-07 05:08:45 UTC
(In reply to Jonathan Davies from comment #8)
> It appears that this was fixed with virt-manager-3.1.0 and libvirt-6.9.0.
> 
> I pushed up virt-manager-3.2.0 and libvirt-6.10.0 this week - could someone
> affected by this please try this combination and see if the issue remains
> there?

I just tested things and it worked for me with

app-emulation/libvirt-6.10.0-r2
dev-python/libvirt-python-6.10.0
app-emulation/virt-manager-3.1.0
Comment 10 hfk22 2021-01-09 22:39:09 UTC
(In reply to hfk22 from comment #9)
> (In reply to Jonathan Davies from comment #8)
> > It appears that this was fixed with virt-manager-3.1.0 and libvirt-6.9.0.
> > 
> > I pushed up virt-manager-3.2.0 and libvirt-6.10.0 this week - could someone
> > affected by this please try this combination and see if the issue remains
> > there?
> 
> I just tested things and it worked for me with
> 
> app-emulation/libvirt-6.10.0-r2
> dev-python/libvirt-python-6.10.0
> app-emulation/virt-manager-3.1.0

As a word of warning, although the above packages did fix the problem with snapshots, it also broke usb devices such as a camera and headset.  Reverting to

app-emulation/libvirt-6.8.0-r2
dev-python/libvirt-python-6.8.0
app-emulation/virt-manager-3.1.0

fixes the issues with the external devices, but then snapshots remain broken.  Mostly, I mention this because fixing one issue may break another, so it's not quite as easy as a version bump.
Comment 11 Matthias Maier gentoo-dev 2021-02-11 17:17:11 UTC
*** Bug 760872 has been marked as a duplicate of this bug. ***