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

Reply via email to