<div dir="ltr">Hi Matt,<div><br></div><div>I need to dig into your setup a little more but wanted to point out a related bug:</div><div><br></div><div> <a href="https://bugs.launchpad.net/juju-core/+bug/1576674">https://bugs.launchpad.net/juju-core/+bug/1576674</a></div><div><br></div><div>which is currently in progress.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 7 June 2016 at 07:08, Matt Rae <span dir="ltr"><<a href="mailto:matt.rae@canonical.com" target="_blank">matt.rae@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, I'm deploying services into lxc containers using Juju 2.0 beta8 and MAAS 2.0 beta6.<div><br></div><div>The containers are being created with 3 interfaces with separate subnets which are bridged to the interfaces on the node hosting the container. I'm noticing that the containers don't have a default route which is should be gateway_ip 10.189.69.1.</div><div><br></div><div>The node hosting the container has the default route. I'm not sure why the default route isn't also in the container.</div><div><br></div><div>On the host there is default route with gateway 10.189.69.1</div><div><br></div><div><div>$ route -n</div><div>Kernel IP routing table</div><div>Destination Gateway Genmask Flags Metric Ref Use Iface</div><div>0.0.0.0 10.189.69.1 0.0.0.0 UG 0 0 0 br-eno1</div><div>10.0.3.0 0.0.0.0 255.255.255.0 U 0 0 0 lxcbr0</div><div>10.189.69.0 0.0.0.0 255.255.255.128 U 0 0 0 br-eno1</div><div>172.27.72.0 0.0.0.0 255.255.255.192 U 0 0 0 br-bond0</div><div>172.27.72.64 0.0.0.0 255.255.255.192 U 0 0 0 br-bond1</div><div>192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0</div></div><div><br></div><div>In the container there is no default route getting added:</div><div><br></div><div><div>$ route -n</div><div>Kernel IP routing table</div><div>Destination Gateway Genmask Flags Metric Ref Use Iface</div><div>10.189.69.0 0.0.0.0 255.255.255.128 U 0 0 0 eth2</div><div>172.27.72.0 0.0.0.0 255.255.255.192 U 0 0 0 eth0</div><div>172.27.72.64 0.0.0.0 255.255.255.192 U 0 0 0 eth1</div></div><div><br></div><div><div>$ ping 8.8.8.8</div><div>connect: Network is unreachable</div></div><div><br></div><div>Adding the default route manually solves the problem.</div><div><br></div><div><div>$ sudo route add default gw 10.189.69.1 eth2</div><div>$ ping 8.8.8.8<br></div><div>PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.</div><div>64 bytes from <a href="http://8.8.8.8" target="_blank">8.8.8.8</a>: icmp_seq=2 ttl=55 time=2.78 ms</div></div><div><br></div><div>Is there an additional setting needed to add a default route to lxc containers?</div><div><br></div><div>My subnets are below:</div><div><br></div><div><div>$ maas maas subnets read</div><div>Success.</div><div>Machine-readable output follows:</div><div>[</div><div> {</div><div> "vlan": {</div><div> "external_dhcp": null,</div><div> "resource_uri": "/MAAS/api/2.0/vlans/5001/",</div><div> "id": 5001,</div><div> "vid": 0,</div><div> "primary_rack": null,</div><div> "mtu": 1500,</div><div> "fabric": "fabric-0",</div><div> "name": "untagged",</div><div> "dhcp_on": false,</div><div> "secondary_rack": null</div><div> },</div><div> "resource_uri": "/MAAS/api/2.0/subnets/5/",</div><div> "allow_proxy": true,</div><div> "id": 5,</div><div> "gateway_ip": null,</div><div> "cidr": "<a href="http://172.27.72.0/26" target="_blank">172.27.72.0/26</a>",</div><div> "dns_servers": [],</div><div> "rdns_mode": 2,</div><div> "name": "<a href="http://172.27.72.0/26" target="_blank">172.27.72.0/26</a>",</div><div> "space": "space-0"</div><div> },</div><div> {</div><div> "vlan": {</div><div> "external_dhcp": null,</div><div> "resource_uri": "/MAAS/api/2.0/vlans/5002/",</div><div> "id": 5002,</div><div> "vid": 0,</div><div> "primary_rack": null,</div><div> "mtu": 1500,</div><div> "fabric": "fabric-1",</div><div> "name": "untagged",</div><div> "dhcp_on": false,</div><div> "secondary_rack": null</div><div> },</div><div> "resource_uri": "/MAAS/api/2.0/subnets/6/",</div><div> "allow_proxy": true,</div><div> "id": 6,</div><div> "gateway_ip": null,</div><div> "cidr": "<a href="http://172.27.72.64/26" target="_blank">172.27.72.64/26</a>",</div><div> "dns_servers": [],</div><div> "rdns_mode": 2,</div><div> "name": "<a href="http://172.27.72.64/26" target="_blank">172.27.72.64/26</a>",</div><div> "space": "space-0"</div><div> },</div><div> {</div><div> "vlan": {</div><div> "external_dhcp": null,</div><div> "resource_uri": "/MAAS/api/2.0/vlans/5010/",</div><div> "id": 5010,</div><div> "vid": 0,</div><div> "primary_rack": null,</div><div> "mtu": 1500,</div><div> "fabric": "fabric-9",</div><div> "name": "untagged",</div><div> "dhcp_on": false,</div><div> "secondary_rack": null</div><div> },</div><div> "resource_uri": "/MAAS/api/2.0/subnets/9/",</div><div> "allow_proxy": true,</div><div> "id": 9,</div><div> "gateway_ip": null,</div><div> "cidr": "fd0d:ffe0:5771::/64",</div><div> "dns_servers": null,</div><div> "rdns_mode": 2,</div><div> "name": "fd0d:ffe0:5771::/64",</div><div> "space": "space-0"</div><div> },</div><div> {</div><div> "vlan": {</div><div> "external_dhcp": null,</div><div> "resource_uri": "/MAAS/api/2.0/vlans/5002/",</div><div> "id": 5002,</div><div> "vid": 0,</div><div> "primary_rack": null,</div><div> "mtu": 1500,</div><div> "fabric": "fabric-1",</div><div> "name": "untagged",</div><div> "dhcp_on": false,</div><div> "secondary_rack": null</div><div> },</div><div> "resource_uri": "/MAAS/api/2.0/subnets/10/",</div><div> "allow_proxy": true,</div><div> "id": 10,</div><div> "gateway_ip": null,</div><div> "cidr": "fde9:8f83:4a81::/64",</div><div> "dns_servers": null,</div><div> "rdns_mode": 2,</div><div> "name": "fde9:8f83:4a81::/64",</div><div> "space": "space-0"</div><div> },</div><div> {</div><div> "vlan": {</div><div> "external_dhcp": null,</div><div> "resource_uri": "/MAAS/api/2.0/vlans/5001/",</div><div> "id": 5001,</div><div> "vid": 0,</div><div> "primary_rack": null,</div><div> "mtu": 1500,</div><div> "fabric": "fabric-0",</div><div> "name": "untagged",</div><div> "dhcp_on": false,</div><div> "secondary_rack": null</div><div> },</div><div> "resource_uri": "/MAAS/api/2.0/subnets/11/",</div><div> "allow_proxy": true,</div><div> "id": 11,</div><div> "gateway_ip": null,</div><div> "cidr": "fde9:8f83:4a81:1::/64",</div><div> "dns_servers": null,</div><div> "rdns_mode": 2,</div><div> "name": "fde9:8f83:4a81:1::/64",</div><div> "space": "space-0"</div><div> },</div><div> {</div><div> "vlan": {</div><div> "external_dhcp": null,</div><div> "resource_uri": "/MAAS/api/2.0/vlans/5011/",</div><div> "id": 5011,</div><div> "vid": 0,</div><div> "primary_rack": null,</div><div> "mtu": 1500,</div><div> "fabric": "fabric-10",</div><div> "name": "untagged",</div><div> "dhcp_on": false,</div><div> "secondary_rack": null</div><div> },</div><div> "resource_uri": "/MAAS/api/2.0/subnets/12/",</div><div> "allow_proxy": true,</div><div> "id": 12,</div><div> "gateway_ip": null,</div><div> "cidr": "fd0d:ffe0:5771:1::/64",</div><div> "dns_servers": null,</div><div> "rdns_mode": 2,</div><div> "name": "fd0d:ffe0:5771:1::/64",</div><div> "space": "space-0"</div><div> },</div><div> {</div><div> "vlan": {</div><div> "external_dhcp": null,</div><div> "resource_uri": "/MAAS/api/2.0/vlans/5004/",</div><div> "id": 5004,</div><div> "vid": 0,</div><div> "primary_rack": "4y3h7p",</div><div> "mtu": 1500,</div><div> "fabric": "fabric-3",</div><div> "name": "untagged",</div><div> "dhcp_on": true,</div><div> "secondary_rack": null</div><div> },</div><div> "resource_uri": "/MAAS/api/2.0/subnets/2/",</div><div> "allow_proxy": true,</div><div> "id": 2,</div><div> "gateway_ip": "10.189.69.1",</div><div> "cidr": "<a href="http://10.189.69.0/25" target="_blank">10.189.69.0/25</a>",</div><div> "dns_servers": [</div><div> "10.189.69.5",</div><div> "8.8.8.8"</div><div> ],</div><div> "rdns_mode": 2,</div><div> "name": "<a href="http://10.189.69.0/25" target="_blank">10.189.69.0/25</a>",</div><div> "space": "space-0"</div><div> }</div><div>]</div></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Matt</div><div><br></div></font></span></div>
<br>--<br>
Mailing list: <a href="https://launchpad.net/~maas-devel" rel="noreferrer" target="_blank">https://launchpad.net/~maas-devel</a><br>
Post to : <a href="mailto:maas-devel@lists.launchpad.net">maas-devel@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~maas-devel" rel="noreferrer" target="_blank">https://launchpad.net/~maas-devel</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" rel="noreferrer" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Andrew McDermott <<a href="mailto:andrew.mcdermott@canonical.com" target="_blank">andrew.mcdermott@canonical.com</a>></div><div>Juju Core Sapphire team <<a href="http://juju.ubuntu.com" target="_blank">http://juju.ubuntu.com</a>></div></div></div>
</div>