lxc-test-no-new-privs failed with Temporary failure resolving 'archive.ubuntu.com'

Bug #1821152 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Triaged
Undecided
Sean Feole
linux-azure (Ubuntu)
New
Undecided
Unassigned
linux-kvm (Ubuntu)
New
Undecided
Unassigned

Bug Description

It seems this failure only exist in KVM instances.

  FAIL: lxc-tests: lxc-test-no-new-privs (37s)
  ---
  + DONE=0
  + trap cleanup EXIT SIGHUP SIGINT SIGTERM
  + mkdir -p /etc/lxc/
  + cat
  + ARCH=i386
  + type dpkg
  ++ dpkg --print-architecture
  + ARCH=amd64
  + lxc-create -t download -n c1 -- -d ubuntu -r xenial -a amd64
  Setting up the GPG keyring
  Downloading the image index
  Downloading the rootfs
  Downloading the metadata
  The image cache is now ready
  Unpacking the rootfs

  ---
  You just created an Ubuntu xenial amd64 (20190320_07:42) container.

  To enable SSH, run: apt install openssh-server
  No default root or user password are set by LXC.
  + echo 'lxc.no_new_privs = 1'
  + lxc-start -n c1
  ++ lxc-info -n c1 -p -H
  + p1=8818
  + '[' 8818 '!=' -1 ']'
  + sleep 5s
  + lxc-attach -n c1 --clear-env -- apt update -y

  WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

  Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease
    Temporary failure resolving 'archive.ubuntu.com'
  Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
    Temporary failure resolving 'security.ubuntu.com'
  Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
    Temporary failure resolving 'archive.ubuntu.com'
  Reading package lists...
  Building dependency tree...
  Reading state information...
  All packages are up to date.
  W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'archive.ubuntu.com'
  W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
  W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com'
  W: Some index files failed to download. They have been ignored, or old ones used instead.
  + lxc-attach -n c1 --clear-env -- apt install -y gcc make

  WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

  Reading package lists...
  Building dependency tree...
  Reading state information...
  The following additional packages will be installed:
    binutils cpp cpp-5 gcc-5 libasan2 libatomic1 libc-dev-bin libc6-dev libcc1-0
    libcilkrts5 libgcc-5-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpfr4
    libmpx0 libquadmath0 libtsan0 libubsan0 linux-libc-dev manpages manpages-dev
  Suggested packages:
    binutils-doc cpp-doc gcc-5-locales gcc-multilib autoconf automake libtool
    flex bison gdb gcc-doc gcc-5-multilib gcc-5-doc libgcc1-dbg libgomp1-dbg
    libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg
    libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg glibc-doc
    make-doc man-browser
  The following NEW packages will be installed:
    binutils cpp cpp-5 gcc gcc-5 libasan2 libatomic1 libc-dev-bin libc6-dev
    libcc1-0 libcilkrts5 libgcc-5-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3
    libmpfr4 libmpx0 libquadmath0 libtsan0 libubsan0 linux-libc-dev make
    manpages manpages-dev
  0 upgraded, 26 newly installed, 0 to remove and 0 not upgraded.
  Need to get 28.7 MB of archives.
  After this operation, 102 MB of additional disk space will be used.
  Err:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libmpfr4 amd64 3.1.4-1
    Temporary failure resolving 'archive.ubuntu.com'
  Err:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 libmpc3 amd64 1.0.3-1
    Temporary failure resolving 'archive.ubuntu.com'
  Err:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 manpages all 4.04-2
    Temporary failure resolving 'archive.ubuntu.com'
  Err:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 binutils amd64 2.26.1-1ubuntu1~16.04.8
    Temporary failure resolving 'archive.ubuntu.com'
  Err:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 libisl15 amd64 0.16.1-1
    Temporary failure resolving 'archive.ubuntu.com'

