Hostagent Fails to Install Packages During Host Upgrade
Problem
- During a host upgrade, the pf9-hostagent service fails to install its updated package, throwing the following error in /var/log/pf9/hostagent.log.
- For other packages, it throws the following error.
- An attempt to manually install the package fails with the following error.
Environment
- Platform9 Managed OpenStack - v3.3.0 and Higher
- Ubuntu 16.04
Cause
- Even though the libvirt-bin package is installed, it is half-configured, as shown below.
- The package post-install script to start the libvirt-bin service fails.
- Systemd reports a failure because the '-d' (daemon) flag was passed to the binary. This isn't compatible with systemd as it forces the libvirtd process to fork, thus reporting the service as failed, even when the forked process is running in the background.
- The drawback is that the forked process cannot be managed with systemd, and must be killed manually.
Resolution
- Remove '-d' option from the parameter libvirtd_opts in /etc/default/libvirt-bin.
- Kill the libvirtd daemon with the following command.
- Fix the half configured libvirt-bin package.
- Restart the libvirt-bin service.
- Contact Platform9 Support to re-run the host upgrades.
Additional Information
- [Ubuntu] #1567272 - systemd claims libvirt-bin is dead on xenial
- Libvirt Change Log:
Was this page helpful?