apparmor profiles are not loaded properly in setup-hosts.yml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Undecided
|
Qin Wang |
Bug Description
In an AIO deployment in ubuntu14.04.
"openstack-ansible setup-hosts.yml" failed at starting up containers.
The error log shows:
stderr: lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
fatal: [aio1_heat_
1:24.955376", "failed": true, "rc": 1, "start": "2016-09-02 16:41:18.725636", "stderr": "lxc-start: lxc_start.c: main: 344 The container failed to start.\nlxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode.\nlxc-start: lxc_start.c: main: 348 Additional information can be ob
tained by setting the --logfile and --logpriority options.", "stdout": "", "stdout_lines": [], "warnings": []}
cmd:
lxc-start
--daemon
--name
aio1_heat_
--logfile
/var/log/
--logpriority
DEBUG
The container log shows:
lxc-start 20160902164119.443 ERROR lxc_apparmor - lsm/apparmor.
lxc-start 20160902164119.443 ERROR lxc_sync - sync.c:
lxc-start 20160902164119.443 ERROR lxc_start - start.c:
lxc-start 20160902164119.443 INFO lxc_conf - conf.c:
lxc-start 20160902164119.945 INFO lxc_conf - conf.c:
lxc-start 20160902164119.954 WARN lxc_commands - commands.
lxc-start 20160902164124.954 ERROR lxc_start_ui - lxc_start.
lxc-start 20160902164124.955 ERROR lxc_start_ui - lxc_start.
lxc-start 20160902164124.955 ERROR lxc_start_ui - lxc_start.
apparmor_status:
apparmor module is loaded.
45 profiles are loaded.
12 profiles are in enforce mode.
/sbin/dhclient
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
lxc-
lxc-
lxc-
lxc-
After running /etc/init.
46 profiles are loaded.
13 profiles are in enforce mode.
/sbin/dhclient
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
lxc-
lxc-
lxc-
lxc-
lxc-openstack
could be related to: /bugs.launchpad .net/ubuntu/ +source/ lxc/+bug/ 1432683
https:/