[RFE] Bulk Floating IP allocation

Bug #1552631 reported by Alex Stafeyev
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
Won't Fix
Wishlist
Unassigned
python-openstackclient
Won't Fix
Wishlist
Unassigned

Bug Description

I needed to allocate 2 floating IPs to my project.
Via GUI:
access and security -> Floating IPs -> Allocate IP to project.

I noticed that in order to allocate 2 FIPs, I need to execute "Allocate IP to project" twice.

The costumers have no option to allocate a range of FIPs with one action. They need to do it one by one.

BR
Alex

Tags: network
Revision history for this message
Alex Stafeyev (astafeye) wrote :
Revision history for this message
Andreas Scheuring (andreas-scheuring) wrote :

Hi Alex, thanks for reporting this new feature request. I wonder, is this an action you would like to do via the GUI only, or also via the Rest API?

summary: - Multiple Floating IP allocation
+ [RFE] Bulk Floating IP allocation
tags: added: rfe
Revision history for this message
Alex Stafeyev (astafeye) wrote :

Hi Andreas, I believe both option should be available

tnx

Changed in neutron:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

It is true that we have bulk support for certain operation like networks and ports. I am personally opposed to extending support to floating IPs (i.e. I take the same stance that Nova guys take against orchestration). Let's see if I am a minority.

Let's discuss it during next meeting to see if can get an agreement on this one.

Changed in neutron:
status: Confirmed → Triaged
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

Marking Confirmed for now, but any change in Horizon is blocked on the API supporting it.

Changed in horizon:
importance: Undecided → Wishlist
milestone: none → ongoing
status: New → Confirmed
Changed in horizon:
milestone: ongoing → next
tags: added: neutron
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

We could provide a client api that accepts multiple floating ips and iteratively tries and clean up the log. Would that satisfy the Horizon requirement? I am against adding API support for this.

Changed in neutron:
status: Triaged → Won't Fix
Changed in python-neutronclient:
importance: Undecided → Wishlist
status: New → Won't Fix
status: Won't Fix → Confirmed
Changed in neutron:
status: Won't Fix → Confirmed
status: Confirmed → Triaged
Revision history for this message
Carl Baldwin (carl-baldwin) wrote :

The only reason I could see supporting a change in the API for this is if we could try allocating a contiguous range of IP addresses in one shot (and fail if that can't be achieved. While I don't fully understand the need for this, we've have customers asking to be able to allocate contiguous blocks of floating IPs.

If it is just to avoid having to send multiple API requests then I agree with Armando about being against it.

Revision history for this message
Doug Wiegley (dougwig) wrote :

Why doesn't Horizon just call the API multiple times? Why even put in a client change?

Revision history for this message
Brian Haley (brian-haley) wrote :

Carl - if I'm remembering correctly our customers wanted a contiguous space to make SG rules simpler, for example they want a /28 of FIPs than can be specified as a range instead of individually. Something like that.

Revision history for this message
Brian Haley (brian-haley) wrote :

And just adding to my last comment, some of this was because the remote end - say a customer VPN appliance - had to be programmed. Out of convenience a range is easy, individual IPs are harder.

This could just be an outlier case though.

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

@Doug: to allow more than one client application to benefit from the change.

@Brian: either you program ranges or single IPs, this can't be done manually, so where is the complexity coming from?

Need for contiguous FIPs determines whether this must be done server side or client side, allowing users to reserve wide blocks of FIPs can become an issue with multiple competing requests at scale.

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :
Revision history for this message
Akihiro Motoki (amotoki) wrote :

In my understanding, the original request from Horizon is just to request a way to allocate multiple floating IPs. For this, client library support sounds good.

For contiguous range of FIPs, I understand the need to some extent, but users need a fallback logic when allocation of a range of FIPs, so I am not sure how much this feature helps users.
In addition, our current API provides no way to discover whether neutron supports a range allocation FIPs (without trying to send a request).

Revision history for this message
Reedip (reedip-banerjee-deactivatedaccount) wrote :

In keeping with the current transition of NeutronClient to OSC, I think any change in neutronClient for this support would need a corresponding change in OSC.

Changed in python-openstackclient:
assignee: nobody → Reedip (reedip-banerjee)
Revision history for this message
Akihiro Motoki (amotoki) wrote :

neutronclient has two layers: client library and CLI.
We are discussing enhancement in the client library and potentially CLI layer can be enhanced.

Regarding OSC support, neutronclient is not directly related. openstack client consumes openstacksdk for core resources like floating IP. Especially floating IP is related to both neutron and nova (nova-network), so I would suggest to work openstackclient stuff in a separate bug.

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

ok, let's go with client-side support.

Changed in neutron:
status: Triaged → Won't Fix
Changed in python-openstackclient:
status: New → Confirmed
tags: added: rfe-approved
removed: rfe
tags: removed: rfe-approved
tags: removed: neutron
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

This is relatively trivial and can be dealt with as a client side bug fix.

no longer affects: neutron
Revision history for this message
Steve Martinelli (stevemar) wrote :

Automatically unassigning due to inactivity.

Changed in python-openstackclient:
assignee: Reedip (reedip-banerjee) → nobody
Changed in python-openstackclient:
importance: Undecided → Wishlist
Changed in python-openstackclient:
assignee: nobody → Reedip (reedip-banerjee)
Changed in python-neutronclient:
assignee: nobody → Reedip (reedip-banerjee)
Richard Theis (rtheis)
tags: added: network
Changed in python-neutronclient:
assignee: Reedip (reedip-banerjee) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

Changed in python-openstackclient:
status: Confirmed → In Progress
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

Removing Horizon here; this is just dead weight until clients support it. We can revisit the idea in the future if a service decides to implement it.

no longer affects: horizon
Revision history for this message
Akihiro Motoki (amotoki) wrote :

neutron cli is deprecated. we no longer add new features.

Changed in python-neutronclient:
status: Confirmed → Won't Fix
Changed in python-openstackclient:
assignee: Reedip (reedip-banerjee) → nobody
Artem Goncharov (gtema)
Changed in python-openstackclient:
status: In Progress → Won't Fix
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.