1.9 doesn't set the dns-search option in the generate /etc/network/interfaces
Bug #1496562 reported by
Blake Rouse
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Blake Rouse | ||
curtin |
Fix Released
|
High
|
Unassigned |
Bug Description
When a node is deployed in MAAS 1.9 and curtin generates the /etc/network/
sudo they see:
sudo: unable to resolve host maas1
To fix this issue both MAAS and curtin need to be fixed.
1. MAAS needs to provide a list of dns-search paths for curtin.
2. Curtin needs to place that information in the generated /etc/network/
Related branches
lp:~raharper/curtin/fix-no-dns-search
- Scott Moser (community): Approve
- Blake Rouse (community): Approve
-
Diff: 247 lines (+111/-7)7 files modifiedcurtin/net/__init__.py (+7/-2)
curtin/net/network_state.py (+16/-4)
examples/network-all.yaml (+14/-0)
examples/tests/basic_network.yaml (+4/-0)
tests/unittests/test_net.py (+22/-1)
tests/vmtests/__init__.py (+7/-0)
tests/vmtests/test_network.py (+41/-0)
lp:~blake-rouse/maas/fix-1496562
- Andres Rodriguez (community): Approve
-
Diff: 131 lines (+48/-4)4 files modifiedsrc/maasserver/dns/tests/test_zonegenerator.py (+22/-0)
src/maasserver/dns/zonegenerator.py (+11/-0)
src/maasserver/preseed_network.py (+6/-2)
src/maasserver/tests/test_preseed_network.py (+9/-2)
Changed in curtin: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Attached branch has a fix. dns-search can be appended in two places:
- subnets
- type static
address 1.1.1.1
dns-search:
- path1
- path2
or
- subnets
- type static
address 1.1.1.1
dns-search: path1 path2
or
- nameserver
address: 8.8.8.8
search: path1 path2
or
- nameserver
address: 8.8.8.8
search:
- path1
- path2
curtin will inject
dns-search <paths> either under the specified interface (if configured under subnets)
or if using nameserver config, then it will appear underneath all iface lines.