Openstackclient does not support the --force parameter for quota setting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
In Progress
|
Undecided
|
Theodoros Tsioutsias |
Bug Description
Description
===========
The --force parameter is missing from the "openstack quota set" command.
As a result of this, there is no way to set the --compute quotas to values less that the used/reserved using the openstackclient.
On the other hand, the command "nova quota-update" supports the use of a force option (--force).
This allows the admins to set the quota to values lower than the used/reserved.
--force Whether force update the quota even if the
Steps to reproduce
==================
It seems that setting volume and networking quota to values lower than the used is allowed.
E.g.
Even after creating two volumes, the --volumes quota can be set to 1 without problems:
stack@devstack-
+------
| ID | Name | Status | Size | Attached to |
+------
| 252a0d84-
| a84cd191-
+------
stack@devstack-
The same applies for floating ips:
stack@devstack-
+------
| ID | Floating IP Address | Project |
+------
| 798dad32-
| eee43cbf-
+------
stack@devstack-
But when setting the --instances quota:
stack@devstack-
+------
| ID | Name | Status |
+------
| 8573f7a7-
| cf96fdde-
+------
stack@devstack-
Quota limit 1 for instances must be greater than or equal to already used and reserved 2. (HTTP 400) (Request-ID: req-e8ba1e66-
Expected result
===============
The option to force the update should be available since the nova quota-set supports it.
Actual result
=============
There is no way to set the quota to the desired value using the openstackclient.
Comments
========
It would be great to have the force option, as it allows the operators to stop the creation of new VMs in user projects.
Changed in python-openstackclient: | |
assignee: | nobody → Theodoros Tsioutsias (ttsiouts) |
Fix proposed to branch: master /review. openstack. org/551811
Review: https:/