Bug 1392384 - HTTPBadRequest: Attribute 'floating_ip_address' not allowed in POST
Summary: HTTPBadRequest: Attribute 'floating_ip_address' not allowed in POST
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 6.0 (Juno)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 7.0 (Kilo)
Assignee: Assaf Muller
QA Contact: Toni Freger
URL: https://blueprints.launchpad.net/neut...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-07 11:35 UTC by Eduard Barrera
Modified: 2020-02-14 18:06 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-16 18:53:38 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Eduard Barrera 2016-11-07 11:35:30 UTC
Description of problem:

We got the following error while creating a floating IP address and asking it to allocate an specific IP addr.


# grep req-233a052a-4f28-4707-af6f-df15f5d889a2 /var/log/neutron/server.log -A 20
2016-10-31 12:00:23.716 9077 ERROR neutron.api.v2.resource [req-233a052a-4f28-4707-af6f-df15f5d889a2 None] create failed
2016-10-31 12:00:23.716 9077 TRACE neutron.api.v2.resource Traceback (most recent call last):
2016-10-31 12:00:23.716 9077 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 87, in resource
2016-10-31 12:00:23.716 9077 TRACE neutron.api.v2.resource     result = method(request=request, **args)
2016-10-31 12:00:23.716 9077 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 379, in create
2016-10-31 12:00:23.716 9077 TRACE neutron.api.v2.resource     allow_bulk=self._allow_bulk)
2016-10-31 12:00:23.716 9077 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 618, in prepare_request_body
2016-10-31 12:00:23.716 9077 TRACE neutron.api.v2.resource     raise webob.exc.HTTPBadRequest(msg)
2016-10-31 12:00:23.716 9077 TRACE neutron.api.v2.resource HTTPBadRequest: Attribute 'floating_ip_address' not allowed in POST
2016-10-31 12:00:23.716 9077 TRACE neutron.api.v2.resource
2016-10-31 12:00:23.718 9077 INFO neutron.wsgi [req-233a052a-4f28-4707-af6f-df15f5d889a2 None] 172.16.31.101 - - [31/Oct/2016 12:00:23] "POST /v2.0/floatingips.json HTTP               /1.1" 400 347 0

In this case we needed to create a port with an specific IP address but we couldn't so we had to allocate all the floating IP use the one we wanted and then deallocate the remaining

So this error is normal in Juno ? Or perhaps is not implemented ? Shall we do something special in the config to allow it ?


Version-Release number of selected component (if applicable):
Openstack 6

How reproducible:
Always

Steps to Reproduce:
1. #neutron floatingip-create Internet --floating-ip-address 4X.X.X.X
2.
3.

Actual results:
The error above

Expected results:
Floating IP address created with the specified IP address

Additional info:


Note You need to log in before you can comment on or make changes to this bug.