Skip to content

Commit af895e6

Browse files
committed
ci: add extensive debug logging for libvirtd startup
1 parent 5833536 commit af895e6

File tree

82 files changed

+1280
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1280
-3
lines changed

.github/actions/test/integration/setup/action.yml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ runs:
6868
# Set up libvirt storage pool and network
6969
scp $SSH_OPTS ./.github/actions/test/integration/setup/virbr-vm.xml "$USER@$IP:/opt/virbr-vm.xml"
7070
ssh $SSH_OPTS "$USER@$IP" << EOF
71+
set -x
7172
echo "=== DEBUG: Checking if Ignition created the CA certificate ==="
7273
echo "File exists check:"
7374
ls -la /etc/pki/CA/cacert.pem 2>&1 || echo "NOT FOUND"
@@ -80,10 +81,36 @@ runs:
8081
echo "Validating certificate:"
8182
openssl x509 -in /etc/pki/CA/cacert.pem -noout -subject 2>&1 || echo "INVALID CERT"
8283
fi
84+
8385
echo "=== DEBUG: Checking libvirt config ==="
84-
grep -i "tls\|ca" /etc/libvirt/libvirtd.conf 2>&1 | head -10 || echo "No TLS config found"
85-
echo "=== Starting libvirtd ==="
86-
systemctl start libvirtd
86+
echo "Full libvirtd.conf TLS settings:"
87+
grep -i "tls\|ca\|cert" /etc/libvirt/libvirtd.conf 2>&1 || echo "No TLS config found"
88+
89+
echo "=== DEBUG: libvirtd service status before reset ==="
90+
systemctl status libvirtd.service --no-pager 2>&1 || true
91+
systemctl status libvirtd.socket --no-pager 2>&1 || true
92+
systemctl status libvirtd-tls.socket --no-pager 2>&1 || true
93+
94+
echo "=== DEBUG: Resetting failed services ==="
95+
systemctl reset-failed libvirtd.service libvirtd.socket libvirtd-tls.socket libvirtd-admin.socket libvirtd-ro.socket || true
96+
97+
echo "=== DEBUG: libvirtd service status after reset ==="
98+
systemctl status libvirtd.service --no-pager 2>&1 || true
99+
100+
echo "=== DEBUG: Starting libvirtd ==="
101+
systemctl start libvirtd 2>&1 || echo "FAILED TO START LIBVIRTD"
102+
103+
echo "=== DEBUG: libvirtd service status after start ==="
104+
systemctl status libvirtd.service --no-pager 2>&1 || true
105+
106+
echo "=== DEBUG: Recent libvirtd journal entries ==="
107+
journalctl -u libvirtd.service -n 30 --no-pager 2>&1 || true
108+
109+
echo "=== DEBUG: Checking if libvirtd is running ==="
110+
pgrep -a libvirtd || echo "libvirtd NOT RUNNING"
111+
112+
echo "=== DEBUG: virsh connection test ==="
113+
virsh version 2>&1 || echo "VIRSH CANNOT CONNECT"
87114
88115
virsh pool-destroy default || true
89116
virsh pool-undefine default || true
39 KB
Binary file not shown.
11.8 KB
Binary file not shown.
813 KB
Binary file not shown.
21.2 KB
Binary file not shown.
399 KB
Binary file not shown.
120 KB
Binary file not shown.
Binary file not shown.
113 KB
Binary file not shown.
2.76 KB
Binary file not shown.

0 commit comments

Comments
 (0)