specified valid floating IP address doen't work when creating a floating IP

Bug #1336120 reported by Chaoyi Huang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Medium
Vishal Agarwal

Bug Description

In the neutron API doument "http://developer.openstack.org/api-ref-networking-v2.html", floating_ip_address could be set in the POST/v2.0/​{tenant_id}​/floatingips request. the floating_ip_address is not handled in the source code except checking to see if the floating_ip_address is in the external network or not.

https://github.com/openstack/neutron/blob/master/neutron/db/l3_db.py

the valid specified floating_ip_address is not used during creating port in the external network:

external_port = self._core_plugin.create_port(context.elevated(), {
                'port':
                {'tenant_id': '', # tenant intentionally not set
                 'network_id': f_net_id,
                 'mac_address': attributes.ATTR_NOT_SPECIFIED,
                 'fixed_ips': attributes.ATTR_NOT_SPECIFIED,
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>> if the floating_ip_address is valid ip address, it should be used here to create the port in the external network
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
                 'admin_state_up': True,
                 'device_id': fip_id,
                 'device_owner': DEVICE_OWNER_FLOATINGIP,
                 'name': ''}})

Revision history for this message
yong sheng gong (gongysh) wrote :

I think to create floating IP should respect specified subnet and ip address, just like what we do when we create a port.

Changed in neutron:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Vishal Agarwal (vishala) wrote :

There is no support on CLI as well to provide the "floatingip-address", should raise a new bug for this.

Changed in neutron:
assignee: nobody → Vishal Agarwal (vishala)
Revision history for this message
Oleg Bondarev (obondarev) wrote :

This is covered by blueprint allow-specific-floating-ip-address, https://review.openstack.org/#/c/70286/ , https://review.openstack.org/100214

Changed in neutron:
status: Confirmed → Invalid
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.