Public bug reported:

This spawned from
https://plus.google.com/u/0/+MartinPitti/posts/JE8be51XRZy : lxc's
autopkgtests currently fail on armhf/ppc64el where we run autopkgtests
in an LXC container
(http://autopkgtest.ubuntu.com/packages/l/lxc/wily/armhf/). This isn't a
bug in LXC itself, but I started with this to get some appropriate
subscribers.

The testbeds use a custom and more liberal apparmor profile than the
default LXC one (see http://bazaar.launchpad.net/~auto-package-testing-
dev/auto-package-testing/trunk/view/head:/slave-admin/setup-adt-
lxc.commands):

profile lxc-container-adt flags=(attach_disconnected,mediate_deleted) {
  #include <abstractions/lxc/container-base>
  #include <abstractions/lxc/start-container>

  # Nesting
  mount fstype=cgroup -> /sys/fs/cgroup/**,
  mount fstype=proc -> /var/cache/lxc/**,
  mount fstype=sysfs -> /var/cache/lxc/**,
  mount options=(rw,bind) /var/cache/lxc/**/dev/shm/ -> 
/var/cache/lxc/**/run/shm/,

  # Required for lxc-tests
  mount options=(rw,bind) /lib/** -> /var/lib/lxc**,
  mount options=(rw,rbind) /var/lib/lxcsnaps/** -> /var/lib/lxcsnaps/**,

  # Allow containers to mount /proc, e. g. for sbuild/pbuilder tests
  mount options=(rw,bind),
  mount fstype=devpts,
  mount fstype=proc,
  mount fstype=sysfs,
}

But with just this they hang eternally and time out, and there are also
some test failures.

** Affects: auto-package-testing
     Importance: Undecided
         Status: New

** Affects: lxc (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: auto-package-testing
   Importance: Undecided
       Status: New

** Description changed:

  This spawned from
  https://plus.google.com/u/0/+MartinPitti/posts/JE8be51XRZy : lxc's
  autopkgtests currently fail on armhf/ppc64el where we run autopkgtests
  in an LXC container
- (http://autopkgtest.ubuntu.com/packages/l/lxc/wily/armhf/).
+ (http://autopkgtest.ubuntu.com/packages/l/lxc/wily/armhf/). This isn't a
+ bug in LXC itself, but I started with this to get some appropriate
+ subscribers.
  
  The testbeds use a custom and more liberal apparmor profile than the
  default LXC one (see http://bazaar.launchpad.net/~auto-package-testing-
  dev/auto-package-testing/trunk/view/head:/slave-admin/setup-adt-
  lxc.commands):
  
  profile lxc-container-adt flags=(attach_disconnected,mediate_deleted) {
-   #include <abstractions/lxc/container-base>
-   #include <abstractions/lxc/start-container>
+   #include <abstractions/lxc/container-base>
+   #include <abstractions/lxc/start-container>
  
-   # Nesting
-   mount fstype=cgroup -> /sys/fs/cgroup/**,
-   mount fstype=proc -> /var/cache/lxc/**,
-   mount fstype=sysfs -> /var/cache/lxc/**,
-   mount options=(rw,bind) /var/cache/lxc/**/dev/shm/ -> 
/var/cache/lxc/**/run/shm/,
+   # Nesting
+   mount fstype=cgroup -> /sys/fs/cgroup/**,
+   mount fstype=proc -> /var/cache/lxc/**,
+   mount fstype=sysfs -> /var/cache/lxc/**,
+   mount options=(rw,bind) /var/cache/lxc/**/dev/shm/ -> 
/var/cache/lxc/**/run/shm/,
  
-   # Required for lxc-tests
-   mount options=(rw,bind) /lib/** -> /var/lib/lxc**,
-   mount options=(rw,rbind) /var/lib/lxcsnaps/** -> /var/lib/lxcsnaps/**,
+   # Required for lxc-tests
+   mount options=(rw,bind) /lib/** -> /var/lib/lxc**,
+   mount options=(rw,rbind) /var/lib/lxcsnaps/** -> /var/lib/lxcsnaps/**,
  
-   # Allow containers to mount /proc, e. g. for sbuild/pbuilder tests
-   mount options=(rw,bind),
-   mount fstype=devpts,
-   mount fstype=proc,
-   mount fstype=sysfs,
+   # Allow containers to mount /proc, e. g. for sbuild/pbuilder tests
+   mount options=(rw,bind),
+   mount fstype=devpts,
+   mount fstype=proc,
+   mount fstype=sysfs,
  }
  
  But with just this they hang eternally and time out, and there are also
  some test failures.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1502604

Title:
  autopkgtests fail in LXC testbed

To manage notifications about this bug go to:
https://bugs.launchpad.net/auto-package-testing/+bug/1502604/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to