Public bug reported:

MAAS is unable to deploy nodes in different VLANs even though directory
connected to those VLANs.

Steps to reproduce issue:
- Configure multiple VLAN interfaces on the MAAS

root@maas-server:~# cat /proc/net/vlan/config 
VLAN Dev name    | VLAN ID
Name-Type: VLAN_NAME_TYPE_PLUS_VID_NO_PAD
vlan410        | 410  | ens11
vlan440        | 440  | ens11
vlan450        | 450  | ens11

root@maas-server:~# ip addr
[output_attached]

root@maas-server:~# ip route
default via 192.168.50.1 dev vlan450 onlink 
10.0.10.0/23 dev vlan410  proto kernel  scope link  src 10.0.10.250 
192.168.40.0/24 dev vlan440  proto kernel  scope link  src 192.168.40.250 
192.168.50.0/24 dev vlan450  proto kernel  scope link  src 192.168.50.250 

- Try to deploy node in VLAN410
- Node will be provided with PXE configuration that configures cloud-config-url 
to point to main IP address of the MAAS as configured in regiond.conf 
(maas_url: http://192.168.50.250:5240/MAAS)
- When node boots and cloud-init kicks in it will try to reach seed data at 
192.168.50.250
- Node which is located in VLAN410 will route packets to it's gateway which 
finally reaches 192.168.50.250
- At this point Ubuntu 16.04 (which was used in this case) will drop those 
packets as default RPF setting (strict mode) is not allowing packets to be 
received on vlan450 if reverse path for source of the packet indicates that 
packet should arrive on vlan410
- In order to resolve this issue RPF strict mode has to be disabled on the 
server that is running MAAS
- Another way to resolve this issue is by configuring maas_url to use domain 
name instead of static IP (maas_url: http://maas-server.local:5240/MAAS) in 
regiond.conf
- Then configuring multiple A records (one record per IP of the MAAS interface) 
with same name maas-server.local 
- That way PXE will serve configuration with cloud-config-url parameter 
pointing to domain name instead of static IP
- What will happen when cloud-init kicks in is that it will resolve MAAS 
address to multiple IP addresses and will iterate over them until it makes 
successful connection
- However that solution will not scale well if there is a need to configure 
large number of VLANs
- It would be great if MAAS could dynamically re-configure cloud-config-url 
with the MAAS IP in the same subnet from switch node requested configuration.

For example : If node in VLAN410 is asking for seed location then MAAS
should provide PXE configuration with cloud-config-url pointing to MAAS
IP in VLAN410 and not the one statically configured in regiond.conf

Please threat that bug as feature request if you decide to classify it
as such.

** Affects: maas (Ubuntu)
     Importance: Undecided
     Assignee: MAAS (maas)
         Status: New


** Tags: maas

** Attachment added: "ip_addr.log"
   
https://bugs.launchpad.net/bugs/1665680/+attachment/4820875/+files/ip_addr.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1665680

Title:
  Deploying nodes in multiple VLANs fails due to RPF filtering

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1665680/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to