← Back to team overview

touch-packages team mailing list archive

[Bug 1446658] Re: lxc-test-apparmor fails on aarch64

 

I also ran the tests using the debian/tests/exercise script:

SUMMARY: pass=21, fail=4, ignored=0

root@linaro-test:/home/ubuntu/lxc-1.0.7/debian/tests# ./exercise 
PASS: lxc-tests: /usr/bin/lxc-test-apparmor
PASS: lxc-tests: /usr/bin/lxc-test-attach
FAIL: lxc-tests: /usr/bin/lxc-test-autostart
---
Setting up the GPG keyring
Downloading the image index
ERROR: Couldn't find a matching image.
lxc_container: lxccontainer.c: create_run_template: 1125 container creation template for lxc-test-auto failed
lxc_container: lxc_create.c: main: 271 Error creating container lxc-test-auto
FAIL
---
PASS: lxc-tests: /usr/bin/lxc-test-cgpath
PASS: lxc-tests: /usr/bin/lxc-test-clonetest
PASS: lxc-tests: /usr/bin/lxc-test-concurrent
PASS: lxc-tests: /usr/bin/lxc-test-console
PASS: lxc-tests: /usr/bin/lxc-test-containertests
PASS: lxc-tests: /usr/bin/lxc-test-createtest
PASS: lxc-tests: /usr/bin/lxc-test-destroytest
PASS: lxc-tests: /usr/bin/lxc-test-device-add-remove
PASS: lxc-tests: /usr/bin/lxc-test-get_item
PASS: lxc-tests: /usr/bin/lxc-test-getkeys
PASS: lxc-tests: /usr/bin/lxc-test-list
PASS: lxc-tests: /usr/bin/lxc-test-locktests
PASS: lxc-tests: /usr/bin/lxc-test-lxcpath
PASS: lxc-tests: /usr/bin/lxc-test-reboot
PASS: lxc-tests: /usr/bin/lxc-test-saveconfig
PASS: lxc-tests: /usr/bin/lxc-test-shutdowntest
PASS: lxc-tests: /usr/bin/lxc-test-snapshot
PASS: lxc-tests: /usr/bin/lxc-test-startone
PASS: lxc-tests: /usr/bin/lxc-test-ubuntu
FAIL: lxc-tests: /usr/bin/lxc-test-unpriv
---
Removing user `lxcunpriv' ...
Warning: group `lxcunpriv' has no more members.
Done.
Setting up the GPG keyring
Downloading the image index
ERROR: Couldn't find a matching image.
lxc_container: lxccontainer.c: create_run_template: 1125 container creation template for c1 failed
lxc_container: lxc_create.c: main: 271 Error creating container c1
c2 is not running
c1 is not running
---
FAIL: lxc-tests: /usr/bin/lxc-test-usernic
---
/usr/sbin/deluser: The user `usernic-user' does not exist.
Setting up the GPG keyring
Downloading the image index
ERROR: Couldn't find a matching image.
lxc_container: lxccontainer.c: create_run_template: 1125 container creation template for b1 failed
lxc_container: lxc_create.c: main: 271 Error creating container b1
FAIL
---
FAIL: python3: API
---
Setting up the GPG keyring
Downloading the image index
ERROR: Couldn't find a matching image.
lxc_container: lxccontainer.c: create_run_template: 1125 container creation template for 8a397b70-e8cc-11e4-b80c-0001730204af failed
Getting instance for '8a397b70-e8cc-11e4-b80c-0001730204af'
Creating rootfs using 'download', arch=arm64
Traceback (most recent call last):
  File "/tmp/tmp.QlGl5dcqZY", line 71, in <module>
    assert(container.defined)
AssertionError
---

SUMMARY: pass=21, fail=4, ignored=0

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1446658

Title:
  lxc-test-apparmor fails on aarch64

Status in apparmor package in Ubuntu:
  New

Bug description:
  Running lxc-test-apparmor fails on aarch64 (arm64) systems.

  The following files which are listed in files_to_deny[] in
  src/tests/aa.c:

     /sys/kernel/uevent_helper
     /proc/sys/kernel/sysrq

  are not denied, but should be.

  Perhaps I should be changing the apparmor profile for lxc before
  running the tests (but that's just a guess).

  I'm invoking the tests as:

     # for i in /usr/bin/lxc-test-* ; do $i || touch /tmp/$(basename
  $i).failed; done

  which results in the following failures:

    lxc-test-apparmor.failed
    lxc-test-autostart.failed
    lxc-test-containertests.failed
    lxc-test-unpriv.failed

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: lxc 1.0.7-0ubuntu0.1
  ProcVersionSignature: Error: [Errno 2] No such file or directory: '/proc/version_signature'
  Uname: Linux 3.19.2 aarch64
  ApportVersion: 2.14.1-0ubuntu3.7
  Architecture: arm64
  Date: Tue Apr 21 13:17:28 2015
  ProcEnviron:
   TERM=screen-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: lxc
  UpgradeStatus: No upgrade log present (probably fresh install)
  defaults.conf:
   lxc.network.type = veth
   lxc.network.link = lxcbr0
   lxc.network.flags = up
   lxc.network.hwaddr = 00:16:3e:xx:xx:xx
  --- 
  ApportVersion: 2.14.1-0ubuntu3.7
  Architecture: arm64
  DistroRelease: Ubuntu 14.04
  KernLog:
   
  Package: lxc 1.0.7-0ubuntu0.1
  PackageArchitecture: arm64
  ProcCmdline: console=ttyS0,115200n8 root=/dev/sda1 rw rootwait
  ProcEnviron:
   TERM=screen-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Error: [Errno 2] No such file or directory: '/proc/version_signature'
  Tags:  trusty uec-images
  Uname: Linux 3.19.2 aarch64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: kvm libvirtd
  _MarkForUpload: True
  defaults.conf:
   lxc.network.type = veth
   lxc.network.link = lxcbr0
   lxc.network.flags = up
   lxc.network.hwaddr = 00:16:3e:xx:xx:xx
  lxcsyslog:

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


References