← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1953170] [NEW] [RFE] Unify quota engine API

 

Public bug reported:

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://review.opendev.org/c/openstack/python-openstackclient/+/806016
[2]https://review.opendev.org/c/openstack/neutron/+/801470

** Affects: neutron
     Importance: Wishlist
     Assignee: Rodolfo Alonso (rodolfo-alonso-hernandez)
         Status: New

** Changed in: neutron
   Importance: Undecided => Wishlist

** Changed in: neutron
     Assignee: (unassigned) => Rodolfo Alonso (rodolfo-alonso-hernandez)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1953170

Title:
  [RFE] Unify quota engine API

Status in neutron:
  New

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://review.opendev.org/c/openstack/python-openstackclient/+/806016
  [2]https://review.opendev.org/c/openstack/neutron/+/801470

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1953170/+subscriptions



Follow ups