AWS: Assigning Floating IP to an instance fails

Bug #1713820 reported by Pushkar Acharya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Openstack Omni
Fix Released
Critical
Pushkar Acharya

Bug Description

We are getting the following error when we assign a floating IP to an instance.
Error:
Request Failed: internal server error while processing your request.

neutron-logs:
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource Traceback (most recent call last):
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 79, in resource
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource result = method(request=request, **args)
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 631, in update
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource return self._update(request, id, body, **kwargs)
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/neutron/db/api.py", line 88, in wrapped
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True)
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource self.force_reraise()
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/neutron/db/api.py", line 84, in wrapped
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 151, in wrapper
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource self.force_reraise()
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 139, in wrapper
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/neutron/db/api.py", line 124, in wrapped
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource traceback.format_exc())
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource self.force_reraise()
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/neutron/db/api.py", line 119, in wrapped
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource return f(*dup_args, **dup_kwargs)
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 679, in _update
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource obj = obj_updater(request.context, id, **kwargs)
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/neutron/services/l3_router/aws_router_plugin.py", line 160, in update_floatingip
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource context, floating_ip_dict['floating_ip_address'], port_id)
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/neutron/services/l3_router/aws_router_plugin.py", line 132, in _associate_floatingip_to_port
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource server_list = self.aws_utils.get_nova_client().servers.list(
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/neutron/common/aws_utils.py", line 94, in get_nova_client
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource username=cfg.CONF.nova_admin_username,
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource File "/opt/pf9/neutron/lib/python2.7/site-packages/oslo_config/cfg.py", line 2267, in __getattr__
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource raise NoSuchOptError(name)
2017-08-29 05:30:17.058 11020 ERROR neutron.api.v2.resource NoSuchOptError: no such option nova_admin_username in group [DEFAULT]

Changed in omni:
importance: Undecided → Critical
assignee: nobody → Pushkar Acharya (pacharya)
Changed in omni:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to omni (master)

Fix proposed to branch: master
Review: https://review.openstack.org/498999

Changed in omni:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to omni (master)

Reviewed: https://review.openstack.org/498999
Committed: https://git.openstack.org/cgit/openstack/omni/commit/?id=df2a8218f7af64c9cd76097bac9fb03a65e86d5d
Submitter: Jenkins
Branch: master

commit df2a8218f7af64c9cd76097bac9fb03a65e86d5d
Author: Pushkar Acharya <email address hidden>
Date: Tue Aug 29 18:28:43 2017 -0700

    Fix floating IP associate in AWS

    The router plugin failed to create a valid nova
    client and failed the floating IP associate API.

    Change-Id: I8333deb06fc8d0358c0ddc41e768f390ea6be656
    Closes-Bug: #1713820

Changed in omni:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.