Bug 701923 - RFE: start libvirtd if connection to localhost/QEMU fails and it is not running
Summary: RFE: start libvirtd if connection to localhost/QEMU fails and it is not running
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-manager
Version: 6.2
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-04 10:10 UTC by David Jaša
Modified: 2011-06-10 22:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-10 22:24:16 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description David Jaša 2011-05-04 10:10:58 UTC
Description of problem:
SSIA

Version-Release number of selected component (if applicable):
virt-manager-0.8.6-4.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. stop libvirtd if it is running
2. start virt-manager
3. double click "localhost (QEMU) - Not Connected" line
  
Actual results:
virt-manager throws error popup saying that connection could not be established and asking user to check if it is running

Expected results:
virt-manager starts libvirtd and connects to it

Additional info: 
Traceback in error popup:

unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 1022, in _try_open
    None], flags)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 102, in openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory

Comment 2 Cole Robinson 2011-06-10 22:24:16 UTC
Problem is that most of the time virt-manager is not running with sufficient privileges to start libvirtd, since it is usually run as a regular user and not root. We could attempt, but I think it would cause more confusion than it's worth. Closing as NOTABUG


Note You need to log in before you can comment on or make changes to this bug.