Merge "Bind mount swtpm logs in libvirt virtqemud container" into stable/wallaby

This commit is contained in:
Zuul 2022-08-10 02:41:17 +00:00 committed by Gerrit Code Review
commit 445b04b534
2 changed files with 8 additions and 0 deletions

View File

@ -669,6 +669,7 @@ outputs:
- {get_attr: [NovaLibvirtCommon, volumes]}
- {get_attr: [RoleParametersValue, value, nova_libvirt_opt_volumes]}
- - /var/lib/kolla/config_files/nova_virtqemud.json:/var/lib/kolla/config_files/config.json:ro
- /var/log/containers/libvirt/swtpm:/var/log/swtpm:z
- nova_virtproxyd:
start_order: 5
image: {get_param: ContainerNovaLibvirtImage}
@ -918,6 +919,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype | default(omit) }}"
mode: "{{ item.mode | default(omit) }}"
with_items:
- { 'path': /etc/libvirt, 'setype': container_file_t }
- { 'path': /etc/libvirt/secrets, 'setype': container_file_t }
@ -928,6 +930,7 @@ outputs:
- { 'path': /run/libvirt, 'setype': virt_var_run_t }
- { 'path': /var/log/libvirt, 'setype': container_file_t }
- { 'path': /var/log/libvirt/qemu, 'setype': container_file_t }
- { 'path': /var/log/containers/libvirt/swtpm, 'setype': container_file_t, 'mode': '0750' }
# qemu user on host will be cretaed by libvirt package install, ensure
# the qemu user created with same uid/gid as like libvirt package.
# These specific values are required since ovs is running on host.

View File

@ -0,0 +1,5 @@
---
features:
- |
Containerized Libvirt swtpm logs will be placed into
`/var/log/containers/libvirt/swtpm` host path.