Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How floatingip association works on a multinode setup?

On a multi-node setup, I would like to know how the floatingip association happen.

I have a controller/network node and a compute node. Instances are getting created on the compute node. Now when i am trying to associate a instance with a floating ip, i am getting error "update failed (client error): Agent with agent_type=L3 agent and host=sdn could not be found" in q-svc logs on controller.

In this case compute node host name is "sdn" and my controller/network node host name is "nfv". L3 agent is running on controller node(nfv).

In a single node setup since all the services run on the same node, floating ip association happens without any issues. In a multi-node setup since l3 agent runs on network node, i would like to know how the floating ip association happens????

Please find the error log in Horizon:

[Thu May 21 10:10:23.343278 2015] [:error] [pid 27043:tid 140336978687744] Body={"floatingip": {"fixed_ip_address": "10.0.0.2", "port_id": "2645541f-6436-4112-8a7b-05b07e748c1c"}} [Thu May 21 10:10:23.343283 2015] [:error] [pid 27043:tid 140336978687744] Content_type=<bound method="" client.content_type="" of="" <neutronclient.v2_0.client.client="" object="" at="" 0x7fa2a9daae10="">> [Thu May 21 10:10:23.343290 2015] [:error] [pid 27043:tid 140336978687744] [Thu May 21 10:10:23.344414 2015] [:error] [pid 27043:tid 140336978687744] DEBUG:urllib3.util.retry:Converted retries value: 0 -> Retry(total=0, connect=None, read=None, redirect=0) [Thu May 21 10:10:23.344551 2015] [:error] [pid 27043:tid 140336978687744] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 172.16.7.226 [Thu May 21 10:10:23.380500 2015] [:error] [pid 27043:tid 140336978687744] DEBUG:urllib3.connectionpool:"PUT //v2.0/floatingips/e4b4e808-fb97-4311-97df-e412cd1fd592.json HTTP/1.1" 404 144 [Thu May 21 10:10:23.381078 2015] [:error] [pid 27043:tid 140336978687744] Status Code:404 [Thu May 21 10:10:23.382435 2015] [:error] [pid 27043:tid 140336978687744] Not Found: Agent with agent_type=L3 agent and host=sdn could not be found

Stack trace:

[Thu May 21 10:10:23.382450 2015] [:error] [pid 27043:tid 140336978687744] Traceback (most recent call last): [Thu May 21 10:10:23.382456 2015] [:error] [pid 27043:tid 140336978687744] File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/access_and_security/floating_ips/workflows.py", line 154, in handle [Thu May 21 10:10:23.382461 2015] [:error] [pid 27043:tid 140336978687744] data['instance_id']) [Thu May 21 10:10:23.382466 2015] [:error] [pid 27043:tid 140336978687744] File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/network.py", line 65, in floating_ip_associate [Thu May 21 10:10:23.382470 2015] [:error] [pid 27043:tid 140336978687744] port_id) [Thu May 21 10:10:23.382475 2015] [:error] [pid 27043:tid 140336978687744] File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/neutron.py", line 409, in associate [Thu May 21 10:10:23.382480 2015] [:error] [pid 27043:tid 140336978687744] {'floatingip': update_dict}) [Thu May 21 10:10:23.382484 2015] [:error] [pid 27043:tid 140336978687744] File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params [Thu May 21 10:10:23.382489 2015] [:error] [pid 27043:tid 140336978687744] ret = self.function(instance, args, *kwargs) [Thu May 21 10:10:23.382494 2015] [:error] [pid 27043:tid 140336978687744] File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 646, in update_floatingip [Thu May 21 10:10:23.382498 2015] [:error] [pid 27043:tid 140336978687744] return self.put(self.floatingip_path % (floatingip), body=body) [Thu May 21 10:10:23.382503 2015] [:error] [pid 27043:tid 140336978687744] File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 302, in put [Thu May 21 10:10:23.382532 2015] [:error] [pid 27043:tid 140336978687744] headers=headers, params=params) [Thu May 21 10:10:23.382538 2015] [:error] [pid 27043:tid 140336978687744] File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 270, in retry_request [Thu May 21 10:10:23.382543 2015] [:error] [pid 27043:tid 140336978687744] headers=headers, params=params) [Thu May 21 10:10:23.382547 2015] [:error] [pid 27043:tid 140336978687744] File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 211, in do_request [Thu May 21 10:10:23.382552 2015] [:error] [pid 27043:tid 140336978687744] self._handle_fault_response(status_code, replybody) [Thu May 21 10:10:23.382556 2015] [:error] [pid 27043:tid 140336978687744] File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 182, in _handle_fault_response [Thu May 21 10:10:23.382561 2015] [:error] [pid 27043:tid 140336978687744] exception_handler_v20(status_code, des_error_body) [Thu May 21 10:10:23.382565 2015] [:error] [pid 27043:tid 140336978687744] File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 67, in exception_handler_v20 [Thu May 21 10:10:23.382570 2015] [:error] [pid 27043:tid 140336978687744] status_code=status_code) [Thu May 21 10:10:23.382574 2015] [:error] [pid 27043:tid 140336978687744] NotFound: Agent with agent_type=L3 agent and host=sdn could not be found

Note: In this case 172.16.7.226 is the controller/network node ip.