<div dir="ltr"><div><div>Hi,<br><br></div>We are trying test environment deployment with openstack-ansible pike release. After executing setup-hosts.yaml, the lxc-containers were created. We have an issue while doing apt-get update in infra-repo-container as it couldn't connect to the proxy server.</div><div>The strange this is that the infra-repo-container is not showing ip on any interface when checked with ip r.</div><div>Could you please help us with this issue. Below are some logs on the container and on the host.<br></div><div><br></div><div>E: Failed to fetch <a href="http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages">http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages</a> Something wicked happened resolving '<a href="http://10.51.40.88:8080">10.51.40.88:8080</a>' (-9 - Address family for hostname not supported)</div><div><br></div><div>root@infra1-repo-container-a7a137c4:/# ping 10.51.40.88 (proxy server)<br>connect: Network is unreachable<br><br></div>On Container:<br><br>root@infra1-repo-container-a7a137c4:/# cat /etc/network/interfaces<br># The loopback network interface<br>auto lo<br>iface lo inet loopback<br># LXC interface, this is ALWAYS assumed to be DHCP.<br>auto eth0<br>iface eth0 inet dhcp<br># Load any additional configs<br>source /etc/network/interfaces.d/*.cfg<br><br>root@infra1-repo-container-a7a137c4:/# cat /etc/network/interfaces.d/eth1.cfg<br># Ansible managed<br><br>### start generated network for [ eth1 ] ###<br>auto eth1<br>iface eth1 inet static<br> address 192.168.124.126<br> netmask 255.255.255.0<br> mtu 1500<br> post-up sysctl -w net.ipv4.conf.$IFACE.arp_notify=1<br> post-up ip link set $IFACE address $(cat /sys/class/net/$IFACE/address)<br>### end generated network for [ eth1 ] ###<br>root@infra1-repo-container-a7a137c4:/# route -n<br>Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br><br clear="all"><div><div><div><div><div>On host:</div><div><br></div><div>root@ubuntu:/home/ansible# ifconfig lxcbr0<br>lxcbr0 Link encap:Ethernet HWaddr fe:02:f2:ff:bd:86<br> inet addr:10.0.3.1 Bcast:10.0.3.255 Mask:255.255.255.0<br> inet6 addr: fe80::a085:76ff:febb:401d/64 Scope:Link<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:691 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:10 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000<br> RX bytes:181224 (181.2 KB) TX bytes:828 (828.0 B)<br></div><div>root@ubuntu:/home/ansible# ip r<br>default via 192.168.124.1 dev eno1<br><a href="http://10.0.3.0/24">10.0.3.0/24</a> dev lxcbr0 proto kernel scope link src 10.0.3.1<br><a href="http://192.168.124.0/24">192.168.124.0/24</a> dev eno1 proto kernel scope link src 192.168.124.28<br><a href="http://192.168.124.0/24">192.168.124.0/24</a> dev br-mgmt proto kernel scope link src 192.168.124.28<br><br></div><div>-- <br><div class="gmail_signature"><div dir="ltr">Cheers !!!<div>Goutham Pratapa</div></div></div>
</div></div></div></div></div></div>