snap confine fails on top of overlayroot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
Fix Released
|
High
|
Zygmunt Krynicki |
Bug Description
# Summary
snap confinement fails on top of overlayroot
# Steps to reproduce:
These steps are from comment #11, login with root/passw0rd:
$ url=http://
$ img=${url##*/}
$ wget "${url}" -O "$img"
$ sudo mount-image-
mchroot sh -xc 'echo overlayroot=tmpfs > $1 && echo root:$2 | chpasswd' \
setup-image /etc/overlayroo
$ qemu-system-x86_64 -enable-kvm -m 2048 -curses -hda cosmic-
# See previous bugs
https:/
https:/
https:/
# Additional logs and information
$ cat /etc/cloud/
build_name: server
serial: 20181010
$ dpkg-query --show | pastebinit
http://
The above system hangs on boot. This is seen in curtin's vmtest.
The last success was with image 20180926.
The console log ends up getting repeated messages like:
Starting Snappy daemon...
[[0;32m OK [0m] Started Snappy daemon.
Mounting Mount unit for core, revision 5548...
[[0;32m OK [0m] Mounted Mount unit for core, revision 5548.
[[0;32m OK [0m] Stopped Snappy daemon.
Starting Snappy daemon...
[[0;32m OK [0m] Started Snappy daemon.
Mounting Mount unit for lxd, revision 9010...
[[0;32m OK [0m] Mounted Mount unit for lxd, revision 9010.
[[0;32m OK [0m] Stopped Snappy daemon.
Starting Snappy daemon...
[[0;32m OK [0m] Started Snappy daemon.
Mounting Mount unit for core, revision 5548...
[[0;32m OK [0m] Mounted Mount unit for core, revision 5548.
[[0;32m OK [0m] Stopped Snappy daemon.
Starting Snappy daemon...
[[0;32m OK [0m] Started Snappy daemon.
Mounting Mount unit for lxd, revision 9010...
[[0;32m OK [0m] Mounted Mount unit for lxd, revision 9010.
[[0;32m OK [0m] Stopped Snappy daemon.
Starting Snappy daemon...
[[0;32m OK [0m] Started Snappy daemon.
Mounting Mount unit for core, revision 5548...
[[0;32m OK [0m] Mounted Mount unit for core, revision 5548.
[[0;32m OK [0m] Stopped Snappy daemon.
Starting Snappy daemon...
[[0;32m OK [0m] Started Snappy daemon.
Mounting Mount unit for lxd, revision 9010...
[[0;32m OK [0m] Mounted Mount unit for lxd, revision 9010.
[[0;32m OK [0m] Stopped Snappy daemon.
Starting Snappy daemon...
[[0;32m OK [0m] Started Snappy daemon.
Mounting Mount unit for core, revision 5548...
[[0;32m OK [0m] Mounted Mount unit for core, revision 5548.
[[0;32m OK [0m] Stopped Snappy daemon.
Starting Snappy daemon...
[[0;32m OK [0m] Started Snappy daemon.
Mounting Mount unit for lxd, revision 9010...
[[0;32m OK [0m] Mounted Mount unit for lxd, revision 9010.
[[0;32m OK [0m] Stopped Snappy daemon.
Starting Snappy daemon...
[[0;32m OK [0m] Started Snappy daemon.
Mounting Mount unit for core, revision 5548...
[[0;32m OK [0m] Mounted Mount unit for core, revision 5548.
[[0;32m OK [0m] Stopped Snappy daemon.
Starting Snappy daemon...
[[0;32m OK [0m] Started Snappy daemon.
Mounting Mount unit for lxd, revision 9010...
[[0;32m OK [0m] Mounted Mount unit for lxd, revision 9010.
[[0;32m OK [0m] Stopped Snappy daemon.
Starting Snappy daemon...
[[0;32m OK [0m] Started Snappy daemon.
ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: snapd 2.35.4+18.10
ProcVersionSign
Uname: Linux 4.18.0-8-generic x86_64
ApportVersion: 2.20.10-0ubuntu11
Architecture: amd64
Date: Wed Oct 10 19:29:43 2018
ProcEnviron:
TERM=screen-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)
Related bugs:
bug 1786438: [SRU] 2.35
summary: |
- boot hangs in curtin vmtest + snap confine fails on top of overlayroot |
description: | updated |
Changed in snapd (Ubuntu): | |
assignee: | nobody → Zygmunt Krynicki (zyga) |
Changed in snapd (Ubuntu): | |
status: | Fix Committed → Fix Released |
$ systemctl status snapd --no-pager --full system/ snapd.service; enabled; vendor preset: enabled) slice/snapd. service snapd/snapd
● snapd.service - Snappy daemon
Loaded: loaded (/lib/systemd/
Active: active (running) since Wed 2018-10-10 19:47:19 UTC; 44s ago
Main PID: 1960 (snapd)
Tasks: 11 (limit: 1105)
Memory: 27.4M
CGroup: /system.
└─1960 /usr/lib/
Oct 10 19:47:18 ubuntu systemd[1]: snapd.service: Scheduled restart job, restart counter is at 2. 18.0-8- generic. ccc5-11e8- 90ca-fa163e102d b1 OOPSID
Oct 10 19:47:18 ubuntu systemd[1]: Stopped Snappy daemon.
Oct 10 19:47:18 ubuntu systemd[1]: Starting Snappy daemon...
Oct 10 19:47:19 ubuntu snapd[1960]: AppArmor status: apparmor is enabled and all features are available
Oct 10 19:47:19 ubuntu snapd[1960]: backend.go:125: snapd enabled root filesystem on overlay support, additional upperdir permissions granted
Oct 10 19:47:19 ubuntu snapd[1960]: helpers.go:249: removed stale connections: lxd:lxd-support core:lxd-support, lxd:network core:network, lxd:network-bind core:network-bind, lxd:system-observe core:system-observe
Oct 10 19:47:19 ubuntu snapd[1960]: daemon.go:344: started snapd/2.35.4+18.10 (series 16; classic) ubuntu/18.10 (amd64) linux/4.
Oct 10 19:47:19 ubuntu systemd[1]: Started Snappy daemon.
Oct 10 19:47:21 ubuntu snapd[1960]: handlers.go:389: Reported install problem for "core" as 4d395dae-