pf9-ostackhost Service Failing With Error: "Connection to libvirt failed"

Problem

  • Instance creation is failing.

  • The following error is present in / var/log/pf9/ostackhost.log on one or more of the hypervisors.

INFO nova.virt.libvirt.driver [req-xxxx None None] Connection event '0' reason 'Failed to connect to libvirt'ERROR nova.virt.libvirt.host [req-xxxx None None] Connection to libvirt failed: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection refusedfailed: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection refused

Environment

  • Platform9 Managed OpenStack - v3.11 and Higher

  • Nova

  • Libvirt

Cause

The exact cause is yet to be determined.

Resolution

  1. Stop the libvirt-bin service.

# systemctl stop libvirt-bin.service
  1. Stop the libvirt-bin socket.

# systemctl stop libvirt-bin.socket
  1. Start the libvirt-bin service.

Last updated