[openstack-dev] [openstack-ansible] Cannot connect to proxy server from infra1-repo-container

Goutham Pratapa pratapagoutham at gmail.com
Thu Dec 7 09:24:55 UTC 2017


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.
The strange thing is that the infra-repo-container is not showing ip on any
interface when checked with *ip r*.

Could you please help us with this issue. Below are some logs on the
container and on the host.

E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/
main/binary-amd64/Packages  Something wicked happened resolving 'xx.xx.xx.xx
:8080 <>' (-9 - Address family for hostname not

root at infra1-repo-container-a7a137c4:/# ping xx.xx.xx.xx (proxy server)
connect: Network is unreachable

*On Container*:

root at infra1-repo-container-a7a137c4:/# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# LXC interface, this is ALWAYS assumed to be DHCP.
auto eth0
iface eth0 inet dhcp
# Load any additional configs
source /etc/network/interfaces.d/*.cfg

root at infra1-repo-container-a7a137c4:/# cat /etc/network/interfaces.d/
# Ansible managed

### start generated network for [ eth1 ] ###
auto eth1
iface eth1 inet static
    mtu 1500
    post-up sysctl -w net.ipv4.conf.$IFACE.arp_notify=1
    post-up ip link set $IFACE address $(cat /sys/class/net/$IFACE/address)
### end generated network for [ eth1 ] ###
root at infra1-repo-container-a7a137c4:/# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use

*On host:*

root at ubuntu:/home/ansible# ifconfig lxcbr0
lxcbr0    Link encap:Ethernet  HWaddr fe:02:f2:ff:bd:86
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::a085:76ff:febb:401d/64 Scope:Link
          RX packets:691 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:181224 (181.2 KB)  TX bytes:828 (828.0 B)
root at ubuntu:/home/ansible# ip r
default via dev eno1 dev lxcbr0  proto kernel  scope link  src dev eno1  proto kernel  scope link  src dev br-mgmt  proto kernel  scope link  src

Thanks in advance...

Thanks !!!
Goutham Pratapa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20171207/970b8c61/attachment.html>

More information about the OpenStack-dev mailing list