root=<url> should automatically enable 'rc-initrd-dns' feature

Bug #1735225 reported by Scott Moser
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
resolvconf (Ubuntu)
Trusty
Fix Released
Medium
Unassigned
Xenial
Fix Released
Medium
Unassigned

Bug Description

=== Begin SRU Template ===
[Impact]
Booting a kernel/initramfs with 'rooturl=http://...' for trusty
or xenial requires also adding 'rc-initrd-dns' or 'cloud-config-url='
to the kernel command line in order to get the fix provided by bug
1711760
.

If a user boots with 'rooturl=', that should imply they want dns
copied over from the initramfs or otherwise working dns. They should
not have to add the additional flag.

[Test Case]
Download the test case attached.
Run it and follow the instructions.
Login to the guest (ubuntu:password), and inspect /etc/resolv.conf
without the fix there would be no data in /etc/resolv.conf. With the
fix you should see 'nameserver 10.0.2.2' and 'search mydomain.com bar.com'

[Regression Potential]
Regression potential should be very low.
This could negatively affect a user who was booting with rooturl=
and had solved the lack of dns in another way.

[Other Info]
rooturl was SRU'd to xenial and trusty. When that happened we were
not aware of the broken-ness of DNS. Had we been aware at that time,
we would have fixed this then, and the regression potential listed above
would not be present.

Note, that without a fix for bug 1714308, dns does not work inside
the initramfs. So the url in 'rooturl=<url>' has to be an IP address.

Related bugs:
 * bug 1714308: dns does not work in initramfs after configure_networking
 * bug 1711760: [2.3] resolv.conf is not set (during commissioning or testing)
=== End SRU Template ===

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: resolvconf 1.78ubuntu5
ProcVersionSignature: User Name 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.13
Architecture: amd64
Date: Wed Nov 29 17:33:21 2017
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: resolvconf
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Scott Moser (smoser) wrote :
description: updated
Scott Moser (smoser)
no longer affects: resolvconf (Ubuntu)
Changed in resolvconf (Ubuntu Trusty):
status: New → Confirmed
Changed in resolvconf (Ubuntu Xenial):
status: New → Confirmed
Changed in resolvconf (Ubuntu Trusty):
importance: Undecided → Medium
Changed in resolvconf (Ubuntu Xenial):
importance: Undecided → Medium
Revision history for this message
Scott Moser (smoser) wrote :
summary: - rooturl= should automatically enable 'rc-initrd-dns' feature
+ root=<url> should automatically enable 'rc-initrd-dns' feature
Revision history for this message
Scott Moser (smoser) wrote :

I uploaded to both xenial and trusty queue about 7 hours ago.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Scott, or anyone else affected,

Accepted resolvconf into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/resolvconf/1.78ubuntu6 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in resolvconf (Ubuntu Xenial):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-xenial
Changed in resolvconf (Ubuntu Trusty):
status: Confirmed → Fix Committed
tags: added: verification-needed-trusty
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Scott, or anyone else affected,

Accepted resolvconf into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/resolvconf/1.69ubuntu1.4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-trusty to verification-done-trusty. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-trusty. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :
tags: added: verification-done-trusty
removed: verification-needed-trusty
Revision history for this message
Scott Moser (smoser) wrote :
tags: added: verification-done verification-done-xenial
removed: verification-needed verification-needed-xenial
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package resolvconf - 1.78ubuntu6

---------------
resolvconf (1.78ubuntu6) xenial; urgency=medium

  * Read and apply dns information written by initramfs if
    using rooturl (root=http* on the command line) (LP: #1735225)

 -- Scott Moser <email address hidden> Wed, 29 Nov 2017 13:26:46 -0500

Changed in resolvconf (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for resolvconf has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package resolvconf - 1.69ubuntu1.4

---------------
resolvconf (1.69ubuntu1.4) trusty-proposed; urgency=medium

  * Read and apply dns information written by initramfs if
    using rooturl (root=http* on the command line) (LP: #1735225)

 -- Scott Moser <email address hidden> Wed, 29 Nov 2017 14:08:30 -0500

Changed in resolvconf (Ubuntu Trusty):
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.