libvirt reports "Broken pipe"

anyone encounter this problem? $ sudo PYTHONPATH=src ./src/kimchid --host "0.0.0.0" --port 8000 Loading YumUpdate features. Loaded plugins: langpacks, refresh-packagekit [16/Apr/2014:13:47:33] ENGINE Bus STARTING [16/Apr/2014:13:47:33] ENGINE Started monitor thread 'Autoreloader'. [16/Apr/2014:13:47:33] ENGINE Started monitor thread '_TimeoutMonitor'. [16/Apr/2014:13:47:33] ENGINE Serving on 0.0.0.0:8001 [16/Apr/2014:13:47:33] ENGINE Serving on 0.0.0.0:8000 *** Running feature tests *** 127.0.0.1 - - [16/Apr/2014:13:47:34] "HEAD /images/icon-fedora.png HTTP/1.1" 200 4449 "" "" 127.0.0.1 - - [16/Apr/2014:13:47:34] "GET /images/icon-fedora.png HTTP/1.1" 206 4449 "" "" 127.0.0.1 - - [16/Apr/2014:13:47:34] "HEAD /images/icon-fedora.png HTTP/1.1" 200 4449 "" "" WebSocket server settings: - Listen on :64667 - Flash security policy server - No SSL/TLS support (no cert file) - proxying from :64667 to targets in /var/lib/kimchi/vnc-tokens *** Feature tests completed *** [16/Apr/2014:13:47:40] ENGINE Bus STARTED libvirt: XML-RPC error : Cannot write data: Broken pipe Connection to libvirt broken. Recycling. ecode: 38 edom: 7 Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner self.run() File "/usr/lib/python2.7/site-packages/cherrypy/process/plugins.py", line 475, in run self.function(*self.args, **self.kwargs) File "/home/shhfeng/work/workdir/kimchi/src/kimchi/model/vms.py", line 66, in _update_guests_stats vm_list = self.get_list() File "/home/shhfeng/work/workdir/kimchi/src/kimchi/model/vms.py", line 221, in get_list return self.get_vms(self.conn) File "/home/shhfeng/work/workdir/kimchi/src/kimchi/model/vms.py", line 226, in get_vms names = [dom.name().decode('utf-8') for dom in conn.listAllDomains(0)] File "/home/shhfeng/work/workdir/kimchi/src/kimchi/model/libvirtconnection.py", line 62, in wrapper ret = f(*args, **kwargs) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4038, in listAllDomains raise libvirtError("virConnectListAllDomains() failed", conn=self) libvirtError: Cannot write data: Broken pipe -- Thanks and best regards! Sheldon Feng(冯少合)<shaohef@linux.vnet.ibm.com> IBM Linux Technology Center

On 04/16/2014 02:56 AM, Sheldon wrote:
anyone encounter this problem?
$ sudo PYTHONPATH=src ./src/kimchid --host "0.0.0.0" --port 8000
Loading YumUpdate features. Loaded plugins: langpacks, refresh-packagekit [16/Apr/2014:13:47:33] ENGINE Bus STARTING [16/Apr/2014:13:47:33] ENGINE Started monitor thread 'Autoreloader'. [16/Apr/2014:13:47:33] ENGINE Started monitor thread '_TimeoutMonitor'. [16/Apr/2014:13:47:33] ENGINE Serving on 0.0.0.0:8001 [16/Apr/2014:13:47:33] ENGINE Serving on 0.0.0.0:8000 *** Running feature tests *** 127.0.0.1 - - [16/Apr/2014:13:47:34] "HEAD /images/icon-fedora.png HTTP/1.1" 200 4449 "" "" 127.0.0.1 - - [16/Apr/2014:13:47:34] "GET /images/icon-fedora.png HTTP/1.1" 206 4449 "" "" 127.0.0.1 - - [16/Apr/2014:13:47:34] "HEAD /images/icon-fedora.png HTTP/1.1" 200 4449 "" "" WebSocket server settings: - Listen on :64667 - Flash security policy server - No SSL/TLS support (no cert file) - proxying from :64667 to targets in /var/lib/kimchi/vnc-tokens
*** Feature tests completed *** [16/Apr/2014:13:47:40] ENGINE Bus STARTED libvirt: XML-RPC error : Cannot write data: Broken pipe Connection to libvirt broken. Recycling. ecode: 38 edom: 7 Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner self.run() File "/usr/lib/python2.7/site-packages/cherrypy/process/plugins.py", line 475, in run self.function(*self.args, **self.kwargs) File "/home/shhfeng/work/workdir/kimchi/src/kimchi/model/vms.py", line 66, in _update_guests_stats vm_list = self.get_list() File "/home/shhfeng/work/workdir/kimchi/src/kimchi/model/vms.py", line 221, in get_list return self.get_vms(self.conn) File "/home/shhfeng/work/workdir/kimchi/src/kimchi/model/vms.py", line 226, in get_vms names = [dom.name().decode('utf-8') for dom in conn.listAllDomains(0)] File "/home/shhfeng/work/workdir/kimchi/src/kimchi/model/libvirtconnection.py", line 62, in wrapper ret = f(*args, **kwargs) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4038, in listAllDomains raise libvirtError("virConnectListAllDomains() failed", conn=self) libvirtError: Cannot write data: Broken pipe
Hi Sheldon, I haven't seen it before. What is the os version? Did you check libvirt has listAllDomains() function? Some old version does not have it implemented. Regards, Aline Manera
participants (2)
-
Aline Manera
-
Sheldon