[MAAS 2.0 ] does not add default gw route to nodes.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Expired
|
Undecided
|
Unassigned |
Bug Description
MAAS 2.0 (beta) does not add default gw route to hosts. This causes the nodes not to be pingable from external to subnet. Adding this route manually fixes the issue, but MAAS UI has changed and it is missing the necessary network config options under "networks" so I am unable to add this route from MAAS UI.
ubuntu@hawker3:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.3.0 * 255.255.255.0 U 0 0 0 lxcbr0
10.228.0.0 * 255.255.0.0 U 0 0 0 enP7p1s0
ubuntu@hawker3:~$ sudo route add default gw 10.228.0.1 enP7p1s0
ubuntu@hawker3:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.228.0.1 0.0.0.0 UG 0 0 0 enP7p1s0
10.0.3.0 * 255.255.255.0 U 0 0 0 lxcbr0
10.228.0.0 * 255.255.0.0 U 0 0 0 enP7p1s0
ubuntu@hawker3:~$
Hi Manoj,
Actually MAAS adds the default gateway for the interface that has been selected as the default gateway. By default, it will always be the interface in which MAAS is PXE booting unless you manually switch that. This will be based on whether you have defined a gateway for the subnet.
Did you define a gateway for the subnet ?
This is what MAAS defines:
ubuntu@ blissless- madyson: ~$ ip route sh
default via 192.168.10.1 dev eno1 onlink
10.0.3.0/24 dev lxcbr0 proto kernel scope link src 10.0.3.1
192.168.10.0/24 dev eno1 proto kernel scope link src 192.168.10.3