Bug 35070 - libvirt-check.sh does not detect failing libvirtd TCP service
libvirt-check.sh does not detect failing libvirtd TCP service
Status: CLOSED WONTFIX
Product: UCS
Classification: Unclassified
Component: Virtualization - Xen
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 3.2-x
Assigned To: UCS maintainers
:
Depends on: 33966
Blocks: 35069
  Show dependency treegraph
 
Reported: 2014-06-06 08:40 CEST by Philipp Hahn
Modified: 2023-06-28 10:46 CEST (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2014-06-06 08:40:16 CEST
+++ This bug was initially created as a clone of Bug #33966 +++
libvirt-check.sh uses URI=xen+unix:///, which uses the local UNIX domain socket /var/run/libvirt/libvirt-sock[-ro].
In three test instances the UNIX socket still works, but not the TCP socket at port 16514:

# telnet lynx1.phahn.dev 16514
Trying 10.200.17.241...
telnet: connect to address 10.200.17.241: Connection refused

# tcpdump -i peth0 tcp port 16514
08:26:06.508855 IP xen12.phahn.dev.53876 > lynx1.phahn.dev.16514: Flags [S], seq 1350119682, win 14600, options [mss 1460,sackOK,TS val 43213358 ecr 0,nop,wscale 7], length 0
08:26:06.508912 IP lynx1.phahn.dev.16514 > xen12.phahn.dev.53876: Flags [R.], seq 0, ack 1350119683, win 0, length 0


Simply using xen://localhost/ does not work, because that would require the libvirt-PKI to be setup for client access on all nodes too. Currently we only setup the server part on nodes and the client part on the UVMMd host(s):

# virsh -c xen://lynx1.phahn.dev/
error: Cannot read CA certificate '/etc/pki/CA/cacert.pem': Datei oder Verzeichnis nicht gefunden
error: failed to connect to the hypervisor


Getting a gdb BT failed because libvirt-check.sh kill-9-ed the process while the debugger was attached and had the process stopped.
After the automatic restart "virsh -c xen://lynx1.phahn.dev/" was working again.
Comment 1 Philipp Hahn univentionstaff 2017-04-21 16:24:01 CEST
UCS-3.x is OoM.
Xen is OoM.