Use the rack controller IP as DNS when relaying DHCP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Björn Tillenius | ||
3.2 |
Fix Released
|
Medium
|
Björn Tillenius | ||
3.3 |
Fix Released
|
Medium
|
Björn Tillenius |
Bug Description
We encountered a situation where a VLAN is being relayed to another VLAN, and instead of the rack controller IPs set as DNS, the IP of the region controller is added as DNS. In a distributed environment, the region controller might not be routed through the VLANs that the rack servers provide IP addresses.
Below an example with the dhcpd.conf generated:
###
Base VLAN (the one being relayed to):
shared-network vlan-5001 {
subnet 10.52.132.0 netmask 255.255.255.0 {
ignore-client-uids true;
next-server 10.52.132.133;
option subnet-mask 255.255.255.0;
option broadcast-address 10.52.132.255;
option domain-name-servers 10.52.132.133;
option domain-name "maas";
option domain-search "maas";
option routers 10.52.132.1;
option ntp-servers 10.52.132.133;
...
filename "http://
Other vlans:
shared-network vlan-5002 {
subnet 10.52.140.0 netmask 255.255.255.0 {
ignore-client-uids true;
next-server 10.52.132.133;
option subnet-mask 255.255.255.0;
option broadcast-address 10.52.140.255;
option domain-name-servers 192.168.122.137;
option domain-name "maas";
option domain-search "maas";
option routers 10.52.140.1;
option ntp-servers 10.52.132.133;
...
filename "http://
shared-network vlan-5003 {
subnet 10.52.142.0 netmask 255.255.255.0 {
ignore-client-uids true;
next-server 10.52.132.133;
option subnet-mask 255.255.255.0;
option broadcast-address 10.52.142.255;
option domain-name-servers 192.168.122.137;
option domain-name "maas";
option domain-search "maas";
option routers 10.52.142.1;
option ntp-servers 10.52.132.133;
...
filename "http://
###
Observe that all options respect the vlan IP Address, except domain-
I am working on a patch to resolve this and would like some feedback.
Related branches
- Björn Tillenius: Approve
-
Diff: 201 lines (+60/-44)4 files modifiedsrc/maasserver/dhcp.py (+5/-34)
src/maasserver/models/subnet.py (+9/-4)
src/maasserver/models/tests/test_subnet.py (+4/-4)
src/maasserver/tests/test_dhcp.py (+42/-2)
- Alberto Donato (community): Approve
- MAAS Lander: Pending (unittests) requested
-
Diff: 60 lines (+13/-8)2 files modifiedsrc/maasserver/models/subnet.py (+9/-4)
src/maasserver/models/tests/test_subnet.py (+4/-4)
- Björn Tillenius: Approve
- MAAS Lander: Approve
-
Diff: 141 lines (+47/-36)2 files modifiedsrc/maasserver/dhcp.py (+5/-34)
src/maasserver/tests/test_dhcp.py (+42/-2)
Changed in maas: | |
status: | Incomplete → Triaged |
milestone: | none → 3.3.0 |
importance: | Undecided → Medium |
Changed in maas: | |
milestone: | 3.3.0 → 3.4.0 |
tags: | added: bug-council |
tags: | removed: bug-council |
Changed in maas: | |
milestone: | 3.3.0 → 3.3.0-beta3 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Hi, which version of MAAS are you using?