name resolution fails in vmdebootstrap with setup-testbed customize script

Bug #1659541 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Debian)
Fix Released
Unknown
autopkgtest (Ubuntu)
Fix Released
Undecided
Unassigned

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=/usr/share/autopkgtest/setup-commands/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 or copying /etc/resolv.conf from the host.

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)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
description: updated
description: updated
description: updated
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in autopkgtest (Ubuntu):
status: New → Fix Committed
Changed in autopkgtest (Debian):
status: Unknown → Fix Committed
Changed in autopkgtest (Debian):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 5.0.2

---------------
autopkgtest (5.0.2) unstable; urgency=medium

  * test: Adjust ChrootRunner tests for changed apt-get source invocation.
    Commit 762397342b changed the invocation of `apt-get source` and
    `dpkg-source -x`. Adjust ChrootRunner test mock commands accordingly.

 -- Martin Pitt <email address hidden> Mon, 16 Oct 2017 11:53:55 +0200

Changed in autopkgtest (Ubuntu):
status: Fix Committed → Fix Released
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.