touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #62730
[Bug 1432683] [NEW] apt-get install lxc doesn't load required apparmor profiles
Public bug reported:
I'm trying to use LXC on my openstack instance which runs vivid daily:
$ sudo apt-get install lxc -y
$ sudo lxc-create -t ubuntu-cloud --name=vivid -- --flush-cache
--stream=daily --release=vivid
$ sudo lxc-start --name vivid --logfile=lxc.log
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.
In the log file (lxc.log) I observe the following error:
lxc-start 1426516387.814 ERROR lxc_apparmor - lsm/apparmor.c:apparmor_process_label_set:183 - No such file or directory - failed to change apparmor profile to lxc-container-default
This profile *exists* under /etc/apparmor.d/lxc/lxc-default but was not
loaded appropriately.
This issue disappears if I:
(a) reload apparmor profile manually: sudo /etc/init.d/apparmor reload
or
(b) reboot the instance
I'd expect that 'apt-get install lxc' has to load all appropriate
apparmor profiles to allow starting containers w/o profile reloading /
rebooting.
** Affects: lxc (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
I'm trying to use LXC on my openstack instance which runs vivid daily:
$ sudo apt-get install lxc -y
$ sudo lxc-create -t ubuntu-cloud --name=vivid -- --flush-cache
--stream=daily --release=vivid
$ sudo lxc-start --name vivid --logfile=lxc.log
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.
In the log file (lxc.log) I observe the following error:
lxc-start 1426516387.814 ERROR lxc_apparmor - lsm/apparmor.c:apparmor_process_label_set:183 - No such file or directory - failed to change apparmor profile to lxc-container-default
This profile *exists* under /etc/apparmor.d/lxc/lxc-default but was not
loaded appropriately.
This issue disappears if I:
(a) reload apparmor profile manually: sudo /etc/init.d/apparmor reload
or
(b) reboot the instance
- I'd expert that 'apt-get install lxc' has to load all appropriate
+ I'd expect that 'apt-get install lxc' has to load all appropriate
apparmor profiles to allow starting containers w/o profile reloading /
rebooting.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1432683
Title:
apt-get install lxc doesn't load required apparmor profiles
Status in lxc package in Ubuntu:
New
Bug description:
I'm trying to use LXC on my openstack instance which runs vivid daily:
$ sudo apt-get install lxc -y
$ sudo lxc-create -t ubuntu-cloud --name=vivid -- --flush-cache
--stream=daily --release=vivid
$ sudo lxc-start --name vivid --logfile=lxc.log
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.
In the log file (lxc.log) I observe the following error:
lxc-start 1426516387.814 ERROR lxc_apparmor - lsm/apparmor.c:apparmor_process_label_set:183 - No such file or directory - failed to change apparmor profile to lxc-container-default
This profile *exists* under /etc/apparmor.d/lxc/lxc-default but was
not loaded appropriately.
This issue disappears if I:
(a) reload apparmor profile manually: sudo /etc/init.d/apparmor reload
or
(b) reboot the instance
I'd expect that 'apt-get install lxc' has to load all appropriate
apparmor profiles to allow starting containers w/o profile reloading /
rebooting.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1432683/+subscriptions
Follow ups
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Launchpad Bug Tracker, 2015-10-26
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Launchpad Bug Tracker, 2015-10-26
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Martin Pitt, 2015-10-26
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Martin Pitt, 2015-10-05
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Jens Elkner, 2015-06-08
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Martin Pitt, 2015-05-07
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Martin Pitt, 2015-05-07
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Martin Pitt, 2015-05-07
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Martin Pitt, 2015-05-07
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Launchpad Bug Tracker, 2015-04-03
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Launchpad Bug Tracker, 2015-04-03
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Launchpad Bug Tracker, 2015-04-03
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Launchpad Bug Tracker, 2015-04-02
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Serge Hallyn, 2015-04-02
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Launchpad Bug Tracker, 2015-03-30
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Launchpad Bug Tracker, 2015-03-30
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Serge Hallyn, 2015-03-27
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Serge Hallyn, 2015-03-27
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Serge Hallyn, 2015-03-27
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Robie Basak, 2015-03-24
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Robie Basak, 2015-03-24
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Serge Hallyn, 2015-03-18
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Oleg Strikov, 2015-03-17
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Serge Hallyn, 2015-03-16
-
[Bug 1432683] Re: apt-get install lxc doesn't load required apparmor profiles
From: Serge Hallyn, 2015-03-16
-
Re: [Bug 1432683] [NEW] apt-get install lxc doesn't load required apparmor profiles
From: Serge Hallyn, 2015-03-16
-
[Bug 1432683] [NEW] apt-get install lxc doesn't load required apparmor profiles
From: Oleg Strikov, 2015-03-16
References