Comment 20 for bug 1603473

Revision history for this message
Rajesh Kumar Chaturvedi (rajesh-canonical) wrote : Re: Relation fails as untis/machines are on different subnet on a multi NIC setup, juju 2.0 beta11

Hi Andrew,

Using above workaround the ip duplicacy resolved, but issue of wrong ip allocation is still there for nodes.

ifconfig
br-eth0 Link encap:Ethernet HWaddr 52:54:00:46:62:07
          inet addr:10.9.1.161 Bcast:10.9.1.255 Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:fe46:6207/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:8259 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4217 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:46366996 (46.3 MB) TX bytes:742318 (742.3 KB)

br-eth1 Link encap:Ethernet HWaddr 52:54:00:7b:fb:24
          inet addr:10.10.11.141 Bcast:10.10.11.255 Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:fe7b:fb24/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:10638 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4685 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:34751479 (34.7 MB) TX bytes:428812 (428.8 KB)

eth0 Link encap:Ethernet HWaddr 52:54:00:46:62:07
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:9739 errors:0 dropped:29 overruns:0 frame:0
          TX packets:5015 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:62080374 (62.0 MB) TX bytes:814704 (814.7 KB)

eth1 Link encap:Ethernet HWaddr 52:54:00:7b:fb:24
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:12064 errors:0 dropped:49 overruns:0 frame:0
          TX packets:4694 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:36175696 (36.1 MB) TX bytes:429526 (429.5 KB)

juju status
MODEL CONTROLLER CLOUD VERSION
controller cplane-controller cplane 2.0-beta11

APP STATUS EXPOSED ORIGIN CHARM REV OS
juju-gui maintenance false jujucharms juju-gui 130 ubuntu

UNIT WORKLOAD AGENT MACHINE PORTS PUBLIC-ADDRESS MESSAGE
juju-gui/0 maintenance executing 1 10.10.11.141 (install) installing charm software

MACHINE STATE DNS INS-ID SERIES AZ
0 started 10.9.1.160 /MAAS/api/1.0/nodes/node-278facc0-4cb6-11e6-b6fa-5254004a236f/ trusty default
1 started 10.10.11.141 /MAAS/api/1.0/nodes/node-b43a591a-4cb4-11e6-aba7-5254004a236f/ trusty default

juju run --unit juju-gui/0 'network-get --primary-address web'
10.9.1.161
juju run --unit juju-gui/0 'unit-get private-address'
10.10.11.141
juju run --unit juju-gui/0 'unit-get public-address'
10.10.11.141