Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionVlastimil Holer
2012-01-31 15:16:57 UTC
Description of problem:
I have a RHCS two-node cluster with configuration managed/distributed by ccs/ricci. Ricci daemon is by default executed under 'ricci' user. With this settings even simple command takes tens of seconds to proceed. E.g.:
$ time ccs -h localhost --lsnodes
ceriha1.hb: nodeid=1
ceriha2.hb: nodeid=2
real 0m21.252s
user 0m0.097s
sys 0m0.028s
During the execution, ricci waits most of the time for virsh to finish:
ricci -u ricci
├─virsh nodeinfo
└─{ricci}
but virsh timeouts on communication with libvirtd through socket:
...
connect(6, {sa_family=AF_FILE, path=@"/var/lib/ricci/.libvirt/libvirt-sock"}, 110) = -1 ECONNREFUSED (Connection refused)
nanosleep({1, 900000000}, NULL) = 0
connect(6, {sa_family=AF_FILE, path=@"/var/lib/ricci/.libvirt/libvirt-sock"}, 110) = -1 ECONNREFUSED (Connection refused)
nanosleep({2, 0}, NULL) = 0
connect(6, {sa_family=AF_FILE, path=@"/var/lib/ricci/.libvirt/libvirt-sock"}, 110) = -1 ECONNREFUSED (Connection refused)
gettid() = 12788
close(6) = 0
gettid() = 12788
gettid() = 12788
gettid() = 12788
write(2, "error: ", 7) = 7
write(2, "Failed to reconnect to the hyper"..., 38) = 38
write(2, "error: ", 7) = 7
write(2, "no valid connection\n", 20) = 20
write(2, "error: ", 7) = 7
write(2, "Failed to connect socket to '@/v"..., 88) = 88
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa9e7a55000
write(1, "\n", 1) = 1
exit_group(1) = ?
We use default libvirt configuration and connection from common user shell works fine
$ virsh nodeinfo >/dev/null; echo $?
0
If I run ricci daemon under root, i.e. change RUNASUSER="root" in
/etc/init.d/ricci, the command successfully ends quickly:
$ time ccs -h localhost --lsnodes
ceriha1.hb: nodeid=1
ceriha2.hb: nodeid=2
real 0m0.300s
user 0m0.093s
sys 0m0.039s
Version-Release number of selected component (if applicable):
CentOS release 6.2 (Final)
libvirt-0.9.4-23.el6_2.4.x86_64
ricci-0.16.2-43.el6.x86_64
ccs-0.16.2-43.el6.x86_64
- libvirt in default settings
- no SElinux
This is an issue caused by changes to libvirt, we're working on determining the best place to make a fix.
For now, this issue can be worked around on the cluster nodes with the
following commands:
mkdir /var/lib/ricci/.libvirt
chown ricci.ricci /var/lib/ricci/.libvirt
Thanks!
Chris
This has been fixed by a 6.2 zstream fix in libvirt-0.9.4-23.el6_2.7.
Please let me know if you see this issue after upgrading to the latest version of libvirt.
Description of problem: I have a RHCS two-node cluster with configuration managed/distributed by ccs/ricci. Ricci daemon is by default executed under 'ricci' user. With this settings even simple command takes tens of seconds to proceed. E.g.: $ time ccs -h localhost --lsnodes ceriha1.hb: nodeid=1 ceriha2.hb: nodeid=2 real 0m21.252s user 0m0.097s sys 0m0.028s During the execution, ricci waits most of the time for virsh to finish: ricci -u ricci ├─virsh nodeinfo └─{ricci} but virsh timeouts on communication with libvirtd through socket: ... connect(6, {sa_family=AF_FILE, path=@"/var/lib/ricci/.libvirt/libvirt-sock"}, 110) = -1 ECONNREFUSED (Connection refused) nanosleep({1, 900000000}, NULL) = 0 connect(6, {sa_family=AF_FILE, path=@"/var/lib/ricci/.libvirt/libvirt-sock"}, 110) = -1 ECONNREFUSED (Connection refused) nanosleep({2, 0}, NULL) = 0 connect(6, {sa_family=AF_FILE, path=@"/var/lib/ricci/.libvirt/libvirt-sock"}, 110) = -1 ECONNREFUSED (Connection refused) gettid() = 12788 close(6) = 0 gettid() = 12788 gettid() = 12788 gettid() = 12788 write(2, "error: ", 7) = 7 write(2, "Failed to reconnect to the hyper"..., 38) = 38 write(2, "error: ", 7) = 7 write(2, "no valid connection\n", 20) = 20 write(2, "error: ", 7) = 7 write(2, "Failed to connect socket to '@/v"..., 88) = 88 fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa9e7a55000 write(1, "\n", 1) = 1 exit_group(1) = ? We use default libvirt configuration and connection from common user shell works fine $ virsh nodeinfo >/dev/null; echo $? 0 If I run ricci daemon under root, i.e. change RUNASUSER="root" in /etc/init.d/ricci, the command successfully ends quickly: $ time ccs -h localhost --lsnodes ceriha1.hb: nodeid=1 ceriha2.hb: nodeid=2 real 0m0.300s user 0m0.093s sys 0m0.039s Version-Release number of selected component (if applicable): CentOS release 6.2 (Final) libvirt-0.9.4-23.el6_2.4.x86_64 ricci-0.16.2-43.el6.x86_64 ccs-0.16.2-43.el6.x86_64 - libvirt in default settings - no SElinux