[Kimchi-devel] [PATCH] use LibvirtConnection instead of libivrt open directily to to get connection

Crístian Viana vianac at linux.vnet.ibm.com
Thu May 22 16:07:19 UTC 2014


On 22-05-2014 11:26, shaohef at linux.vnet.ibm.com wrote:
> From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
>
> On my F20, the kimchi can not start. It report:
> $ sudo PYTHONPATH=src ./src/kimchid
> *** Running feature tests ***
> [21/May/2014:19:41:48] ENGINE Error in 'start' listener <bound method
> CapabilitiesModel._set_capabilities of
> <kimchi.model.config.CapabilitiesModel object at 0x314ac10>>
> Traceback (most recent call last):
>    File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py",
> line 197, in publish
>      output.append(listener(*args, **kwargs))
>    File "/home/shhfeng/work/workdir/kimchi/src/kimchi/model/config.py",
> line 69, in _set_capabilities
>      self.metadata_support = FeatureTests.has_metadata_support()
>    File "/home/shhfeng/work/workdir/kimchi/src/kimchi/featuretests.py",
> line 197, in has_metadata_support
>      conn = libvirt.open('qemu:///system')
>    File "/usr/lib64/python2.7/site-packages/libvirt.py", line 247, in
> open
>      if ret is None:raise libvirtError('virConnectOpen() failed')
> libvirtError: Failed to connect socket to
> '/var/run/libvirt/libvirt-sock': Connection refused
>
> [21/May/2014:19:41:48] ENGINE Shutting down due to error in start
> listener:
> [21/May/2014:19:41:48] ENGINE Bus STOPPING
>
> Now use LibvirtConnection to get connection, kimchi can work well.
>
> Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
Do you know why that problem is happening to you? Do you know why that 
is the right solution?
I'm running Kimchi on Fedora 20 as well and I don't have that error. And 
by reading the commit message, I didn't understand why using that other 
class/method works well.




More information about the Kimchi-devel mailing list