** Description changed:

- $ cat /etc/cloud/build.info 
+ # Summary
+ 
+ snap confinement fails on top of overlayroot
+ 
+ 
+ # Steps to reproduce:
+ 
+ These steps are from comment #11, login with root/passw0rd:
+ 
+ $ 
url=http://cloud-images.ubuntu.com/cosmic/current/cosmic-server-cloudimg-amd64.img
+ $ img=${url##*/}
+ $ wget "${url}" -O "$img"
+ $ sudo mount-image-callback "$img" -- \
+    mchroot sh -xc 'echo overlayroot=tmpfs > $1 && echo root:$2 | chpasswd' \
+    setup-image /etc/overlayroot.local.conf passw0rd
+ $ qemu-system-x86_64 -enable-kvm -m 2048 -curses -hda 
cosmic-server-cloudimg-amd64.img
+ 
+ 
+ # See previous bugs
+ 
+ https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1729867
+ https://bugs.launchpad.net/apparmor/+bug/1703674
+ 
https://forum.snapcraft.io/t/confined-snaps-dont-work-on-live-images-due-to-apparmor-path-mapping/3767/5
+ 
+ 
+ # Additional logs and information
+ 
+ $ cat /etc/cloud/build.info
  build_name: server
  serial: 20181010
  
  $ dpkg-query --show | pastebinit
  http://paste.ubuntu.com/p/KpwSzBdZkw/
  
- 
  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...
+          Starting Snappy daemon...
  [  OK  ] Started Snappy daemon.
-          Mounting Mount unit for core, revision 5548...
+          Mounting Mount unit for core, revision 5548...
  [  OK  ] Mounted Mount unit for core, revision 5548.
  [  OK  ] Stopped Snappy daemon.
-          Starting Snappy daemon...
+          Starting Snappy daemon...
  [  OK  ] Started Snappy daemon.
-          Mounting Mount unit for lxd, revision 9010...
+          Mounting Mount unit for lxd, revision 9010...
  [  OK  ] Mounted Mount unit for lxd, revision 9010.
  [  OK  ] Stopped Snappy daemon.
-          Starting Snappy daemon...
+          Starting Snappy daemon...
  [  OK  ] Started Snappy daemon.
-          Mounting Mount unit for core, revision 5548...
+          Mounting Mount unit for core, revision 5548...
  [  OK  ] Mounted Mount unit for core, revision 5548.
  [  OK  ] Stopped Snappy daemon.
-          Starting Snappy daemon...
+          Starting Snappy daemon...
  [  OK  ] Started Snappy daemon.
-          Mounting Mount unit for lxd, revision 9010...
+          Mounting Mount unit for lxd, revision 9010...
  [  OK  ] Mounted Mount unit for lxd, revision 9010.
  [  OK  ] Stopped Snappy daemon.
-          Starting Snappy daemon...
+          Starting Snappy daemon...
  [  OK  ] Started Snappy daemon.
-          Mounting Mount unit for core, revision 5548...
+          Mounting Mount unit for core, revision 5548...
  [  OK  ] Mounted Mount unit for core, revision 5548.
  [  OK  ] Stopped Snappy daemon.
-          Starting Snappy daemon...
+          Starting Snappy daemon...
  [  OK  ] Started Snappy daemon.
-          Mounting Mount unit for lxd, revision 9010...
+          Mounting Mount unit for lxd, revision 9010...
  [  OK  ] Mounted Mount unit for lxd, revision 9010.
  [  OK  ] Stopped Snappy daemon.
-          Starting Snappy daemon...
+          Starting Snappy daemon...
  [  OK  ] Started Snappy daemon.
-          Mounting Mount unit for core, revision 5548...
+          Mounting Mount unit for core, revision 5548...
  [  OK  ] Mounted Mount unit for core, revision 5548.
  [  OK  ] Stopped Snappy daemon.
-          Starting Snappy daemon...
+          Starting Snappy daemon...
  [  OK  ] Started Snappy daemon.
-          Mounting Mount unit for lxd, revision 9010...
+          Mounting Mount unit for lxd, revision 9010...
  [  OK  ] Mounted Mount unit for lxd, revision 9010.
  [  OK  ] Stopped Snappy daemon.
-          Starting Snappy daemon...
+          Starting Snappy daemon...
  [  OK  ] Started Snappy daemon.
-          Mounting Mount unit for core, revision 5548...
+          Mounting Mount unit for core, revision 5548...
  [  OK  ] Mounted Mount unit for core, revision 5548.
  [  OK  ] Stopped Snappy daemon.
-          Starting Snappy daemon...
+          Starting Snappy daemon...
  [  OK  ] Started Snappy daemon.
-          Mounting Mount unit for lxd, revision 9010...
+          Mounting Mount unit for lxd, revision 9010...
  [  OK  ] Mounted Mount unit for lxd, revision 9010.
  [  OK  ] Stopped Snappy daemon.
-          Starting Snappy daemon...
+          Starting Snappy daemon...
  [  OK  ] Started Snappy daemon.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  Package: snapd 2.35.4+18.10
  ProcVersionSignature: User Name 4.18.0-8.9-generic 4.18.7
  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-256color
-  PATH=(custom, no user)
-  XDG_RUNTIME_DIR=<set>
-  LANG=C.UTF-8
-  SHELL=/bin/bash
+  TERM=screen-256color
+  PATH=(custom, no user)
+  XDG_RUNTIME_DIR=<set>
+  LANG=C.UTF-8
+  SHELL=/bin/bash
  SourcePackage: snapd
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797218

Title:
  snap confine fails on top of overlayroot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1797218/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to