[Bug 1659541] [NEW] name resolution fails in vmdebootstrap with setup-testbed customize script

Jean-Baptiste Lallement jean-baptiste.lallement at ubuntu.com
Thu Jan 26 12:31:48 UTC 2017


Public bug reported:

On Ubuntu Zesty, I'm running the following command to provision a debian/sid VM:
sudo vmdebootstrap \
    --verbose --serial-console --distribution=sid \
    --customize=./setup-testbed --user=test/test \
    --size=8G --grub --image=$IMAGE \
    --sudo --convert-qcow2 \
    --log vmbootstrap.log --log-level debug

It fails on this command:
+ chroot /tmp/tmpno5Yk_ apt-get update
Err:1 http://httpredir.debian.org/debian sid InRelease
  Temporary failure resolving 'httpredir.debian.org'
Reading package lists... Done

Name resolution works fine on the host but does not inside the chroot.
In the chroot, /etc/resolv.conf is a link to /run/systemd/resolv.conf but the target does not exist (/run is not mounted) 
Name resolution works after mounting /run from the host inside the chroot.


ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: autopkgtest 4.3
ProcVersionSignature: Ubuntu 4.9.0-11.12-generic 4.9.0
Uname: Linux 4.9.0-11-generic x86_64
ApportVersion: 2.20.4-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jan 26 13:24:38 2017
InstallationDate: Installed on 2014-07-15 (926 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140520)
PackageArchitecture: all
SourcePackage: autopkgtest
UpgradeStatus: Upgraded to zesty on 2015-12-08 (414 days ago)

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


** Tags: amd64 apport-bug zesty

** Description changed:

  On Ubuntu Zesty, I'm running the following command to provision a debian/sid VM:
  sudo vmdebootstrap \
-     --verbose --serial-console --distribution=sid \
-     --customize=./setup-testbed --user=test/test \
-     --size=8G --grub --image=$IMAGE \
-     --sudo --convert-qcow2 \
-     --log vmbootstrap.log --log-level debug
+     --verbose --serial-console --distribution=sid \
+     --customize=./setup-testbed --user=test/test \
+     --size=8G --grub --image=$IMAGE \
+     --sudo --convert-qcow2 \
+     --log vmbootstrap.log --log-level debug
  
  It fails on this command:
  + chroot /tmp/tmpno5Yk_ apt-get update
  Err:1 http://httpredir.debian.org/debian sid InRelease
-   Temporary failure resolving 'httpredir.debian.org'
+   Temporary failure resolving 'httpredir.debian.org'
  Reading package lists... Done
  
- Name resolution works fine on the host but does not inside the chroot. 
- In the chroot, /etc/resolv.conf is a link to /run/systemd/resolv.conf but the target does not exist (/run is not mounted)
+ Name resolution works fine on the host but does not inside the chroot.
+ In the chroot, /etc/resolv.conf is a link to /run/systemd/resolv.conf but the target does not exist (/run is not mounted) 
+ Name resolution works after mounting /run from the host inside the chroot.
+ 
  
  ProblemType: Bug
  DistroRelease: Ubuntu 17.04
  Package: autopkgtest 4.3
  ProcVersionSignature: Ubuntu 4.9.0-11.12-generic 4.9.0
  Uname: Linux 4.9.0-11-generic x86_64
  ApportVersion: 2.20.4-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu Jan 26 13:24:38 2017
  InstallationDate: Installed on 2014-07-15 (926 days ago)
  InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140520)
  PackageArchitecture: all
  SourcePackage: autopkgtest
  UpgradeStatus: Upgraded to zesty on 2015-12-08 (414 days ago)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autopkgtest in Ubuntu.
https://bugs.launchpad.net/bugs/1659541

Title:
  name resolution fails in vmdebootstrap with setup-testbed customize
  script

Status in autopkgtest package in Ubuntu:
  New

Bug description:
  On Ubuntu Zesty, I'm running the following command to provision a debian/sid VM:
  sudo vmdebootstrap \
      --verbose --serial-console --distribution=sid \
      --customize=./setup-testbed --user=test/test \
      --size=8G --grub --image=$IMAGE \
      --sudo --convert-qcow2 \
      --log vmbootstrap.log --log-level debug

  It fails on this command:
  + chroot /tmp/tmpno5Yk_ apt-get update
  Err:1 http://httpredir.debian.org/debian sid InRelease
    Temporary failure resolving 'httpredir.debian.org'
  Reading package lists... Done

  Name resolution works fine on the host but does not inside the chroot.
  In the chroot, /etc/resolv.conf is a link to /run/systemd/resolv.conf but the target does not exist (/run is not mounted) 
  Name resolution works after mounting /run from the host inside the chroot.

  
  ProblemType: Bug
  DistroRelease: Ubuntu 17.04
  Package: autopkgtest 4.3
  ProcVersionSignature: Ubuntu 4.9.0-11.12-generic 4.9.0
  Uname: Linux 4.9.0-11-generic x86_64
  ApportVersion: 2.20.4-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu Jan 26 13:24:38 2017
  InstallationDate: Installed on 2014-07-15 (926 days ago)
  InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140520)
  PackageArchitecture: all
  SourcePackage: autopkgtest
  UpgradeStatus: Upgraded to zesty on 2015-12-08 (414 days ago)

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



More information about the foundations-bugs mailing list