name resolution fails in-target

Bug #1717038 reported by Carl Karsten
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
base-installer (Ubuntu)
Triaged
High
Unassigned
Artful
Triaged
High
Unassigned
debian-installer (Ubuntu)
Triaged
High
Unassigned
Artful
Triaged
High
Unassigned

Bug Description

artful (beta)

Seems any time something running in-target tries to resolve a name

Sep 12 03:59:58 in-target: Err:1 http://us.archive.ubuntu.com/ubuntu artful/main amd64 libnl-3-200 amd64 3.2.29-0ubuntu3

Sep 12 03:59:58 in-target: Temporary failure resolving 'us.archive.ubuntu.com'

cat /etc/resolv.conf
search lan
nameserver 192.168.1.3

(expected)

alt-f2 to console

# ping goo.gl (works)

# in-target ping goo.gl (output goes to syslog:
 Sep 12 4:5:6 in-target: ping goo.gl Temporary failure resolving 'goo.gl'

Revision history for this message
Steve Langasek (vorlon) wrote :

What exact image (type and date) did you see this with? In my tests of the current (20170914) artful-server-amd64.iso, name resolution appears to work fine.

Changed in debian-installer (Ubuntu):
status: New → Incomplete
Revision history for this message
Steve Langasek (vorlon) wrote :

Ah. I was using 'chroot /target ping www.google.com', not 'in-target' since 'in-target' takes a lock and doesn't allow you to run it while other commands are installing.

If I wait until the target setup has finished and then run 'in-target ping www.google.com', I also see this name resolution failure.

It turns out that 'in-target' mounts a tmpfs on /run each time that it's called, and unmounts it when it's done. But the stub resolv.conf target is in the /run directory on the target filesystem, *not* on the tmpfs.

To fix this, we need:
 - /run to be mounted before packages start writing to it
 - /run to persist for the duration of the install process, so that files like /run/systemd/resolve/stub-resolv.conf don't disappear after they've been set up.

Changed in debian-installer (Ubuntu):
importance: Undecided → High
status: Incomplete → Triaged
Steve Langasek (vorlon)
Changed in base-installer (Ubuntu):
status: New → Triaged
importance: Undecided → High
tags: added: id-59bb66b5c974df303d243493
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.