Use the rack controller IP as DNS when relaying DHCP

Bug #1992330 reported by David Negreira
6
This bug affects 1 person
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://10.52.132.133:5248/ipxe.cfg";

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://10.52.132.133:5248/ipxe.cfg";

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://10.52.132.133:5248/ipxe.cfg";
###

Observe that all options respect the vlan IP Address, except domain-name-servers.

I am working on a patch to resolve this and would like some feedback.

Related branches

Revision history for this message
Alberto Donato (ack) wrote :

Hi, which version of MAAS are you using?

Changed in maas:
status: New → Incomplete
Revision history for this message
David Negreira (dnegreira) wrote :

Hi,

I tested this behavior and it happens on 3.1/3.2/3.3, but I believe it also happens on 3.0 and earlier versions.

Alberto Donato (ack)
Changed in maas:
status: Incomplete → Triaged
milestone: none → 3.3.0
importance: Undecided → Medium
Changed in maas:
milestone: 3.3.0 → 3.4.0
Revision history for this message
Joao Andre Simioni (jasimioni) wrote :

Hi,

since this is affecting a production environment running 3.2.6, I'd like to request the backport of the patch to the 3.2 version.

Thanks

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
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.