puppet-tripleo/manifests/profile/base/nova
Michele Baldessari 7643761601 Fix kolla permissions errors inside nova_virtlogd
[stack@win1 ~]$ sudo podman logs nova_virtlogd
+sudo -E kolla_set_configs OSError: [Errno 30] Read-only file system

The reason is the following nova_virtlogd bind mount:
 ... - /etc/libvirt/qemu:/etc/libvirt/qemu:ro

Seems kolla config has a some empty folders that are then copied to a
:ro fs and we fail:
()[root@win1 /]$ find
var/lib/kolla/config_files/src/
var/lib/kolla/config_files/src/
var/lib/kolla/config_files/src/etc
var/lib/kolla/config_files/src/etc/libvirt
var/lib/kolla/config_files/src/etc/libvirt/qemu
var/lib/kolla/config_files/src/etc/libvirt/qemu/networks
var/lib/kolla/config_files/src/etc/libvirt/qemu/networks/autostart

Since the above empty folders are due to the timestamp
change caused by the default.xml file removal, let's do
those on BM only.

Hopefully compute folks can propose a more definitive fix that
takes that default.xml removal logic into host-prep-task (if it
is still needed)

Tested on a RHEL8 OS/Containers combo and the error is gone:
[root@overcloud-novacompute-0 ~]# podman logs nova_virtlogd 2>&1| tail -n5
++ chmod 755 /var/log/kolla/libvirt
++ chmod 644 /var/log/kolla/libvirt/libvirtd.log
Running command: '/usr/sbin/virtlogd --config /etc/libvirt/virtlogd.conf'
+ echo 'Running command: '\''/usr/sbin/virtlogd --config /etc/libvirt/virtlogd.conf'\'''
+ exec /usr/sbin/virtlogd --config /etc/libvirt/virtlogd.conf

Change-Id: I629e9e37aff9a1610df874b46c7a5b1eedd3e374
Closes-Bug: #1819482
2019-03-11 20:33:08 +01:00
..
compute New profile to configure libvirt-guests on compute host 2018-07-13 17:42:24 +02:00
migration Configure libvirt SASL SCRAM-SHA1 when TLS is enabled 2017-11-20 17:28:49 +00:00
api.pp Replace bootstrap_nodeid with SERVICE_short_bootstrap_node_name 2018-10-12 10:14:48 +00:00
authtoken.pp Remove dependency on memcached_node_ips_v6 2017-07-13 09:17:54 +01:00
compute.pp Allow configuration of NFS backend for Nova 2018-04-25 20:01:49 +05:30
compute_libvirt_shared.pp Ensure appropriate ACL mask is set on CephX keyrings 2018-06-13 19:09:18 +02:00
conductor.pp cell_v2 multi-cell 2019-02-05 09:53:50 +01:00
consoleauth.pp Ensure hiera step value is an integer 2017-06-14 14:31:52 +12:00
ec2api.pp Replace bootstrap_nodeid with SERVICE_short_bootstrap_node_name 2018-10-12 10:14:48 +00:00
libvirt.pp Fix kolla permissions errors inside nova_virtlogd 2019-03-11 20:33:08 +01:00
metadata.pp Replace bootstrap_nodeid with SERVICE_short_bootstrap_node_name 2018-10-12 10:14:48 +00:00
migration.pp Refactor nova migration config into client & target profiles 2017-07-03 14:34:08 +01:00
placement.pp Replace bootstrap_nodeid with SERVICE_short_bootstrap_node_name 2018-10-12 10:14:48 +00:00
scheduler.pp Ensure hiera step value is an integer 2017-06-14 14:31:52 +12:00
vncproxy.pp Ensure hiera step value is an integer 2017-06-14 14:31:52 +12:00