Failed to Associate Floating IP

asked 2017-12-12 00:38:12 -0500

DanielXu gravatar image

Hi All, I have a problem. Wher I try to associate floating IP to a instances port it will get failed. Before I can associate floating IP to instances, actully I can associate on an exsited port. But if I lanch new instance (either by auto create port or manually create ports), it will failed.

port_security are enabled. Network is neutron vxlan. router is with external network and internal interface. On instance, I can ping external network gateway and go to internet.

Below is error message

# openstack server add floating ip 13d5b642-9ea6-4f2a-97fb-706dd933d9f2 10.10.23.140
Unable to associate floating IP 10.10.23.140 to fixed IP 192.168.1.9 for instance 13d5b642-9ea6-4f2a-97fb-706dd933d9f2. Error: Request Failed: internal server error while processing your request.
Neutron server returns request_ids: ['req-1858dc06-e457-4f1d-855c-0cbb71679976'] (HTTP 400) (Request-ID: req-c0b0caf2-8fcc-4ae8-88f4-d7d0edd38d7d)

in neutron server log I get error message as following

2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource [req-1858dc06-e457-4f1d-855c-0cbb71679976 b8b7bf57274b453f8556d6ad989216b7 dbdf0d9d835c49728000c7764a35242e - - -] update failed: No details.
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource Traceback (most recent call last):
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 79, in resource
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     result = method(request=request, **args)
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 610, in update
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     return self._update(request, id, body, **kwargs)
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 95, in wrapped
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     setattr(e, '_RETRY_EXCEEDED', True)
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     self.force_reraise()
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 91, in wrapped
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 151, in wrapper
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     self.force_reraise ...
(more)
edit retag flag offensive close merge delete

Comments

Floating IPs are mostly handled by router code. Anything in the L3 agent logs? If you deploy a distributed router, also look at the log on the relevant compute node.

Bernd Bausch gravatar imageBernd Bausch ( 2017-12-12 02:07:55 -0500 )edit

I had similar issue few months back, can you check physical interface connectivity on the compute and controller nodes are intact, ethtool <interface> is the command, In my case we lost the network link from switch port.

TijoV gravatar imageTijoV ( 2017-12-13 07:37:56 -0500 )edit

Hi Bernd, I finally find which config result the problem. I have install designate service, but I am not sure it is corrected configured. In /etc/neutron/plugins/ml2/ml2_conf.ini I delete dns from extension drivers from extension_drivers = port_security,dns It works.

DanielXu gravatar imageDanielXu ( 2017-12-17 12:39:00 -0500 )edit

thank you TijoV´╝î I found it was caused by my configuration for designate service. Now I deleted it in /etc/neutron/plugins/ml2/ml2_conf.ini. And later I will learn how to use designate service.

DanielXu gravatar imageDanielXu ( 2017-12-17 12:42:34 -0500 )edit

Thank you Daniel :-)

TijoV gravatar imageTijoV ( 2017-12-20 23:01:50 -0500 )edit