Patch https://review.openstack.org/70286 has been merged, and I have pulled it into a Juno installation. But it does not work. I get the following in Neutron's server.log:
2015-01-21 10:04:39.265 16040 ERROR neutron.api.v2.resource [req-4b09ceb9-86f1-42d4-b1f9-117ae6ed9026 None] create failed
2015-01-21 10:04:39.265 16040 TRACE neutron.api.v2.resource Traceback (most recent call last):
2015-01-21 10:04:39.265 16040 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/api/v2/resource.py", line 87, in resource
2015-01-21 10:04:39.265 16040 TRACE neutron.api.v2.resource result = method(request=request, **args)
2015-01-21 10:04:39.265 16040 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/api/v2/base.py", line 379, in create
2015-01-21 10:04:39.265 16040 TRACE neutron.api.v2.resource allow_bulk=self._allow_bulk)
2015-01-21 10:04:39.265 16040 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/api/v2/base.py", line 618, in prepare_request_body
2015-01-21 10:04:39.265 16040 TRACE neutron.api.v2.resource raise webob.exc.HTTPBadRequest(msg)
2015-01-21 10:04:39.265 16040 TRACE neutron.api.v2.resource HTTPBadRequest: Attribute 'floating_ip_address' not allowed in POST
The request was from user=admin tenant=admin.
Also, I am surprised at the following part of the patch:
Patch https:/ /review. openstack. org/70286 has been merged, and I have pulled it into a Juno installation. But it does not work. I get the following in Neutron's server.log:
2015-01-21 10:04:39.265 16040 ERROR neutron. api.v2. resource [req-4b09ceb9- 86f1-42d4- b1f9-117ae6ed90 26 None] create failed api.v2. resource Traceback (most recent call last): api.v2. resource File "/usr/lib/ python2. 6/site- packages/ neutron/ api/v2/ resource. py", line 87, in resource api.v2. resource result = method( request= request, **args) api.v2. resource File "/usr/lib/ python2. 6/site- packages/ neutron/ api/v2/ base.py" , line 379, in create api.v2. resource allow_bulk= self._allow_ bulk) api.v2. resource File "/usr/lib/ python2. 6/site- packages/ neutron/ api/v2/ base.py" , line 618, in prepare_ request_ body api.v2. resource raise webob.exc. HTTPBadRequest( msg) api.v2. resource HTTPBadRequest: Attribute 'floating_ ip_address' not allowed in POST
2015-01-21 10:04:39.265 16040 TRACE neutron.
2015-01-21 10:04:39.265 16040 TRACE neutron.
2015-01-21 10:04:39.265 16040 TRACE neutron.
2015-01-21 10:04:39.265 16040 TRACE neutron.
2015-01-21 10:04:39.265 16040 TRACE neutron.
2015-01-21 10:04:39.265 16040 TRACE neutron.
2015-01-21 10:04:39.265 16040 TRACE neutron.
2015-01-21 10:04:39.265 16040 TRACE neutron.
The request was from user=admin tenant=admin.
Also, I am surprised at the following part of the patch:
786 + if fip.get( 'floating_ ip_address' ): ip_address' ]}]
787 + port['fixed_ips'] = [
788 + {'ip_address': fip['floating_
Is there a confusion there between floating and fixed?
Are there any tempest tests of this functionality?