[Bug 1713747] Re: missing DOMAINSEARCH in initramfs output files if the DHCP server doesn't provide one
Łukasz Zemczak
1713747 at bugs.launchpad.net
Tue Nov 14 19:48:17 UTC 2017
Hello Mathieu, or anyone else affected,
Accepted klibc into xenial-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/klibc/2.0.4-8ubuntu1.16.04.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-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, details of your
testing will help us make a better decision.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance!
** Changed in: klibc (Ubuntu Xenial)
Status: Triaged => Fix Committed
** Tags added: verification-needed-xenial
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1713747
Title:
missing DOMAINSEARCH in initramfs output files if the DHCP server
doesn't provide one
Status in isc-dhcp package in Ubuntu:
Fix Released
Status in klibc package in Ubuntu:
Fix Released
Status in isc-dhcp source package in Xenial:
Triaged
Status in klibc source package in Xenial:
Fix Committed
Status in isc-dhcp source package in Zesty:
Fix Committed
Status in klibc source package in Zesty:
Fix Committed
Bug description:
[Impact]
Systems booted off the network where the DHCP server provides a domain name but no search domains may wish to rely on the domain name as a search value (as is done in isc-dhcp in userland, outside the initramfs), to be able to use short names for resolving hosts.
[Test cases]
1) Boot a system with a remote root over the network
- Typically this requires adding ip=(some IP settings) or ip=dhcp on the kernel command-line, and is better done automatically.
One good setup for this is to use MaaS to configure the system; where it will require a remote root over iSCSI.
2) Break boot in the initramfs (adding 'break=bottom' or 'break=premount' to stop in the initramfs at its end, or just before it mounts filesystems)
3) Validate the contents of /etc/resolv.conf and /run/net-*.conf.
[Regression potential]
Potential regressions would include incorrectly resolving names, bad configuration of /etc/resolv.conf (invalid values for the fields, or missing fields), or even failure to mount the remote root in the cases where name resolution is required to find the remote server.
--
For networked systems, for instance booting with an iSCSI root,
dhclient writes an output file in the form of /run/net-<iface>.conf
that contains data for other programs to consume. This allows, for
instance, open-iscsi to get the right information and properly connect
to the server to mount the root filesystem.
It is common for DHCP servers to only provide a domain name value, and
no search domains. In this case, isc-dhcp doesn't currently write
DOMAINSEARCH, but people may wish to use short names to resolve things
(such as in iSCSI server).
In the not-initramfs dhclient-script, when domain_search isn't
provided but domain_name is, domain_name is written to the search
string. If both are provided, domain_search is written. The initramfs
enter hook should do the same.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1713747/+subscriptions
More information about the foundations-bugs
mailing list