[2.4] MAAS doesn't set the right DNS server when rackd.conf:maas_url is localhost
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Mike Pontillo |
Bug Description
Deploying a machine with these settings resulted in the wrong DNS for the deployed machines:
- 192.168.1.0/24 - external network
- 10.90.90.0/24 - internal network
ubuntu@maas00:~$ sudo cat /etc/maas/
database_host: localhost
database_name: maasdb
database_pass: YtO9mTBSk9Q7
database_port: 5432
database_user: maas
maas_url: http://
ubuntu@maas00:~$ sudo cat /etc/maas/
cluster_uuid: 9342b4df-
maas_url: http://
dhcp snippet:
shared-network vlan-5002 {
subnet 10.90.90.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 10.90.90.255;
option domain-name-servers 192.168.1.13;
option domain-name "maas";
option domain-search "maas", "maaslab";
option routers 10.90.90.1;
option ntp-servers 10.90.90.1;
#
# Subnet DHCP snippets
#
# No DHCP snippets defined for subnet
pool {
range 10.90.90.190 10.90.90.253;
}
}
}
# Machine network configuration
network:
version: 2
ethernets:
enp0s25:
match:
mtu: 1500
- 192.168.1.13
- maaslab
- maas
bridges:
br0:
- 10.90.90.3/24
- enp0s25
Related branches
- Lee Trager (community): Approve
- MAAS Lander: Approve
-
Diff: 369 lines (+165/-19)9 files modifiedsrc/maasserver/dhcp.py (+21/-7)
src/maasserver/dns/tests/test_zonegenerator.py (+2/-1)
src/maasserver/dns/zonegenerator.py (+6/-2)
src/maasserver/models/node.py (+6/-4)
src/maasserver/preseed_network.py (+14/-1)
src/maasserver/server_address.py (+5/-2)
src/maasserver/tests/test_dhcp.py (+48/-1)
src/maasserver/tests/test_preseed_network.py (+62/-0)
src/provisioningserver/utils/network.py (+1/-1)
summary: |
- [2.4] MAAS doesn't set the right DNS server + [2.4] MAAS doesn't set the right DNS server when rackd.conf:maas_url is + localhost |
Changed in maas: | |
milestone: | none → 2.4.0alpha2 |
importance: | Undecided → High |
status: | New → Triaged |
Changed in maas: | |
milestone: | 2.4.0alpha2 → 2.4.0beta1 |
Changed in maas: | |
milestone: | 2.4.0beta1 → 2.4.0beta2 |
Changed in maas: | |
milestone: | 2.4.0beta2 → 2.4.0beta3 |
Changed in maas: | |
assignee: | nobody → Mike Pontillo (mpontillo) |
milestone: | 2.4.0beta3 → 2.4.0rc1 |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 2.4.0rc1 → 2.4.0beta3 |
Changed in maas: | |
status: | Fix Committed → Fix Released |