It's a bit weird that if I run the command manually, it looks OK
lxc-create -t download -n c1 -- -d ubuntu -r xenial -a amd64
lxc-start -n c1
lxc-attach -n c1 --clear-env -- apt update -y
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [925 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [739 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [626 kB]

Po-Hsu Lin (cypressyew)
tags: added: bionic cosmic
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

On Cosmic-KVM, it has passed after re-run.
But for Bionic KVM, it's still failing with the same issue.

Po-Hsu Lin (cypressyew)
tags: removed: bionic
Revision history for this message
Sean Feole (sfeole) wrote :

appears to affect linux-azure: 4.18.0-1015.15, Standard_F2s_v2-ubuntu_lxc
04/05 16:42:33 DEBUG| utils:0153| [stdout] FAIL: lxc-tests: lxc-test-no-new-privs (37s)

Sean Feole (sfeole)
tags: added: aws azure bionic
tags: added: kvm
removed: aws
summary: - LXC test on KVM instances failed with Temporary failure resolving
+ lxc-test-no-new-privs failed with Temporary failure resolving
'archive.ubuntu.com'
Revision history for this message
Sean Feole (sfeole) wrote :

affects linux-azure: disco: 5.0.0-1005.5 , Standard_B1ms , Standard_F1s , Standard_F2s_v2

tags: added: disco
Revision history for this message
Sean Feole (sfeole) wrote :

affects linux-azure 5.0.0-1007.7

Sean Feole (sfeole)
no longer affects: linux-aws (Ubuntu)
Po-Hsu Lin (cypressyew)
tags: added: linux-kvm
removed: kvm
Sean Feole (sfeole)
tags: added: sru-20190812
Po-Hsu Lin (cypressyew)
tags: added: ubuntu-lxc
Sean Feole (sfeole)
tags: added: sru-20190902
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Still affecting 4.15 B-kvm

tags: added: 4.15
tags: added: sru-20190930
Sean Feole (sfeole)
Changed in ubuntu-kernel-tests:
status: New → Triaged
tags: added: sru-20191111
tags: added: eoan
Changed in ubuntu-kernel-tests:
assignee: nobody → Sean Feole (sfeole)
Revision history for this message
Sean Feole (sfeole) wrote :

after running this test by hand inspecting what possibly could be failing, I am not able to reproduce this, I feel that autotest itself might be the cause of some of the failures. will continue to investigate.

Revision history for this message
Sean Feole (sfeole) wrote :
Download full text (5.2 KiB)

xc-tests: lxc-test-api-reboot (78s)
18:19:08 DEBUG| [stdout] PASS: lxc-tests: lxc-test-apparmor (0s)
18:20:01 DEBUG| [stdout] PASS: lxc-tests: lxc-test-apparmor-mount (52s)
18:20:02 DEBUG| [stdout] PASS: lxc-tests: lxc-test-attach (1s)
18:21:16 DEBUG| [stdout] PASS: lxc-tests: lxc-test-autostart (74s)
18:21:16 DEBUG| [stdout] PASS: lxc-tests: lxc-test-basic (0s)
18:21:18 DEBUG| [stdout] PASS: lxc-tests: lxc-test-cgpath (2s)
18:21:18 DEBUG| [stdout] PASS: lxc-tests: lxc-test-checkpoint-restore (0s)
18:21:23 DEBUG| [stdout] PASS: lxc-tests: lxc-test-cloneconfig (5s)
18:21:23 DEBUG| [stdout] PASS: lxc-tests: lxc-test-clonetest (0s)
18:21:24 DEBUG| [stdout] PASS: lxc-tests: lxc-test-concurrent (1s)
18:21:24 DEBUG| [stdout] PASS: lxc-tests: lxc-test-config-jump-table (0s)
18:21:26 DEBUG| [stdout] PASS: lxc-tests: lxc-test-console (2s)
18:21:34 DEBUG| [stdout] PASS: lxc-tests: lxc-test-console-log (8s)
18:21:38 DEBUG| [stdout] PASS: lxc-tests: lxc-test-containertests (4s) ...

Read more...

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Found on D-KVM 5.0.0-1024.26

tags: added: sru-20191202
Po-Hsu Lin (cypressyew)
tags: added: 5.3 sru-20200316
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Spotted on Focal/azure : 5.4.0-1029.29 : amd64

tags: added: amd64 focal sru-20200921
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

failed on Bionic/azure-4.15 : 4.15.0-1097.107 : amd64 on Standard_B1ms

Standard_D48_v3

Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

focal/azure-5.8 5.8.0-1030.32~20.04.1-azure

tags: added: 5.8 sru-20210412
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Still visible on Impish, we should probably use newer container image for the test.

tags: added: sru-20220103
tags: added: 5.13 impish
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.