Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Failed to Associate Floating IP

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()
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/oslo_db/api.py", line 139, in wrapper
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/neutron/db/api.py", line 131, in wrapped
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     traceback.format_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()
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 126, in wrapped
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     return f(*dup_args, **dup_kwargs)
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 658, in _update
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     obj = obj_updater(request.context, id, **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 166, in wrapped
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     return method(*args, **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()
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/oslo_db/api.py", line 139, in wrapper
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/neutron/db/api.py", line 131, in wrapped
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     traceback.format_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()
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 126, in wrapped
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     return f(*dup_args, **dup_kwargs)
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/l3_dvr_db.py", line 940, in update_floatingip
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     context, id, floatingip)
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/l3_db.py", line 1334, in _update_floatingip
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     context, floatingip_dict)
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/dns_db.py", line 141, in _process_dns_floatingip_update_precommit
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     context, floatingip_data))
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/dns_db.py", line 243, in _get_requested_state_for_external_dns_service_update
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     return self._get_internal_port_dns_data(context, floatingip_data)
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/dns_db.py", line 210, in _get_internal_port_dns_data
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     context=context, port_id=floatingip_data['port_id'])
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/objects/network.py", line 255, in get_net_dns_from_port
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     return super(NetworkDNSDomain, cls)._load_object(context, net_dns)
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/objects/base.py", line 377, in _load_object
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     obj.from_db_object(db_obj)
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/objects/base.py", line 317, in from_db_object
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     fields = self.modify_fields_from_db(db_obj)
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/objects/base.py", line 367, in modify_fields_from_db
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     result = {field: db_obj[field] for field in potential_fields
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/objects/base.py", line 368, in <dictcomp>
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource     if db_obj.get(field) is not None}
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource AttributeError: 'NoneType' object has no attribute 'get'
2017-12-12-12 14:04:10.395 32035 ERROR neutron.api.v2.resource

Thank you.

Daniel