bootstrap-servers doesn't consider disabled AppArmor profiles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Fix Committed
|
Medium
|
Victor Morales | ||
Wallaby |
Fix Committed
|
Medium
|
Victor Morales |
Bug Description
The task to remove the Libvirt AppArmor profile[1] doesn't consider the case where the profile exists but is disabled. That scenario raises the following error:
TASK [baremetal : Remove apparmor profile for libvirt] *******
fatal: [rasp4-node03]: FAILED! => {"changed": true, "cmd": ["apparmor_parser", "-R", "/etc/apparmor.
This error can be avoided by adding an extra validation that checks the existence of a soft link on
`/etc/apparmor.
**Environment**:
* OS (e.g. from /etc/os-release):
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https:/
SUPPORT_URL="https:/
BUG_REPORT_URL="https:/
PRIVACY_
VERSION_
UBUNTU_
* Kernel (e.g. `uname -a`):
Linux rasp4-node03 5.3.0-1036-raspi2 #38-Ubuntu SMP Thu Oct 15 14:40:03 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
* Kolla-Ansible version (e.g. `git head or tag or stable branch` or pip package version if using release):
kolla-ansible @ git+https:/
* Docker image Install type (source/binary):
binary
Changed in kolla-ansible: | |
assignee: | nobody → Victor Morales (electrocucaracha) |
status: | New → In Progress |
This bug was fixed: /review. opendev. org/c/openstack /kolla- ansible/ +/768885
https:/