Bug 957335

Summary: [abrt] vdsm-4.10.3-10.fc18: libvirt.py:102:openAuth:libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
Product: [Fedora] Fedora Reporter: Iulian <iv_i170511>
Component: vdsmAssignee: Yaniv Bronhaim <ybronhei>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dougsland, fsimonce, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:a16e1da893e2e9a6913e1ca66e9868db4dc11127 infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-29 17:51:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: dso_list
none
File: environ none

Description Iulian 2013-04-27 09:55:32 UTC
Version-Release number of selected component:
vdsm-4.10.3-10.fc18

Additional info:
cmdline:        python /usr/share/vdsm/nwfilter.pyc
executable:     /usr/share/vdsm/nwfilter.pyc
kernel:         3.8.8-203.fc18.i686.PAE
uid:            0
ureports_counter: 1

Truncated backtrace:
libvirt.py:102:openAuth:libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

Traceback (most recent call last):
  File "/usr/share/vdsm/nwfilter.py", line 85, in <module>
    main()
  File "/usr/share/vdsm/nwfilter.py", line 33, in main
    conn = libvirtconnection.get()
  File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line 148, in get
    conn = utils.retry(libvirtOpenAuth, timeout=10, sleep=0.2)
  File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 934, in retry
    return func()
  File "/usr/lib/python2.7/site-packages/libvirt.py", line 102, in openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

Local variables in innermost frame:
flags: 0
auth: [[2, 5], <function req at 0xb6e7cf44>, None]
ret: None
uri: 'qemu:///system'

Comment 1 Iulian 2013-04-27 09:55:35 UTC
Created attachment 740743 [details]
File: backtrace

Comment 2 Iulian 2013-04-27 09:55:40 UTC
Created attachment 740744 [details]
File: core_backtrace

Comment 3 Iulian 2013-04-27 09:55:45 UTC
Created attachment 740745 [details]
File: dso_list

Comment 4 Iulian 2013-04-27 09:55:47 UTC
Created attachment 740746 [details]
File: environ

Comment 6 Yaniv Bronhaim 2013-04-28 12:40:24 UTC
I'm not sure that I understand the description correctly,
Are you trying to run "python /usr/share/vdsm/nwfilter.pyc" and get this exception? This command runs each restart of vdsmd service, if it throws exception vdsm deamon does not start and we restart libvirt service that should fix this socket error (by creating new one).
If this exception is raised during vdsm run and you see that in the log, Bug 852956 fixes it and you can close this bug as duplicate.

Comment 7 Iulian 2013-04-29 17:51:03 UTC

*** This bug has been marked as a duplicate of bug 852956 ***