Undercloud upgrade fails when switching from docker to podman as containers (at least rmq/memcached) started via podman can not read/copy files from /var/lib/config-data/puppet-generated/$service/.
type=AVC msg=audit(1541628356.826:5369): avc: denied { read } for pid=452886 comm="python" name="rabbitmq-env.conf" dev="dm-0" ino=100801360 scontext=system_u:system_r:container_t:s0:c41,c44 tcontext=unconfined_u:object_r:container_var_lib_t:s0 tclass=file
type=AVC msg=audit(1541628334.756:5302): avc: denied { read } for pid=450657 comm="bash" name="memcached" dev="dm-0" ino=102946033 scontext=system_u:system_r:container_t:s0:c143,c723 tcontext=unconfined_u:object_r:container_var_lib_t:s0 tclass=file
failure in openstack undercloud upgrade output: http://paste.openstack.org/show/734383/
[root@undercloud ~]# podman container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
212e550c9dd9 docker.io/tripleomaster/centos-binary-rabbitmq:3ed8ac0e93367a02ad53d9fa93467057724b6621_fd8eb74b kolla_start 12 minutes ago Exited (2) 12 minutes ago rabbitmq
0b74f790a30d docker.io/tripleomaster/centos-binary-haproxy:3ed8ac0e93367a02ad53d9fa93467057724b6621_fd8eb74b /docker_puppet_ap... 13 minutes ago Exited (0) 12 minutes ago haproxy_firewall
fdeb43cca6ac docker.io/tripleomaster/centos-binary-rabbitmq:3ed8ac0e93367a02ad53d9fa93467057724b6621_fd8eb74b kolla_start 13 minutes ago Exited (2) 13 minutes ago rabbitmq_bootstrap
a0c4d8900973 docker.io/tripleomaster/centos-binary-haproxy:3ed8ac0e93367a02ad53d9fa93467057724b6621_fd8eb74b kolla_start 13 minutes ago Up 13 minutes ago haproxy
711c5a85e14b docker.io/tripleomaster/centos-binary-memcached:3ed8ac0e93367a02ad53d9fa93467057724b6621_fd8eb74b /bin/bash -c sour... 13 minutes ago Exited (64) 12 minutes ago memcached
7750a5469261 docker.io/tripleomaster/centos-binary-rabbitmq:3ed8ac0e93367a02ad53d9fa93467057724b6621_fd8eb74b /bin/bash -c chow... 13 minutes ago Exited (0) 13 minutes ago rabbitmq_init_logs
a6acaadcf640 docker.io/tripleomaster/centos-binary-keepalived:3ed8ac0e93367a02ad53d9fa93467057724b6621_fd8eb74b /usr/local/bin/ko... 13 minutes ago Up 13 minutes ago keepalived
8e4ff80b7818 docker.io/tripleomaster/centos-binary-mariadb:3ed8ac0e93367a02ad53d9fa93467057724b6621_fd8eb74b /bin/bash -c chow... 13 minutes ago Exited (0) 13 minutes ago mysql_init_logs
To reproduce: openstack undercloud upgrade existing deploy to latest with container_cli = docker, edit undercloud.conf to container_cli = podman and rerun upgrade.
Hey,
Will try to work on this today. We might need some tasks in the "upgrade" part in order to ensure the directories have the correct SELinux context.