Some background.
I have MAAS configured cloud with 4 systems successfully setup and PXE booting.
Each system has the same network setup as follows:
maas nodes, different ip for each node referenced as ##
name type subnet ipaddress
eno1 Physical 10.41.0.0/20 10.41.0.##
eno1.100 VLAN 10.100.0.0/20 10.100.0.##
eno1.150 VLAN 10.150.0.0/20 10.150.0.##
eno1.30 VLAN 10.30.0.0/20 10.30.0.##
eno2 Physical 10.99.0.0/20 unconfigured
eno2.200 VLAN 10.200.0.0/20 10.200.0.##
eno2.250 VLAN 10.250.0.0/20 10.250.0.##
eno2.50 VLAN 10.50.0.0/20 10.50.0.##
Whenever I attempt to deploy configurations like below using JUJU I notice that the charm fails because it’s not getting both IP addresses. The charm hangs at “config changed” or “leader changed”. When I do a juju-debug --hooks ceph-mon# I find that the unit only has 1 of the configured IP addresses.
ceph-mon:
annotations:
gui-x: ‘750’
gui-y: ‘500’
charm: cs:ceph-mon
num_units: 3
options:
ceph-cluster-network: 10.30.0.0/20
ceph-public-network: 10.50.0.0/20
expected-osd-count: *expected-osd-count
monitor-count: *expected-mon-count
source: *openstack-origin
to:
- ‘lxd:1’
- ‘lxd:2’
- ‘lxd:3’
The error varries but from what I can tell the charm, in this case ceph-mon is only getting one of the 2 configured IP addresses.
So how do I go about fixing this or diagnosing this?
Do I change the MAAS nodes from VLAN’s to aliases? The nodes have an IP address on each of the networks and VLANs and is reachable from all of the other nodes on each of the configured networks so networking is working. Do I need to enable VLAN’s on the containers, how do I do that? During deployment, other charms do detect and get setup under the other configured IP’s but it’s always just one of the configured IPs.
What is the proper way to make the containers, for lack of better words, multi nic aware?
Other details:
Regardless of what IP’s and networks are available on the host node, the containers only seam to see 1 of the nodes configured IP’s, the host will get configured with an IP on one subnet and all of the containers will get configured on a different subnet but it’s all the same one.
If there is a “correct” setup for this to work either in MAAS or JUJU I’m open to suggestions.
The reason I’m asking for help here rather than the MAAS forum is because when I deploy the nodes with MAAS as just plan nodes, all networking works without issue.
Thank you.