Ask Your Question
0

Cannot connect instance to existing network

asked 2019-04-09 03:54:30 -0500

pedroacosta gravatar image

updated 2019-04-09 10:31:10 -0500

After following the guide in DevStack Neutron guide on the OpenStack wiki, I'm unable to deploy OpenStack instances in my private network, by means of floating IPs.

With this configuration, my Internet connection is down, and I can only ping my host, and other instances deployed in OpenStack. Incidentally, any server that is running outside OpenStack and in that address range is also unreachable.

Below follows the configuration I used:

[[local|localrc]]
HOST_IP=10.123.230.21
SERVICE_HOST=10.123.230.21
MYSQL_HOST=10.123.230.21
RABBIT_HOST=10.123.230.21
GLANCE_HOSTPORT=10.123.230.21:9292
ADMIN_PASSWORD=admin
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

## Neutron options
Q_USE_SECGROUP=True
FLOATING_RANGE="10.123.230.16/28"
IPV4_ADDRS_SAFE_TO_USE="172.24.0.0/24"
Q_FLOATING_ALLOCATION_POOL=start=10.123.230.22,end=10.123.230.28
PUBLIC_NETWORK_GATEWAY="10.123.230.17"
PUBLIC_INTERFACE=eth1

# Open vSwitch provider networking configuration
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex

My server is running on top of a hypervisor, on CentOS 7. It has two Ethernet ports (eth0 and eth1), both with an IP address associated to them.

When I try to ping anything on the Internet the instance returns 'Destination Host Unreachable'.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-04-24 14:55:54 -0500

Cosme gravatar image

Hi.
Try enabling port forward and masquerade. In my Devstack installation with Ubuntu works:

echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/bond0/proxy_arp_pvlan
iptables -t nat -A POSTROUTING -o bond0 -j MASQUERADE

Replace bond0 with the corresponding network interface.
Greetings.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-04-09 03:54:30 -0500

Seen: 53 times

Last updated: Apr 09