[standalone] /run/libvirt is needed, although libvirt-daemon isn't installed

Bug #1801977 reported by Cédric Jeanneret on 2018-11-06
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cédric Jeanneret

Bug Description

Dear Stacker,

While doing some work on the standalone deploy with podman, I discovered an issue:

Nova containers want to bind-mount /run/libvirt, but apparently, libvirt-daemon is not installed for standalone deploy.

If the absence of the host /run/libvirt directory doesn't cause any trouble with docker, that's not the same for podman.

So I see two possibilities:
- either add libvirt-daemon as a hard dependency
- or create another host location for the "libvirt" shared directory.

The second possibility is OK if and only if the host libvirt service isn't used. This appears to be the case, since the libvirtd is deactivated at some point.

For now, we don't have this issue with the overcloud deploy, as the libvirt packages are still installed in the overcloud-full image:

But as I suspect this will change with the full containerization, it might be good to ensure we have a safe way out.

Any thoughts?



Fix proposed to branch: master
Review: https://review.openstack.org/615956

Changed in tripleo:
assignee: nobody → Cédric Jeanneret (cjeanner)
status: Triaged → In Progress
Oliver Walsh (owalsh) wrote :

Creating a different location on the host LGTM. Not sure if we are relying on /var/run/libvirt cleanup on reboot though.

Changed in tripleo:
assignee: Cédric Jeanneret (cjeanner) → Emilien Macchi (emilienm)
assignee: Emilien Macchi (emilienm) → Cédric Jeanneret (cjeanner)

Reviewed: https://review.openstack.org/615956
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=f65664ff56de26b6e98ffcf09001427e5a8bdaf3
Submitter: Zuul
Branch: master

commit f65664ff56de26b6e98ffcf09001427e5a8bdaf3
Author: Cédric Jeanneret <email address hidden>
Date: Tue Nov 6 18:51:43 2018 +0100

    Ensure directories managed by libvirt-daemon exist

    The /var/run/libvirt directory is managed by libvirt-daemon. As
    this service is now running within a container, the directory
    might not exists on a fresh install.
    This patch also takes care of the fact the /var/run directory is
    cleaned upon reboot, and uses systemd-tmpfiles in order to ensure
    the directory creation during the boot process.

    We also take care of missing log directories, also managed by the
    libvirt-daemon package.

    Change-Id: I6f8dc49ff556215a25e8bb23ae8da63ce607d70c
    Closes-Bug: #1801977

Changed in tripleo:
status: In Progress → Fix Released

This issue was fixed in the openstack/tripleo-heat-templates 10.2.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers