[MAAS 2.2] apparmor_parser: enable to replace "/usr/sbin/dhcpd" [spurious error during dist-upgrade in container?]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned | ||
MAAS |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I used 'apt-get dist-upgrade' to upgrade my home MAAS from 2.2rc3 to 2.2rc4, and saw the following output scroll by:
Setting up maas-dhcp (2.2.0~
apparmor_parser: Unable to replace "/usr/sbin/dhcpd". Permission denied; attempted to load a profile while confined?
MAAS is installed in a container and has the following in its configuration:
config:
raw.lxc: |-
lxc.
As a user, I'm now left wondering whether or not the upgrade was fully successful. But the error doesn't make much sense, given that /usr/sbin/dhcpd is provided by isc-dhcp-server, which wasn't touched during the upgrade:
# apt-get dist-upgrade -yu
...
The following packages will be upgraded:
maas maas-cli maas-common maas-dhcp maas-dns maas-proxy maas-rack-
...
# dpkg -S /usr/sbin/dhcpd
isc-dhcp-server: /usr/sbin/dhcpd
Changed in maas: | |
status: | New → Won't Fix |
summary: |
- [2.2] apparmor_parser: enable to replace "/usr/sbin/dhcpd" [spurious - error during dist-upgrade in container?] + [MAAS 2.2] apparmor_parser: enable to replace "/usr/sbin/dhcpd" + [spurious error during dist-upgrade in container?] |
It seems you are missing apparmor stuff in your host system to allow the usage, or you have upgraded your apparmor recently, or isc-dhcp on your host machine that could be the culprit.