<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<br> <b>apt-get update </b>in infra-repo-container as it couldn't connect to the proxy server.<div>The strange thing is that the infra-repo-container is not showing ip on any interface when checked with <u><i><b>ip r</b></i></u>.</div><div><br></div><div>Could you please help us with this issue. Below are some logs on the container and on the host.<br></div><div><span style="color:rgb(255,0,0)"><br></span></div><div><span style="color:rgb(255,0,0)">E: Failed to fetch <a href="http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages" target="_blank">http://security.ubuntu.com/<wbr>ubuntu/dists/xenial-security/<wbr>main/binary-amd64/Packages</a>  Something wicked happened resolving '<span style="color:rgb(111,168,220)">xx.xx.xx.xx</span><a href="http://10.51.40.88:8080" target="_blank">:8080</a>' (-9 - Address family for hostname not supported)</span></div><div><span style="color:rgb(255,0,0)"><br></span></div><div><span style="color:rgb(255,0,0)">root@infra1-repo-container-</span><wbr><span style="color:rgb(255,0,0)">a7a137c4:/# ping xx.xx.xx.xx (proxy server)<br>connect: Network is unreachable</span><br><span style="color:rgb(39,78,19)"><br></span></div><span style="color:rgb(39,78,19)"><b>On Container</b>:</span><br><br><span style="color:rgb(0,0,255)">root@infra1-repo-container-</span><wbr><span style="color:rgb(0,0,255)">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/*.</span><wbr><span style="color:rgb(0,0,255)">cfg<br><br>root@infra1-repo-container-</span><wbr><span style="color:rgb(0,0,255)">a7a137c4:/# cat /etc/network/interfaces.d/</span><wbr><span style="color:rgb(0,0,255)">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_</span><wbr><span style="color:rgb(0,0,255)">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-</span><wbr><span style="color:rgb(0,0,255)">a7a137c4:/# route -n<br>Kernel IP routing table<br>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface<br><span style="color:rgb(39,78,19)"><br clear="all"></span></span><div><span style="color:rgb(39,78,19)"><b>On host:</b></span></div><div><span style="color:rgb(0,0,255)"><br></span></div><div><span style="color:rgb(0,0,255)">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></span></div><span style="color:rgb(0,0,255)">root@ubuntu:/home/ansible# ip r<br>default via 192.168.124.1 dev eno1<br><a href="http://10.0.3.0/24" target="_blank">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" target="_blank">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" target="_blank">192.168.124.0/24</a> dev br-mgmt  proto kernel  scope link  src 192.168.124.28<br clear="all"></span><br><br></div>Thanks in advance...<br><br><div>-- <br><div class="gmail_signature"><div dir="ltr">Thanks !!!<div>Goutham Pratapa</div></div></div>
</div></div>