Regression: Kernel update breaks all lxc-containers lxc-start failing with (apparmor="DENIED" operation="mount")
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| lxc (Ubuntu) |
Undecided
|
Unassigned | |||
Bug Description
Hello,
The following recent kernel update completely break our lxc-start usage on precise both with precise original kernel 3.2 + also the trusty-lts-stack using 3.13
After installing those new kernel updates all lxc-start of a container fail with:
"Permission denied - mount failed '/dev/pts/
with strace pointing to:
13695 mount("
and dmesg showing:
Oct 20 10:59:00 titan226 kernel: [ 663.508664] type=1400
After downgrading kernel version the problem immediately dissappeared and the lxc-start for containers works again as before.
Bad versions:
ii linux-image-
ii linux-image-
Good versions:
ii linux-image-
ii linux-image-
From kernel changelog maybe this other issue here maybe causing it but not verified:
* SAUCE: (no-up) apparmor: fix mount not handling disconnected paths
- LP: #1496430
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version k3.13.0-61-generic.
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.0.1-0ubuntu17.11
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info: Error: [Errno 2] No such file or directory
Card0.Amixer.
DistroRelease: Ubuntu 12.04
HibernationDevice: RESUME=
IwConfig: Error: [Errno 2] No such file or directory
MachineType: FUJITSU PRIMERGY MX130 S1
MarkForUpload: True
Package: linux (not installed)
ProcEnviron:
LANGUAGE=en_US
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.79.18
RfKill: Error: [Errno 2] No such file or directory
Tags: precise
Uname: Linux 3.13.0-61-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
dmi.bios.date: 01/18/2011
dmi.bios.vendor: FUJITSU // Phoenix Technologies Ltd.
dmi.bios.version: 6.00 R1.01.2974.A1
dmi.board.
dmi.board.name: D2974
dmi.board.vendor: FUJITSU
dmi.board.version: S26361-D2974-A1
dmi.chassis.type: 3
dmi.chassis.vendor: FUJITSU
dmi.chassis.
dmi.modalias: dmi:bvnFUJITSU/
dmi.product.name: PRIMERGY MX130 S1
dmi.sys.vendor: FUJITSU
| Changed in linux (Ubuntu): | |
| status: | New → Incomplete |
| tags: | added: trusty |
apport information
| tags: | added: apport-collected precise |
| description: | updated |
apport information
apport information
apport information
apport information
apport information
apport information
apport information
apport information
apport information
apport information
apport information
apport information
apport information
| Stefan Huehner (stefan-huehner) wrote : | #16 |
For info: that apport info above is from system in which we already downgraded running kernel version to -61- to work around the problem
| Changed in linux (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Marc Reymann (mreymann) wrote : | #17 |
Same problem here:
root@shuttle:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
root@shuttle:~# uname -a
Linux shuttle 3.2.0-92-generic #130-Ubuntu SMP Mon Oct 5 21:43:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
root@shuttle:~# lxc-start --name Test
lxc-start: Permission denied - mount failed '/dev/pts/
lxc-start: failed to setup the new pts instance
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'Test'
| Doug C (n-doug) wrote : | #18 |
Same problem here.
Problem surfaced moving from 3.16.0-50-generic to 3.16.0-51-generic
Linux soup-HP-
| Daniel (hackie) wrote : | #19 |
3.13.0-65-generic is ok. The problem was clearly introduced in 3.13.0-66-generic.
| Christoph Mitasch (cmitasch) wrote : | #20 |
same problem with latest precise 3.2.x kernel.
root@host:~# cat /proc/version
Linux version 3.2.0-92-generic (buildd@lgw01-16) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #130-Ubuntu SMP Mon Oct 5 21:43:10 UTC 2015
root@host:~# lxc-start -n test
lxc-start: Permission denied - mount failed '/dev/pts/
lxc-start: failed to setup the new pts instance
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'test'
| tapczan (tapczan) wrote : | #21 |
This bug was also introduced after update kernel from 3.19.0-30-generic to 3.19.0-31-generic. LXC version is 1.0.7-0ubuntu0.1.
Add line to /etc/apparmor.
mount options=bind /dev/pts/** -> /dev/**,
| Kirils Solovjovs (linux-kirils) wrote : | #22 |
This has been resolved as per suggestion of tapczan in lxc (1.0.7-0ubuntu0.10) on 2015-11-03.
| affects: | linux (Ubuntu) → lxc (Ubuntu) |
| Changed in lxc (Ubuntu): | |
| status: | Confirmed → Fix Released |


This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1507959
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.