dns-* e/n/i are misplaced

Bug #1536262 reported by Ryan Beisner
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Undecided
Unassigned
1.9
Invalid
Undecided
Unassigned
2.0
Invalid
Undecided
Unassigned
curtin
Fix Released
High
Unassigned
curtin (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Confirmed
Medium
Unassigned

Bug Description

Given the following resultant e/n/i file, with indentation preserved, it appears that dns-* is intended as some sort of global setting. In fact, indentation is for convenience only, and those last dns-* entries are effectively applied to the iface immediate above it (eth3) in this case.

This may or may not cause functional issues, but it may be worth a re-consideration.

In this case, only eth0 is enabled.

# [A] No Juju: /etc/network/interfaces
# - Machine deployed via MAAS UI.
#
auto eth0
iface eth0 inet static
    dns-nameservers 10.245.168.2
    gateway 10.245.168.1
    address 10.245.168.11/21
    mtu 1500

auto eth1
iface eth1 inet manual
    mtu 1500

auto eth2
iface eth2 inet manual
    mtu 1500

auto eth3
iface eth3 inet manual
    mtu 1500

dns-nameservers 10.245.168.2
dns-search dellstack

Tags: uosci

Related branches

Revision history for this message
Ryan Beisner (1chb1n) wrote :

ie. The original:

auto eth3
iface eth3 inet manual
    mtu 1500

dns-nameservers 10.245.168.2
dns-search dellstack

...is the same as...

auto eth3
iface eth3 inet manual
    mtu 1500
    dns-nameservers 10.245.168.2
    dns-search dellstack

...and the same as...

auto eth3
iface eth3 inet manual
mtu 1500
dns-nameservers 10.245.168.2
dns-search dellstack

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Ryan, can yoyu please get this for us.

maas my-user node get_curtin_config <system_id>

Revision history for this message
Andrew McDermott (frobware) wrote :

I think we need to understand why it appears (and I say appears based on the way the file is rendered) that the dns-* options we see from a MAAS deployed node appear to be 'global', and not per NIC.

Revision history for this message
Blake Rouse (blake-rouse) wrote :

The get_curtin_config for that node will show that we pass that information to curtin as a global parameter that curtin provides. If that is incorrect for placing it in e/n/i then curtin should do the leg work and place it in resolvconf itself. Curtin provides the global option and MAAS uses it. Is a global option always invalid? Should a global option never be used? If that is the case then curtin should not have a global option as well.

Revision history for this message
Ryan Beisner (1chb1n) wrote :

Please consider using your MAAS dev lab to collect the necessary info, as the behavior is entirely predictable and consistent. I believe this to be reproducible on any MAAS 1.9 with any hardware, VM or otherwise.

I've got just 1 MAAS lab, it's for CI automation, and we really need to clear our test backlog now that we're back up and running from the Juju-proposed end. Thank you.

Scott Moser (smoser)
Changed in curtin:
status: New → Confirmed
importance: Undecided → High
Ryan Harper (raharper)
Changed in curtin:
status: Confirmed → In Progress
Gavin Panella (allenap)
Changed in maas:
status: New → Invalid
Scott Moser (smoser)
Changed in curtin:
status: In Progress → Fix Committed
Scott Moser (smoser)
Changed in curtin (Ubuntu):
status: New → Fix Released
Changed in curtin (Ubuntu Trusty):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Scott Moser (smoser) wrote : Fixed in Curtin 17.1

This bug is believed to be fixed in curtin in 17.1. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in curtin:
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.