Change libvirt volume name to libvirtd

This change is a "futureproofing" thing. It has already been discussed
that libvirt should not be a child of nova and should be removed out
to the base docker directory (just like openvswitch isn't a child of
neutron). That is not going to happen this cycle but when it does we
can't change the name of the volume. This updates the volumes to the
proper name of libvirtd. This is in contrast with the libvirtlogd
volume that will be needed in newton due to libvirt 1.3

Of note, the container can remain named nova_libvirt since we can
change that on the fly later without breaking instances.

This wont break liberty as named_volumes are not backported yet.

TrivialFix

Change-Id: I16cf9e1b1dbba9b5a9f5cc883494580e276d4f72
This commit is contained in:
SamYaple 2016-03-15 19:37:17 +00:00
parent f4d6aaf097
commit b98bc3a458
2 changed files with 4 additions and 3 deletions

View File

@ -12,8 +12,8 @@
- "/lib/modules:/lib/modules:ro" - "/lib/modules:/lib/modules:ro"
- "/run/:/run/" - "/run/:/run/"
- "/sys/fs/cgroup:/sys/fs/cgroup" - "/sys/fs/cgroup:/sys/fs/cgroup"
- "libvirtd:/var/lib/libvirt"
- "nova_compute:/var/lib/nova/" - "nova_compute:/var/lib/nova/"
- "nova_libvirt:/var/lib/libvirt"
when: inventory_hostname in groups['compute'] when: inventory_hostname in groups['compute']
- name: Starting nova-compute container - name: Starting nova-compute container
@ -28,8 +28,8 @@
- "/lib/modules:/lib/modules:ro" - "/lib/modules:/lib/modules:ro"
- "/run:/run" - "/run:/run"
- "kolla_logs:/var/log/kolla/" - "kolla_logs:/var/log/kolla/"
- "libvirtd:/var/lib/libvirt"
- "nova_compute:/var/lib/nova/" - "nova_compute:/var/lib/nova/"
- "nova_libvirt:/var/lib/libvirt"
when: when:
- inventory_hostname in groups['compute'] - inventory_hostname in groups['compute']
- not enable_nova_fake | bool - not enable_nova_fake | bool

View File

@ -50,10 +50,11 @@ else
heka{,_socket} \ heka{,_socket} \
ironic_pxe \ ironic_pxe \
kolla_logs \ kolla_logs \
libvirtd \
mariadb \ mariadb \
mongodb \ mongodb \
neutron_metadata_socket \ neutron_metadata_socket \
nova_{compute,libvirt} \ nova_compute \
openvswitch_db \ openvswitch_db \
rabbitmq rabbitmq
) )