[Bug 1446658] Re: lxc-test-apparmor fails on aarch64
This is no longer happening on stock kernels. ** Changed in: lxc (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446658 Title: lxc-test-apparmor fails on aarch64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1446658/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446658] Re: lxc-test-apparmor fails on aarch64
Moving this back to lxc, as this doesn't appear to be an apparmor problem. ** Package changed: apparmor (Ubuntu) => lxc (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446658 Title: lxc-test-apparmor fails on aarch64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1446658/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446658] Re: lxc-test-apparmor fails on aarch64
I also find the same issue in another ARM board, I can confirm that it's just following sentence to cause the failed result: run_cmd lxc-create -t download -n c1 -- -d ubuntu -r trusty -a $ARCH It will try to check the following file and download a image from website indexed in this file, if success, then create a container. http://images.linuxcontainers.org//meta/1.0/index-user Because the parameter $ARCH is arm64 definitely, and I can't find any index with "arm64" in above file and any "arm64" directory in following position yet. http://images.linuxcontainers.org/images/ubuntu/vivid/ I guess this is just the root case of this issue. I also find the similar sentence in following file, and all these test cases will fail on ARM board too, I think this is their common root cause. lxc-test-apparmor-mount lxc-test-usernic lxc-test-autostart lxc-test-usernic.in Beside this, I also found there are so many hard-code about "trusty" in multi lxc-tests cases listed as follows: justin@D02-VIVID:~/lxc/lxc-1.1.2/src/tests$ grep -R 'trusty' . ./lxc-test-apparmor-mount:run_cmd lxc-create -t download -n $cname -- -d ubuntu -r trusty -a $ARCH Binary file ./get_item.o matches ./lxc-test-usernic.in:run_cmd "lxc-create -t download -n b1 -- -d ubuntu -r trusty -a $ARCH" ./lxc-test-autostart:lxc-create -t download -n $CONTAINER_NAME -- -d ubuntu -r trusty -a $ARCH ./lxc-test-usernic:run_cmd "lxc-create -t download -n b1 -- -d ubuntu -r trusty -a $ARCH" Binary file ./lxc-test-get_item matches Binary file ./lxc-test-createtest matches ./lxc-test-unpriv:run_cmd lxc-create -t download -n c1 -- -d ubuntu -r trusty -a $ARCH I'm afraid that if this will cause that these test cases can't be compatible to different Ubuntu distribution? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446658 Title: lxc-test-apparmor fails on aarch64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1446658/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446658] Re: lxc-test-apparmor fails on aarch64
And based on my comment in #14 the tests that I said currently fail: lxc-test-unpriv lxc-test-autostart lxc-test-usernic are also trying to download an arm64 image that, AFAICT at the time of writing, does not exist. So, given that lxc-test-apparmor does work on my trusty install: ubuntu@linaro-test:~$ uname -a Linux linaro-test 3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20:16:58 UTC 2015 aarch64 aarch64 aarch64 GNU/Linux and I know now that the three tests which fail are due to a non-existent image it would appear that everything is in fact just hunky-dory. When you run these tests on arm64 are you using a different image repository? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446658 Title: lxc-test-apparmor fails on aarch64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1446658/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446658] Re: lxc-test-apparmor fails on aarch64
Looking at: http://images.linuxcontainers.org/images/ubuntu/trusty/ I don't see a directory for arm64 (or aarch64) so that explains why lxc- test-usernic fails -- there is no arm64 image to download. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446658 Title: lxc-test-apparmor fails on aarch64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1446658/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446658] Re: lxc-test-apparmor fails on aarch64
I believe there is also GPG connectivity: root@linaro-test:/home/ubuntu/lxc-1.0.7/debian/tests# gpg --search-keys andrew.iain.mcderm...@gmail.com gpg: searching for "andrew.iain.mcderm...@gmail.com" from hkp server keys.gnupg.net (1) Andrew McDermott 2048 bit RSA key 1250D2A5, created: 2013-06-02 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446658 Title: lxc-test-apparmor fails on aarch64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1446658/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446658] Re: lxc-test-apparmor fails on aarch64
Regarding access to images.linuxcontainers.org - I believe I can "see" this from my test machine: root@linaro-test:/home/ubuntu/lxc-1.0.7/debian/tests# dig +short images.linuxcontainers.org rproxy.stgraber.org. 192.99.34.219 root@linaro-test:/home/ubuntu/lxc-1.0.7/debian/tests# dig +short -x 192.99.34.219 vorash.stgraber.org. root@linaro-test:/home/ubuntu/lxc-1.0.7/debian/tests# ping images.linuxcontainers.org PING rproxy.stgraber.org (192.99.34.219) 56(84) bytes of data. 64 bytes from vorash.stgraber.org (192.99.34.219): icmp_seq=1 ttl=54 time=96.7 ms 64 bytes from vorash.stgraber.org (192.99.34.219): icmp_seq=2 ttl=54 time=88.2 ms 64 bytes from vorash.stgraber.org (192.99.34.219): icmp_seq=3 ttl=54 time=88.2 ms 64 bytes from vorash.stgraber.org (192.99.34.219): icmp_seq=4 ttl=54 time=88.2 ms 64 bytes from vorash.stgraber.org (192.99.34.219): icmp_seq=5 ttl=54 time=88.2 ms 64 bytes from vorash.stgraber.org (192.99.34.219): icmp_seq=6 ttl=54 time=88.2 ms root@linaro-test:/home/ubuntu/lxc-1.0.7/debian/tests# wget images.linuxcontainers.org --2015-04-22 08:56:28-- http://images.linuxcontainers.org/ Resolving images.linuxcontainers.org (images.linuxcontainers.org)... 192.99.34.219, 2001:470:b368:1020:1::2 Connecting to images.linuxcontainers.org (images.linuxcontainers.org)|192.99.34.219|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 951 [text/html] Saving to: ‘index.html’ (index.html attached) ** Attachment added: "index.html from wget linux.imagescontainers.org" https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1446658/+attachment/4381173/+files/index.html -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446658 Title: lxc-test-apparmor fails on aarch64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1446658/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[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 assert(container.defined) AssertionError --- SUMMARY: pass=21, fail=4, ignored=0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446658 Title: lxc-test-apparmor fails on aarch64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1446658/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446658] Re: lxc-test-apparmor fails on aarch64
Error output from the three tests that fail: root@linaro-test:/tmp/lxc# id uid=0(root) gid=0(root) groups=0(root) root@linaro-test:/tmp/lxc# lxc-test-unpriv Removing user `lxcunpriv' ... Warning: group `lxcunpriv' has no more members. Done. WARN: could not reopen tty: Permission denied WARN: could not reopen tty: Permission denied WARN: could not reopen tty: Permission denied WARN: could not reopen tty: Permission denied 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 root@linaro-test:/tmp/lxc# echo $? 1 root@linaro-test:/tmp/lxc# 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 root@linaro-test:/tmp/lxc# 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 root@linaro-test:/tmp/lxc# echo $? 1 root@linaro-test:/tmp/lxc# lxc-test-usernic /usr/sbin/deluser: The user `usernic-user' does not exist. WARN: could not reopen tty: Permission denied WARN: could not reopen tty: Permission denied WARN: could not reopen tty: Permission denied WARN: could not reopen tty: Permission denied 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 root@linaro-test:/tmp/lxc# echo $? 1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446658 Title: lxc-test-apparmor fails on aarch64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1446658/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446658] Re: lxc-test-apparmor fails on aarch64
We run the tests using the debian/tests/exercise script in the source package. All 3 of your failing tests require connectivity to both the GPG network and https connectivity to images.linuxcontainers.org, could that be the problem? The actual error output from those tests would be useful to figure it out. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446658 Title: lxc-test-apparmor fails on aarch64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1446658/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446658] Re: lxc-test-apparmor fails on aarch64
I just installed the following cloud image onto an Applied Micro X-Gene board: http://cloud-images.ubuntu.com/trusty/20150420.1/trusty-server- cloudimg-arm64-disk1.img Running the tests in the same way: # for i in /usr/bin/lxc-test-*; do $i || touch /tmp/$(basename $i).failed; done I see the following failures: root@linaro-test:/tmp# ls -1 /tmp/*.failed /tmp/lxc-test-autostart.failed /tmp/lxc-test-unpriv.failed /tmp/lxc-test-usernic.failed so the previous lxc-test-apparmor is OK. root@linaro-test:~# uname -a Linux linaro-test 3.13.0-46-generic #79-Ubuntu SMP Tue Mar 10 20:08:34 UTC 2015 aarch64 aarch64 aarch64 GNU/Linux root@linaro-test:/tmp# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 14.04.2 LTS Release:14.04 Codename: trusty Apologies for the confusion over the kernel version. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446658 Title: lxc-test-apparmor fails on aarch64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1446658/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446658] Re: lxc-test-apparmor fails on aarch64
Yes, the kernel is 3.19.2. I realised I was running a later version than stock just after I submitted the report. I am deploying a fresh cloud image onto a new machine and will double-check that it still happens (but suspecting not). BTW: do you run the tests in a diferent way than my 'for' loop? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446658 Title: lxc-test-apparmor fails on aarch64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1446658/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446658] Re: lxc-test-apparmor fails on aarch64
What kernel are you running? The kernel version reported in this bug report doesn't appear to match that of an official Ubuntu kernel (currently 3.19.0-15.15). My best guess here is that your kernel's apparmor implementation is broken somehow since our own aarch64 tests pass fine. I'm moving this over to the apparmor package so that the apparmor folks can comment on this and if the upstream kernel is missing something, make sure they upstream it ASAP. ** Package changed: lxc (Ubuntu) => apparmor (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446658 Title: lxc-test-apparmor fails on aarch64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1446658/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs