Merge "Keep existing data for containerized Libvirt"

This commit is contained in:
Jenkins 2017-03-23 13:51:51 +00:00 committed by Gerrit Code Review
commit 8716d9f769
2 changed files with 16 additions and 3 deletions

View File

@ -83,6 +83,11 @@ outputs:
- /lib/modules:/lib/modules:ro
- /run:/run
- /var/lib/nova:/var/lib/nova
- libvirtd:/var/lib/libvirt
- /var/lib/libvirt:/var/lib/libvirt
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks:
- name: create /var/lib/libvirt
file:
path: /var/lib/libvirt
state: directory

View File

@ -88,7 +88,15 @@ outputs:
- /var/lib/nova:/var/lib/nova
# Needed to use host's virtlogd
- /var/run/libvirt:/var/run/libvirt
- libvirtd:/var/lib/libvirt
- nova_libvirt_qemu:/etc/libvirt/qemu
- /var/lib/libvirt:/var/lib/libvirt
- /etc/libvirt/qemu:/etc/libvirt/qemu
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks:
- name: create libvirt persistent data directories
file:
path: "{{ item }}"
state: directory
with_items:
- /etc/libvirt/qemu
- /var/lib/libvirt