<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    $ sudo PYTHONPATH=src ./src/kimchid <br>
    *** Running feature tests ***<br>
    [21/May/2014:19:41:48] ENGINE Error in 'start' listener &lt;bound
    method CapabilitiesModel._set_capabilities of
    &lt;kimchi.model.config.CapabilitiesModel object at
    0x314ac10&gt;&gt;<br>
    Traceback (most recent call last):<br>
    &nbsp; File
    "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line
    197, in publish<br>
    &nbsp;&nbsp;&nbsp; output.append(listener(*args, **kwargs))<br>
    &nbsp; File
    "/home/shhfeng/work/workdir/kimchi/src/kimchi/model/config.py", line
    69, in _set_capabilities<br>
    &nbsp;&nbsp;&nbsp; self.metadata_support = FeatureTests.has_metadata_support()<br>
    &nbsp; File
    "/home/shhfeng/work/workdir/kimchi/src/kimchi/featuretests.py", line
    197, in has_metadata_support<br>
    &nbsp;&nbsp;&nbsp; conn = libvirt.open('qemu:///system')<br>
    &nbsp; File "/usr/lib64/python2.7/site-packages/libvirt.py", line 247, in
    open<br>
    &nbsp;&nbsp;&nbsp; if ret is None:raise libvirtError('virConnectOpen() failed')<br>
    libvirtError: Failed to connect socket to
    '/var/run/libvirt/libvirt-sock': Connection refused<br>
    <br>
    [21/May/2014:19:41:48] ENGINE Shutting down due to error in start
    listener:<br>
    <br>
    [21/May/2014:19:41:48] ENGINE Bus STOPPING<br>
    [21/May/2014:19:41:48] ENGINE HTTP Server
    cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 8010)) shut down<br>
    [21/May/2014:19:41:48] ENGINE Stopped thread '_TimeoutMonitor'.<br>
    [21/May/2014:19:41:48] ENGINE Stopped thread 'Autoreloader'.<br>
    [21/May/2014:19:41:48] ENGINE Bus STOPPED<br>
    [21/May/2014:19:41:48] ENGINE Bus EXITING<br>
    [21/May/2014:19:41:48] ENGINE Bus EXITED<br>
    <br>
    <br>
    I do not find the root reason. but <br>
    <font color="#cc0000">after I use LibvirtConnection to open a
      libvirt connection, kimchi can start.</font><br>
    <br>
    +from kimchi.model.libvirtconnection import LibvirtConnection<br>
    <br>
    @@ -104,7 +105,7 @@ def libvirt_supports_iso_stream(protocol):<br>
    -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; conn = libvirt.open('qemu:///system')<br>
    +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; conn = LibvirtConnection('qemu:///system').get()<br>
    <br>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Thanks and best regards!

Sheldon Feng(&#20911;&#23569;&#21512;)<a class="moz-txt-link-rfc2396E" href="mailto:shaohef@linux.vnet.ibm.com">&lt;shaohef@linux.vnet.ibm.com&gt;</a>
IBM Linux Technology Center</pre>
  </body>
</html>