Host Intermittently Fails to Converge.

Problem

Host fails to converge with the below error messages in log /var/log/pf9/ostackhost.log:

ERROR nova.virt.libvirt.host [-] Connection to libvirt failed: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock’: Permission denied

Environment

  • Platform9 Managed OpenStack - v4.0 and Higher

  • libvirtd

  • Pf9-ostackhost

Cause

The libvirtd service socket permission is incorrect. This permission was either modified manually or by some third-party application.

Resolution

  1. Correct the permission under /etc/libvirt/libvirtd.conf

# cat /etc/libvirt/libvirtd.conflisten_tcp=1listen_tls=0auth_tcp="none"tcp_port="16509"auth_unix_ro = "none"auth_unix_rw = "none"unix_sock_group = "root"unix_sock_ro_perms = "0777"unix_sock_rw_perms = "0777"
  1. Restart libvirtd.service

# systemctl restart libvirtd
  1. Check the libvirt-sock permission.

Last updated