Skip to content

Commit 82b6302

Browse files
committed
ci: add diagnostics for libvirt volume permission failures
1 parent 7386797 commit 82b6302

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,27 @@ jobs:
159159
echo "LIBVIRT_TEST_ACPI_IMAGE not set; image-gated ACPI shutdown test will be skipped."
160160
fi
161161
make testacc
162+
163+
- name: Debug Libvirt/QEMU Storage Access
164+
if: always()
165+
run: |
166+
echo "=== qemu.conf ==="
167+
sudo grep -E '^(user|group|dynamic_ownership)[[:space:]]*=' /etc/libvirt/qemu.conf || true
168+
echo
169+
echo "=== libvirt daemon status ==="
170+
sudo systemctl status libvirtd --no-pager || true
171+
echo
172+
echo "=== qemu processes ==="
173+
ps -ef | grep -E '[q]emu-system|[l]ibvirtd|[v]irtqemud' || true
174+
echo
175+
echo "=== default pool info ==="
176+
virsh -c qemu:///system pool-info default || true
177+
virsh -c qemu:///system pool-dumpxml default || true
178+
echo
179+
echo "=== images dir permissions ==="
180+
ls -ld /var/lib/libvirt/images || true
181+
stat -c '%a %U:%G %n' /var/lib/libvirt/images || true
182+
echo
183+
echo "=== test volume file permissions ==="
184+
ls -l /var/lib/libvirt/images/test-volume-shutdown-image.qcow2 || true
185+
stat -c '%a %U:%G %n' /var/lib/libvirt/images/test-volume-shutdown-image.qcow2 || true

0 commit comments

Comments
 (0)