Issue in associating floating IP on a multi-node setup with devstack

asked 2015-03-02 06:34:19 -0600

Rakesh Sharma gravatar image

updated 2015-03-04 03:22:10 -0600

I have a multi node devstack setup. I am able to launch the VM's, but when i try to associate the floating IP to the instance it fails with following error:

Error: Agent with agent_type=L3 agent and host=sdn could not be found
Error: Unable to associate IP address 172.16.7.221.

Note: ping/scp between the VM's works.

I looked at the fix mentioned in link: https://git.openstack.org/cgit/openst... . This piece of code of already exists on my node.

Could anyone help me in this regard.

Following is the locarc file on controller/network node:

DEST=/opt/stack

disable_service n-net
enable_service neutron
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-meta
enable_service q-l3
enable_service n-novnc

SERVICE_TOKEN=openstack
ADMIN_PASSWORD=openstack
MYSQL_PASSWORD=openstack
RABBIT_PASSWORD=openstack
SERVICE_PASSWORD=$ADMIN_PASSWORD

HOST_IP=172.16.7.78
SERVICE_HOST=172.16.7.78
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
Q_HOST=$SERVICE_HOST

MULTI_HOST=True
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=2
SCREEN_LOGDIR=$DEST/logs/screen
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
SWIFT_DATA_DIR=$DEST/data
enable_service tempest

#RECLONE=yes

FLAT_INTERFACE=eth0
FIXED_RANGE=10.0.0.0/24
NETWORK_GATEWAY=10.0.0.1
FLOATING_RANGE=172.16.7.0/24
PUBLIC_NETWORK_GATEWAY=172.16.7.1
#Q_FLOATING_ALLOCATION_POOL=start=172.16.7.190,end=172.16.7.195

VNCSERVER_LISTEN=0.0.0.0
VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP

#libvirt_type=kvm
#Q_USE_SECGROUP=True
#Q_PLUGIN=ml2
#ENABLE_TENANT_TUNNELS=True
#OVS_PHYSICAL_BRIDGE=br-ex
Q_PLUGIN=ml2
Q_AGENT=openvswitch
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge,l2population
Q_ML2_TENANT_NETWORK_TYPE=gre
Q_USE_SECGROUP=True
Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_types=gre)
Q_AGENT_EXTRA_SRV_OPTS=(local_ip=$HOST_IP)

On the compute node localrc:

HOST_IP=172.16.7.181
SERVICE_HOST=172.16.7.78
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
Q_HOST=$SERVICE_HOST

FLAT_INTERFACE=eth0
FIXED_RANGE=10.0.0.0/24
NETWORK_GATEWAY=10.0.0.1
FLOATING_RANGE=172.16.7.0/24
PUBLIC_NETWORK_GATEWAY=172.16.7.1
#Q_FLOATING_ALLOCATION_POOL=start=172.16.7.81,end=172.16.7.185
MULTI_HOST=1
DATABASE_PASSWORD=openstack
RABBIT_PASSWORD=openstack
SERVICE_TOKEN=openstack
SERVICE_PASSWORD=openstack
ADMIN_PASSWORD=openstack

disable_service n-net
enable_service neutron
enable_service n-cpu
enable_service rabbit
enable_service q-agt
enable_service q-svc
enable_service n-novnc

LOG=True
DEBUG=True
LOGFILE=stack.sh.log
LOGDIR=/opt/stack/logs
LOG_DIR=/opt/stack/logs
SCREEN_LOGDIR=/opt/stack/logs/screen

VNCSERVER_LISTEN=0.0.0.0
VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP

libvirt_type=kvm
Q_PLUGIN=ml2
Q_AGENT=openvswitch
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge,l2population
Q_ML2_TENANT_NETWORk_TYPE=gre
Q_USE_SECGROUP=True
Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_types=gre)
Q_AGENT_EXTRA_SRV_OPTS=(local_ip=$HOST_IP)
#ENABLE_TENANT_TUNNELS=True

n-api logs:

2015-03-04 11:06:44.370 ^[[00;32mDEBUG neutronclient.client [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mRESP:404 CaseInsensitiveDict({'date': 'Wed, 04 Mar 2015 05:36:44 GMT', 'content-length': '144', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-e36adadd-15b8-43cf-9c21-3790f7633f74'}) {"NeutronError": {"message": "Agent with agent_type=L3 agent and host=sdn could not be found", "type": "AgentNotFoundByTypeHost", "detail": ""}}

^[[00m ^[[00;33mfrom (pid=12358) http_log_resp /usr/local/lib/python2.7/dist-packages/neutronclient/common/utils.py:139^[[00m 2015-03-04 11:06:44.370 ^[[00;32mDEBUG neutronclient.v2_0.client [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mError message: {"NeutronError": {"message": "Agent with agent_type=L3 agent and host=sdn could not be found", "type": "AgentNotFoundByTypeHost", "detail": ""}}^[[00m ^[[00;33mfrom (pid=12358) _handle_fault_response /usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client ... (more)

edit retag flag offensive close merge delete

Comments

can you please point me to the multi node devstack setup guide that you used? thanks, Alon

AlonFre gravatar imageAlonFre ( 2015-03-02 09:59:18 -0600 )edit
Rakesh Sharma gravatar imageRakesh Sharma ( 2015-03-03 05:10:46 -0600 )edit

With a single node setup i could launch vm and associate the floating ip to the instace. Where as with multi-node set up i am facing the above issue. Could anyone let me know if there is any issue with the configuration on compute node or if this is a known issue?

Rakesh Sharma gravatar imageRakesh Sharma ( 2015-03-05 02:28:56 -0600 )edit

I looked at the VM logs while launching an instance. I found : Sending discover... Sending discover... Sending discover... No lease, failing WARN: /etc/rc3.d/S40-network failed I tried "iptables -A POSTROUTING -t mangle -p udp --dport 68 -j CHECKSUM --checksum-fill"..but it did not work.

Rakesh Sharma gravatar imageRakesh Sharma ( 2015-03-11 05:37:34 -0600 )edit