I have several services running on Ubuntu 16.04 containers and was considering moving them to Ubuntu 18.04 containers.
But (on latest Proxmox version), fresh ubuntu 18.04 containers when booted are showing up as degraded.
The one failed unit inside the container is apparmor.service:
Manual attempt to start this service fail. Errors as follows:
Ubuntu 16.04 containers don't have this problem.
Any ideas what is going on here?
But (on latest Proxmox version), fresh ubuntu 18.04 containers when booted are showing up as degraded.
root@test2:~# systemctl status
* test2
State: degraded
Jobs: 0 queued
Failed: 1 units
The one failed unit inside the container is apparmor.service:
root@test2:~# systemctl list-units --state=failed
UNIT LOAD ACTIVE SUB DESCRIPTION
* apparmor.service loaded failed failed AppArmor initialization
Manual attempt to start this service fail. Errors as follows:
root@test2:~# systemctl status apparmor.service
* apparmor.service - AppArmor initialization
Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2018-11-10 16:10:49 UTC; 3min 3s ago
...
Process: 416 ExecStart=/etc/init.d/apparmor start (code=exited, status=123)
Main PID: 416 (code=exited, status=123)
Nov 10 16:10:49 test2 apparmor[416]: /sbin/apparmor_parser: Unable to replace "/usr/sbin/tcpdump". Permission denied; attempted to load a profile while confined?
Nov 10 16:10:49 test2 apparmor[416]: /sbin/apparmor_parser: Unable to replace "/sbin/dhclient". Permission denied; attempted to load a profile while confined?
Nov 10 16:10:49 test2 apparmor[416]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Nov 10 16:10:49 test2 apparmor[416]: /sbin/apparmor_parser: Unable to replace "/usr/bin/man". Permission denied; attempted to load a profile while confined?
Nov 10 16:10:49 test2 apparmor[416]: /sbin/apparmor_parser: Unable to replace "/usr/sbin/tcpdump". Permission denied; attempted to load a profile while confined?
Nov 10 16:10:49 test2 apparmor[416]: /sbin/apparmor_parser: Unable to replace "/sbin/dhclient". Permission denied; attempted to load a profile while confined?
Nov 10 16:10:49 test2 apparmor[416]: ...fail!
Nov 10 16:10:49 test2 systemd[1]: apparmor.service: Main process exited, code=exited, status=123/n/a
Nov 10 16:10:49 test2 systemd[1]: apparmor.service: Failed with result 'exit-code'.
Nov 10 16:10:49 test2 systemd[1]: Failed to start AppArmor initialization.
Ubuntu 16.04 containers don't have this problem.
Any ideas what is going on here?