<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 <bound
method CapabilitiesModel._set_capabilities of
<kimchi.model.config.CapabilitiesModel object at
0x314ac10>><br>
Traceback (most recent call last):<br>
File
"/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line
197, in publish<br>
output.append(listener(*args, **kwargs))<br>
File
"/home/shhfeng/work/workdir/kimchi/src/kimchi/model/config.py", line
69, in _set_capabilities<br>
self.metadata_support = FeatureTests.has_metadata_support()<br>
File
"/home/shhfeng/work/workdir/kimchi/src/kimchi/featuretests.py", line
197, in has_metadata_support<br>
conn = libvirt.open('qemu:///system')<br>
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 247, in
open<br>
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>
- conn = libvirt.open('qemu:///system')<br>
+ conn = LibvirtConnection('qemu:///system').get()<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Thanks and best regards!
Sheldon Feng(冯少合)<a class="moz-txt-link-rfc2396E" href="mailto:shaohef@linux.vnet.ibm.com"><shaohef@linux.vnet.ibm.com></a>
IBM Linux Technology Center</pre>
</body>
</html>