Ask Your Question
0

Floating IP in localrc. My default GW is changed thus losing connectivity

asked 2013-04-23 16:32:33 -0500

KP gravatar image

I am using devstack to install openstack in a Ubuntu 12.04 physical server. It's Folsom release and my plugin is OVS.

Say, i am located on 172.28.12.0 subnet. My default GW is 172.28.12.1. I have eth0 connected for my GW access. If I comment out FLOATING_IP in localrc, it's setting my default gateway to 172.24.4.225, and my network connectivity after running ./stack.sh is lost.

My understanding is the floating IP is to to reach the VM from outside and so the IP should be a publicly reachable one. Right? If i specify a unused range in the subnet like: "FLOATING_RANGE=172.28.12.192/26"

Then my default GW is made to 172.28.12.193 and again my connectivity is lost.

So, what value should I set here?

    $ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         172.24.4.225    0.0.0.0         UG    0      0        0 qg-7c93dce4-36
0.0.0.0         172.28.12.1     0.0.0.0         UG    100    0        0 eth0
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 tapa2296d23-ad
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 qr-5f2a00e1-e2
172.24.4.224    0.0.0.0         255.255.255.240 U     0      0        0 qg-7c93dce4-36
172.28.12.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0

My localrc is:

#OFFLINE=True
#RECLONE=yes
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service quantum
#enable_service rabbit n-cpu quantum q-agt
#enable_service ryu
HOST_NAME=$(hostname)
SERVICE_HOST_NAME=${HOST_NAME}
SERVICE_HOST=172.28.12.128
#FLOATING_RANGE=172.28.12.192/26
Q_PLUGIN=openvswitch
#LIBVIRT_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver
Q_HOST=$SERVICE_HOST
Q_USE_NAMESPACE=False
ENABLE_TENANT_TUNNELS=True
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
KEYSTONE_AUTH_HOST=$SERVICE_HOST
KEYSTONE_SERVICE_HOST=$SERVICE_HOST
MYSQL_PASSWORD=admin
RABBIT_PASSWORD=admin
SERVICE_TOKEN=admin
SERVICE_PASSWORD=admin
ADMIN_PASSWORD=admin
SCHEDULER=nova.scheduler.simple.SimpleScheduler
LOG_DIRS=/logs/
SCREEN_DIR=/logs/screen
LOGFILE=/logs/stack.sh.log
# compute service
NOVA_BRANCH=stable/folsom
# volume service
CINDER_BRANCH=stable/folsom
# image catalog service
GLANCE_BRANCH=stable/folsom
# unified auth system (manages accounts/tokens)
KEYSTONE_BRANCH=stable/folsom
# quantum service
QUANTUM_BRANCH=stable/folsom
# django powered web control panel for openstack
HORIZON_BRANCH=stable/folsom
VERBOSE=True
DEBUG=True
#ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,rabbit,mysql

Thanks, KP

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-05-07 01:14:28 -0500

KP gravatar image

I came to now that this was a bug in Folsom..sigh... Went away after i moved to Grizzly.

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

Stats

Asked: 2013-04-23 16:32:33 -0500

Seen: 738 times

Last updated: May 07 '13