dns-* e/n/i are misplaced
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/
# - 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
Related branches
- Scott Moser (community): Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 125 lines (+52/-8)4 files modifiedcurtin/net/__init__.py (+5/-4)
examples/tests/basic_network_static.yaml (+17/-0)
tests/unittests/test_net.py (+5/-4)
tests/vmtests/test_network.py (+25/-0)
Changed in curtin: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in curtin: | |
status: | Confirmed → In Progress |
Changed in maas: | |
status: | New → Invalid |
Changed in curtin: | |
status: | In Progress → Fix Committed |
Changed in curtin (Ubuntu): | |
status: | New → Fix Released |
Changed in curtin (Ubuntu Trusty): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
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