pf9-ostackhost Service Fails to Connect to Libvirt

Problem

  • The host is reported offline in Clarity UI.
  • /var/log/pf9/hostagent.log showsthat pf9-ostackhost service has failed to start.
Copy
  • /var/log/pf9/ostackhost.log contains the message "Failed to connect socket to /var/run/libvirt/libvirt-sock".
Copy
  • /var/log/libvirt/libvirtd.log contains the message "Unable to bind to port".
Copy
  • In /var/log/syslog.log, it is observed that the libvirt service has stopped and is not able to restart.
Copy
Copy

Environment

  • Platform9 Managed OpenStack - v3.5.0 and Higher
  • Ubuntu 14.04

Cause

A stale libvirt process is holding the lock on the service port.

Resolution

  1. Kill the stale libvirtd daemon.
Copy
  1. Start the libvirt-bin service.
Copy
  1. Start the pf9-ostackhost service.
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard