tripleo-heat-templates/deployment/nova
Cédric Jeanneret 909984bbe1 Modify how libvirt related containers use SELinux
1- Add specific mounts in nova_libvirt
They are needed in order to get SELinux support within the container

2- Remove now deprecated docker_enable condition
Since this one isn't needed anymore, just drop it.

3- Drop "z" flag from libvirt related mounts
This avoids relabelling issues from non-privileged containers

4- Set specific labels for the container itself.
See note 2 for more details.

Notes:
1- This will require to patch podman-1.6.4 in order to allow to actually
   use security-opt when --privileged and/or --pid=host are passed[1].

2- The "container_share_t" filetype will be updated in a follow-up to
   the newer version, "container_ro_file_t". This makes backports easier
   to older releases that might not be aware of this new type.
   The follow-up change is purely cosmetic in order to reflect the
   actual behavior of SELinux and has no functional change.

Testing:
The first tests were done using a podman 1.9.3 in order to work around the
mentionned issues.

Newer tests were done using podman 1.6.4 scratch-builds in order to ensure
the reported issues were fixed.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1846364

Depends-On: https://review.opendev.org/735063
Co-Authored-By: Daniel Berrange <berrange@redhat.com>
Co-Authored-By: Kashyap Chamarthy <kchamart@redhat.com>
Change-Id: I9e0da2a48c23c35e084bea831fc744b9f053508b
(cherry picked from commit 9f0e5d724f)
2020-07-06 14:31:37 +02:00
..
nova-api-container-puppet.yaml Sync httpd conf.modules.d configs 2020-07-05 20:21:01 +00:00
nova-az-config.yaml Add environments dcn.yaml and dcn-hci.yaml. 2019-10-08 18:06:21 -04:00
nova-base-puppet.yaml Add EnableCache option to enable/disable usage of memcache 2020-05-03 00:50:24 +09:00
nova-compute-common-container-puppet.yaml Ensure nova-api is running before starting nova-compute containers 2019-10-01 11:11:44 +01:00
nova-compute-container-puppet.yaml Modify how libvirt related containers use SELinux 2020-07-06 14:31:37 +02:00
nova-conductor-container-puppet.yaml Move nova online migrations to nova-conductor 2020-06-16 09:04:19 +00:00
nova-ironic-container-puppet.yaml Merge "Add mode option when creating persistent directories." 2020-05-05 11:41:09 +00:00
nova-libvirt-container-puppet.yaml Modify how libvirt related containers use SELinux 2020-07-06 14:31:37 +02:00
nova-libvirt-guests-container-puppet.yaml Use absolute name to include puppet classes 2020-04-11 08:13:23 +09:00
nova-metadata-container-puppet.yaml Sync httpd conf.modules.d configs 2020-07-05 20:21:01 +00:00
nova-migration-target-container-puppet.yaml Modify how libvirt related containers use SELinux 2020-07-06 14:31:37 +02:00
nova-scheduler-container-puppet.yaml Add new parameter NovaSchedulerQueryPlacementForAvailabilityZone 2020-05-27 02:44:41 +00:00
nova-vnc-proxy-container-puppet.yaml healthchecks: check if fact is defined before checking its value 2020-05-11 13:39:06 -04:00
novajoin-container-puppet.yaml Change the :Z mount flag to :z 2020-06-02 07:08:26 +00:00