fails to add search directive to resolv.conf

Bug #1658750 reported by LaMont Jones
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
open-iscsi (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

When open-iscsi creates /etc/resolv.conf, it fails to add the domain name to resolv.conf:

See also http://askubuntu.com/questions/873701/maas-node-unable-to-resolve-its-own-hostname/874005

ubuntu@resolve:~$ cat /run/net-ens3.conf
DEVICE='ens3'
PROTO='dhcp'
IPV4ADDR='172.18.145.5'
IPV4BROADCAST='172.18.147.255'
IPV4NETMASK='255.255.252.0'
IPV4GATEWAY='172.18.144.1'
IPV4DNS0='192.168.133.18'
IPV4DNS1='0.0.0.0'
HOSTNAME=''
DNSDOMAIN='maas.example.com'
NISDOMAIN=''
ROOTSERVER='172.18.144.1'
ROOTPATH=''
filename='pxelinux.0'
UPTIME='8'
DHCPLEASETIME='600'
DOMAINSEARCH=''
ubuntu@resolve:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.133.18
ubuntu@resolve:~$ dpkg -l open-iscsi | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-=================================-============-=================================
ii open-iscsi 2.0.873+git0.3b4b4500-14ubuntu3.3 amd64 iSCSI initiator tools

Revision history for this message
LaMont Jones (lamont) wrote :

Note that while there is no DOMAINSEARCH, DNSDOMAIN needs to translate into something (domain or search directive), and only one of those will be honored by the resolver (they overwrite each other, per the specification).

Revision history for this message
Nish Aravamudan (nacc) wrote :

This would appear to be an issue in d/net-interface-handler, which currently ignores the DNSDOMAIN value.

There is no documentation in this file indicating what variables are expected or used...

But it seems most reasonable for DNSDOMAIN to translate to domain and DOMAINSEARCH to search, semantically?

Changed in open-iscsi (Ubuntu):
status: New → Triaged
Changed in open-iscsi (Ubuntu):
importance: Undecided → High
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Revisiting bugs that were triaged but dormant for 6 months I think we have to realize that this wasn't at the top of anyones todo list.

I didn't hear anything else about it and don't see this bug win against others up in the queue atm.
So to be honest we should reflect that in the bugs importance and lower it to match what happens.

@Lamont - since this casme from Maas, how did this continue for Maas? Is it just a remaining low-prio issue or more important than it was handled so far?

tags: added: bot-stop-nagging
Changed in open-iscsi (Ubuntu):
importance: High → Medium
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.