[RFE] Unify quota engine API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
In Progress
|
Wishlist
|
Rodolfo Alonso |
Bug Description
DESCRIPTION
-----------
In sake of simplicity, Neutron should adopt the same quota API behaviour as Nova and Cinder. Current behaviour when a new quota limit is set:
1) Neutron:
$ openstack quota set --network 100 <project>
# Quota is set WITHOUT checking the current network usage.
$ openstack quota set --network 100 --check-limit <project>
# Quota is set AFTER checking the current network usage.
2) Nova: (just the opposite)
$ openstack quota set --ram 100 <project>
# Quota is set AFTER checking the current network usage.
$ openstack quota set --ram 100 --force <project>
# Quota is set WITHOUT checking the current network usage.
That means Neutron forces by default the quota update while in Nova you need to specify the "--force" parameter.
The goal of this RFE is to plan a smooth migration to the Nova quota API behaviour: by default, always check the resource limit; if "--force" is provided, no check will be done.
STEPS
-----
1) Implement in OSC both "--force" and "--check-limit" parameters for "quota set" command. The "--force" parameter is already present. "--check-limit" will be merged in [1]. The functionality in Neutron quota system to check the resource usage is merged in Neutron [2]. This step can be considered as DONE.
2) Modify the quota engine to accept "--force" parameter. We'll discard it because this is the default behaviour.
3) Write a warning message in the logs. If no parameter is passed (force, check-limit), that means the user is using the "old" API. In this case, we'll inform in this message about the future change we'll make in the API (with references to this LP bug).
4) In 2 or 3 releases, change the behaviour in the Neutron quota engine: by default, we'll always check the resource limits. Remove the warning message.
5) Remove from OSC the parameter "--check-limit" (unnecessary now).
6) Remove from Neutron quota engine the "--check-limit" input parameter.
[1]https:/
[2]https:/
Changed in neutron: | |
importance: | Undecided → Wishlist |
assignee: | nobody → Rodolfo Alonso (rodolfo-alonso-hernandez) |
tags: | added: rfe |
tags: | added: rfe-approved |
Fix proposed to branch: master /review. opendev. org/c/openstack /neutron/ +/821190
Review: https:/