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
(cherry picked from commit f65664ff56de26b6e98ffcf09001427e5a8bdaf3)
Reviewed: https:/ /review. opendev. org/675357 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=82d0b03d237 fc1c3024daaa6fe 480549a13d000f
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 82d0b03d237fc1c 3024daaa6fe4805 49a13d000f
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: I6f8dc49ff55621 5a25e8bb23ae8da 63ce607d70c 6e98ffcf0900142 7e5a8bdaf3)
Closes-Bug: #1801977
(cherry picked from commit f65664ff56de26b