Merge "Bind mount swtpm logs in libvirt virtqemud container"

This commit is contained in:
Zuul 2022-08-04 01:07:49 +00:00 committed by Gerrit Code Review
commit fd750c8232
2 changed files with 8 additions and 0 deletions

View File

@ -676,6 +676,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_attr: [RoleParametersValue, value, ContainerNovaLibvirtImage]}
@ -924,6 +925,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 }
@ -934,6 +936,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.