How does the floatingip association happen for the instances on the compute host? [closed]

asked 2015-05-22 07:45:09 -0500

Rakesh Sharma M gravatar image

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 ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by jdexter
close date 2015-05-26 19:47:22.165257