Bug 1392384

Summary: HTTPBadRequest: Attribute 'floating_ip_address' not allowed in POST
Product: Red Hat OpenStack Reporter: Eduard Barrera <ebarrera>
Component: openstack-neutronAssignee: Assaf Muller <amuller>
Status: CLOSED CURRENTRELEASE QA Contact: Toni Freger <tfreger>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0 (Juno)CC: amuller, chrisw, nyechiel, pablo.iranzo, srevivo
Target Milestone: ---Keywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/neutron/+spec/allow-specific-floating-ip-address
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-16 18:53:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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: