[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] F17's libvirt takes comments into LIBVIRTD_ARGS

On 2012-5-16 18:46, Dan Kenigsberg wrote:
On Tue, May 15, 2012 at 04:16:11PM +0800, Shu Ming wrote:
On 2012-5-14 7:30, Dan Kenigsberg wrote:
On Sun, May 13, 2012 at 11:51:48PM +0800, Shu Ming wrote:
   Recently, I found that my host in engine was always in a
"unassigned state" after the host node was installed.  After looking
into the vdsm.log,  it seemed that vdsm failed to call libvirt as an
error,  "libvirtError: Cannot write data: Broken pipe".   When I
started virsh in the host node at that time, a warning was given
"WARNING: no socket to connect to" and core dumped with "virsh
net-list".   It looks like that no right socket was created for
virsh to connect to libvirtd.  Any comments about this problem?  The
followings are my steps in the node:

[root ovirt-node1 ~]# rpm -qa |grep vdsm
[root ovirt-node1 ~]#
[root ovirt-node1 ~]# ps -ef |grep libvirt


[root ovirt-node1 ~]# virsh net-list
WARNING: no socket to connect to
Segmentation fault
I think that merits a libvirt bug. please attach strace output to

[root ovirt-node1 ~]#

[root ovirt-node1 ~]# ps -ef |grep vdsm
root      1299     1  0 23:10 ?        00:00:00 /usr/sbin/libvirtd
--listen # by vdsm
The command line of libvirt process is very odd - the comment that vdsm
puts into /etc/sysconfig/libvirtd is somehow taken verbatim. That's bad,
and may be related to Fedora 17's systemd services. Try to remove the
comment and restart libvirtd to see if this is the case.
The comment come from

[root ovirt-node1 ~]# cat /etc/sysconfig/libvirtd:
I know that (see my text above). However, in F16 and before, comments have been stripped
before being passed to commandline. Have you tested if all is well when
the commment is removed?

I removed the "# by vdsm " line from the config file. And restarted the libvirtd and vdsmd service. But no luck to make "virsh net-list" successful, still got "Segmentation fault", while "virsh -c qemu:///system -r" worked.

virsh # net-list
Segmentation fault
[root ovirt-node1 ~]# virsh net-list
Segmentation fault
[root ovirt-node1 ~]# virsh -c qemu:///system
Please enter your authentication name: ^C
[root ovirt-node1 ~]# virsh -c qemu:///system -r
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh > net-list
Name                 State      Autostart
vdsm-ovirtmgmt       active     yes

virsh >

Let's see what our friends in libvir-list think.


Shu Ming<shuming linux vnet ibm com>
IBM China Systems and Technology Laboratory

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]