Unable to set quotas with openstack cli

Bug #1733698 reported by Josue Palmerin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Won't Fix
High
Max Yatsenko

Bug Description

Detailed bug description:

Changing project quotas with `openstack quota set <Options> <value> <project>` is not working.

Steps to reproduce:

1. Deploy MOS 9.2
2. SSH to controller
3. Source credentials:
   . openrc
4. Set project quotas to admin project:
   openstack quota set --floating-ips 20 admin
5. Get quota data:
   openstack quota show admin | grep floating-ips

Expected results:

In step 5 quota should be 20

Actual result:

Quota doesn't change.

root@node-2:~# openstack quota show admin | grep floating-ips
| floating-ips | 50 |

Reproducibility:

100%

Impact:

Nova and Neutron do not help

Workaround:

1. Horizon functionality is working
   Go to: https://<HORIZON_URL>/horizon/identity/
   Edit quotas for project
   Save

2. Modify the default quotas in all controllers
   For nova /etc/nova/nova.conf
   Restart nova-api
   For neutron /etc/neutron/neutron.conf
   Restart neutron-server

Found an upstream bug related to this:
https://bugs.launchpad.net/python-neutronclient/+bug/1655445

Changed in mos:
assignee: nobody → MOS Maintenance (mos-maintenance)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Alexey Stupnikov (astupnikov) wrote :

There was another openstackclient bug #1698805

Max Yatsenko (myatsenko)
Changed in mos:
assignee: MOS Maintenance (mos-maintenance) → Max Yatsenko (myatsenko)
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/python-openstackclient (9.0/mitaka)

Change abandoned by Max Yatsenko <email address hidden> on branch: 9.0/mitaka
Review: https://review.fuel-infra.org/37435

Revision history for this message
Max Yatsenko (myatsenko) wrote :

Please be notified that functionality you need was added/fixed in
2.5.0 version of openstackclient:
https://review.openstack.org/#/c/292683/8/openstackclient/common/quota.py

To get needed functionality openstackclient version of 2.5.0 or higher can be installed.
As openstackclient contains the solution of the problem described in this bug - I set
status of this bug to "Won't Fix".

Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

A small addition: normally openstackclient should be used on workstations, preferably in python virtualenvs. The usage of openstackclient directly on controller nodes should be avoided as a bad practice. From this point of view it doesn't make much sense to back port changes into openstackclient since in most use cases it is installed from pip outside OpenStack controllers.

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