Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532614 - No connection possible anymore
Summary: No connection possible anymore
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-15 03:53 UTC by Sebastian Kricner
Modified: 2014-12-15 16:55 UTC (History)
0 users

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 Sebastian Kricner 2014-12-15 03:53:24 UTC
Connection attempts to libvirtd fail with following error:

Mit libvirt konnte nicht verbunden werden.

'module' object has no attribute 'VIR_CRED_AUTHNAME'

Libvirt URI is: qemu:///system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 1002, in _open_thread
    self.vmm = self._try_open()
  File "/usr/share/virt-manager/virtManager/connection.py", line 980, in _try_open
    [[libvirt.VIR_CRED_AUTHNAME,
AttributeError: 'module' object has no attribute 'VIR_CRED_AUTHNAME'

This might be a regression of app-emulation/libvirt.
Used version of virt-manager: 0.10.0

Reproducible: Always

Steps to Reproduce:
1. Upgrade to latest ebuilds of libvirt and virt-manager
2. Also problem connecting as normal user with virsh -c qemu+ssh:///system
3. Configuration uses socket authorization by group and socket file permissions.
   - No authentication used.
Actual Results:  
Not possible to use virt-manager

Expected Results:  
Able to use virt-manager in conjunction with libvirtd
Comment 1 Sebastian Kricner 2014-12-15 03:55:16 UTC
app-emulation/libvirt-1.2.10-r2:0/1.2.10
app-emulation/virt-manager-0.10.0-r2:0
Comment 2 Sebastian Kricner 2014-12-15 04:09:09 UTC
virsh -c qemu+ssh:///system was not the right way to use virsh.
Comment 3 Sebastian Kricner 2014-12-15 04:18:08 UTC
Issue with virt-manager still applies.
Ignore the brabble about virsh.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-15 12:52:38 UTC

*** This bug has been marked as a duplicate of bug 532410 ***
Comment 5 Sebastian Kricner 2014-12-15 16:28:17 UTC
Issue still persists.


equery list '*libvirt*'
 * Searching for *libvirt* ...
[IP-] [  ] app-emulation/libvirt-1.2.11:0/1.2.11
[IP-] [  ] app-emulation/libvirt-glib-0.1.8:0
[IP-] [  ] dev-python/libvirt-python-1.2.11:0

equery list '*virt-manager*'
 * Searching for *virt-manager* ...
[IP-] [  ] app-emulation/virt-manager-1.1.0:0

Mit libvirt konnte nicht verbunden werden.

'module' object has no attribute 'VIR_CRED_AUTHNAME'

Libvirt URI is: qemu:///system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 1002, in _open_thread
    "No credentials cache found" in libexc.get_error_message()):
  File "/usr/share/virt-manager/virtManager/connection.py", line 980, in _try_open
AttributeError: 'module' object has no attribute 'VIR_CRED_AUTHNAME'
Comment 6 Sebastian Kricner 2014-12-15 16:31:33 UTC
libvirtd.conf:

unix_sock_group = "libvirt"
unix_sock_ro_perms = "0777"
unix_sock_rw_perms = "0770"
unix_sock_dir = "/var/run/libvirt"
auth_unix_ro = "none"
auth_unix_rw = "none"
Comment 7 Sebastian Kricner 2014-12-15 16:48:11 UTC
Whats interesting is, upon starting virt-manager and going into "Help" - "Info" Dialog ist shows:

Virtual Machine Manager
0.10.0

But:

virt-manager --version
1.1.0
Comment 8 Sebastian Kricner 2014-12-15 16:51:01 UTC
 * Searching for *virt-mana* ...
[IP-] [  ] app-emulation/virt-manager-1.1.0:0
 * Searching for *libvirt* ...
[IP-] [  ] app-emulation/libvirt-1.2.10-r2:0/1.2.10
[IP-] [  ] app-emulation/libvirt-glib-0.1.8:0
[IP-] [  ] dev-python/libvirt-python-1.2.10:0

Same problem.

Must have to do something with the patches introduced the last days due to some CVE. Might also be a upstream issue.
Comment 9 Sebastian Kricner 2014-12-15 16:54:32 UTC
suddenly it works.
Comment 10 Sebastian Kricner 2014-12-15 16:55:04 UTC
suddenly it works.