Ask Your Question
0

devstack stable liberty - Failure to retrieve ROUTER_GATEWAY_IP

asked 2015-12-13 21:03:12 -0600

fsbiz gravatar image

Can anyone help me here? Thanks,

2 node setup using devstack and VXLAN overlays.

Setup:

controller node: 2 interfaces auto p5p1 iface p5p1 inet static address 192.168.2.160 netmask 255.255.255.0 auto p5p2 iface p5p2 inet manual up ip link set dev $IFACE up down ip link set dev $IFACE down

Internet | Physical Router (10.145.72.1) | | | |(p5p2) Controller Node (Controller/Compute/Network)(p5p1:192.168.2.160)

My local.conf

HOST_IP=192.168.2.160
SERVICE_IP=192.168.2.160
MULTI_HOST=TRUE

# Fixed and floating subnets
#FIXED_RANGE=172.16.0.0/24
#NETWORK_GATEWAY=172.16.0.1


PUBLIC_INTERFACE=p5p2
FLOATING_RANGE=10.145.72.0/22
PUBLIC_NETWORK_GATEWAY=10.145.72.1
Q_FLOATING_ALLOCATION_POOL=start=10.145.75.200,end=10.145.75.254

# Disable Nova Networking
disable_service n-net

# Neutron - Networking Service
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron


# Neutron - OVS, VxLAN, and ML2
Q_PLUGIN=ml2
Q_AGENT=openvswitch
Q_USE_DEBUG_COMMAND=True
Q_L3_ENABLED=True
Q_L3_ROUTER_PER_TENANT=True
ENABLE_TENANT_TUNNELS=True
Q_ML2_PLUGIN_VXLAN_TYPE_OPTIONS=(vni_ranges=400:500)
Q_ML2_TENANT_NETWORK_TYPE=vxlan
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_ENABLE_TUNNELING=True
PUBLIC_BRIDGE=br-ex
OVS_PHYSICAL_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex



devstack proceeds very well.  It creates the netns fine.
 stack@controller-160:~/devstack$ sudo ip netns
 qrouter-4735ea28-3e21-42c1-a717-bb88fa14b15d
 qdhcp-77e9d74b-0af0-4482-8922-310e0312c099

 stack@controller-160:~/devstack$ sudo ip netns exec qrouter-4735ea28-3e21-42c1-a717-bb88fa14b15d ping 10.145.72.1
    PING 10.145.72.1 (10.145.72.1) 56(84) bytes of data.
    64 bytes from 10.145.72.1: icmp_seq=1 ttl=255 time=2.25 ms


However, it then fails at this point.

+ sudo ip route replace 10.0.0.0/24 via 10.145.75.200

This is plain silly. Why is it trying to insert this route??


 ++ sudo ovs-vsctl set Bridge br-ex other_config:disable-in-band=true
2015-12-13 23:35:39.999 | ++ echo br-ex
2015-12-13 23:35:40.000 | + ext_gw_interface=br-ex
2015-12-13 23:35:40.000 | + [[ br-ex != \n\o\n\e ]]
2015-12-13 23:35:40.000 | + local cidr_len=16
2015-12-13 23:35:40.000 | + local 'testcmd=ip -o link | grep -q br-ex'
2015-12-13 23:35:40.000 | + test_with_retry 'ip -o link | grep -q br-ex' 'br-ex creation failed'
2015-12-13 23:35:40.000 | + local 'testcmd=ip -o link | grep -q br-ex'
2015-12-13 23:35:40.000 | + local 'failmsg=br-ex creation failed'
2015-12-13 23:35:40.000 | + local until=10
2015-12-13 23:35:40.000 | + local sleep=0.5
2015-12-13 23:35:40.000 | + timeout 10 sh -c 'while ! ip -o link | grep -q br-ex; do sleep 0.5; done'
2015-12-13 23:35:40.006 | ++ ip addr show dev br-ex
2015-12-13 23:35:40.006 | ++ grep -c 10.145.72.1
2015-12-13 23:35:40.008 | + [[ 0 == 0 ]]
2015-12-13 23:35:40.008 | + [[ True == \F\a\l\s\e ]]
2015-12-13 23:35:40.008 | + [[ False == \T\r\u\e ]]
2015-12-13 23:35:40.010 | ++ neutron port-list -c fixed_ips -c device_owner
2015-12-13 23:35:40.010 | ++ grep router_gateway
2015-12-13 23:35:40.011 | ++ awk -F '"' -v subnet_id=9a48d547-04b4-4df3-9be5-aea0c361e306 '$4 == subnet_id { print $8; }'
2015-12-13 23:35:40.984 | + ROUTER_GW_IP=10.145.75.200
2015-12-13 23:35:40.984 | + die_if_not_set 1323 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-08-03 10:03:10 -0600

jckreddy gravatar image
This may be help 
Because of small typo i was getting this error

Q_FLOATING_ALLOCATION_POOL="start=10.130.98.190, end=10.130.98.197" 
In the above entry there was a gap betwwen start and end ips 
i corrected that 
Q_FLOATING_ALLOCATION_POOL="start=10.130.98.190,end=10.130.98.197"

Now it works fine
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: 2015-12-13 18:03:47 -0600

Seen: 190 times

Last updated: Aug 03 '16