commit c37bf3e0687b86e4c3c6841cc9c38549fb9b5d1c
Author: Maksim Malchuk <email address hidden>
Date: Thu Jan 13 14:28:13 2022 +0300
Fix Apparmor libvirt profile removal
The apparmor_parser actually doesn't remove the file or doesn't create
the symlink in '/etc/apparmor.d/disable' itself so the next run of the
baremetal role will fail with the error "Unable to remove "libvirtd".
Even more after reboot, the profile is still active. We need to
disable the profile completly ourselves. This change fixes the
idempotents of the baremetal role.
Closes-Bug: #1960302
Change-Id: I162e417387393e806886b1c9ea8053b89778b4d1
Signed-off-by: Maksim Malchuk <email address hidden>
(cherry picked from commit 75f55d13ad9060b7821a6e7702a347debd785ee9)
Reviewed: https:/ /review. opendev. org/c/openstack /kolla- ansible/ +/828831 /opendev. org/openstack/ kolla-ansible/ commit/ c37bf3e0687b86e 4c3c6841cc9c385 49fb9b5d1c
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/victoria
commit c37bf3e0687b86e 4c3c6841cc9c385 49fb9b5d1c
Author: Maksim Malchuk <email address hidden>
Date: Thu Jan 13 14:28:13 2022 +0300
Fix Apparmor libvirt profile removal
The apparmor_parser actually doesn't remove the file or doesn't create d/disable' itself so the next run of the
the symlink in '/etc/apparmor.
baremetal role will fail with the error "Unable to remove "libvirtd".
Even more after reboot, the profile is still active. We need to
disable the profile completly ourselves. This change fixes the
idempotents of the baremetal role.
Closes-Bug: #1960302 806886b1c9ea805 3b89778b4d1 7821a6e7702a347 debd785ee9)
Change-Id: I162e417387393e
Signed-off-by: Maksim Malchuk <email address hidden>
(cherry picked from commit 75f55d13ad9060b