Actions
Bug #63466
openFailed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
Status:
New
Priority:
Normal
Assignee:
-
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
The job https://jenkins.ceph.com/job/ceph-orchestrator-rook-e2e sometimes fails with the following error:
X Exiting due to PROVIDER_KVM2_ERROR: /usr/bin/virsh domcapabilities --virttype kvm failed: error: failed to connect to the hypervisor error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied exit status 1
Note: this error happens on the script script bootstrap-rook-cluster.sh which uses the below code to setup libvirt. In theory should setup correctly the libvirt group but it seems to fail on some scenarios.
configure_libvirt(){ sudo usermod -aG libvirt $(id -un) sudo su -l $USER # Avoid having to log out and log in for group addition to take effect. sudo systemctl enable --now libvirtd sudo systemctl restart libvirtd sleep 10 # wait some time for libvirtd service to restart }
No data to display
Actions