Comment 25 for bug 1603473

Revision history for this message
Mick Gregg (macgreagoir) wrote : Re: Relation fails as untis/machines are on different subnet on a multi NIC setup, juju 2.0 beta11

@rajesh-canonical

I can reproduce something very similar by using a statically assigned IP address of a lower sort order than the PXE/DHCP address, if the statically assigned address is also assigned by MAAS (therefore seen as a provider address).

To work around this, I added a maas preseed to get a interfaces.d extension config to assign the static address, leaving Juju unaware of the address. Here is an example: http://pastebin.ubuntu.com/20468944/

In this example, my DHCP range (which I want Juju to use as public-address) is 192.168.124.0/24 (.2 is the maas server) and my static (your 'SSH'?) range is 192.168.123.0/24. I do not configure maas nodes with static addresses in the 123.x range, I add then in the /etc/network/interfaces.d/unmanaged.cfg file put in place in the curtin preseed.

Do you mind testing to see if this helps?

Another option is to use different ranges, ensuring the correct range for Juju to use is the lowest in sort order, but this may be more intrusive to your testing than the preseed option.