Quota Update API does not Require a Quota Value to Update

Bug #1778975 reported by Dustin Schoenbrun on 2018-06-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Undecided
Unassigned
Manila
Low
Unassigned

Bug Description

With both the CLI and APIs for updating quotas of at least Cinder and Manila it is possible to create a request with a body that does not change any quota. This is partially because the options to these APIs are all optional and the API layer (nor the CLI) does not do any validation of the body of the request to ensure there is actually something to do.

Versions:
Appears to impact Master as well as at least Queens.

Steps to Reproduce:
1) Set up Cinder and/or Manila.
2) Using the "manila|cinder quota-update" command, attempt to update a quota while supplying only a project to update.
3) Observe that without specifying a quota to update the request was still successful.

Observed Results:
The empty quota update request completes without error.

Expected Results:
The empty quota request should either generate an error saying that there was nothing given to update or a warning stating the same.

summary: - Quota Update API does not Require a Quota to Update
+ Quota Update API does not Require a Quota Value to Update
Tom Barron (tpb) on 2018-06-27
tags: added: quotas
Tom Barron (tpb) wrote :

We may be able to address issues of this sort via the proposed json schema validation - initial patch at https://review.openstack.org/#/c/563429/

Tom Barron (tpb) on 2019-03-17
Changed in manila:
milestone: rocky-2 → none
wiley (gfhjgfhdfjd) on 2019-06-07
summary: - Quota Update API does not Require a Quota Value to Update
+ Buy Xanax 1mg Online To Deal With Anxiety Attacks
description: updated
summary: - Buy Xanax 1mg Online To Deal With Anxiety Attacks
+ Buy Xanax Online To Deal With Anxiety Attacks
Colin Watson (cjwatson) on 2019-06-07
description: updated
summary: - Buy Xanax Online To Deal With Anxiety Attacks
+ Quota Update API does not Require a Quota Value to Update

This issue was fixed in the openstack/python-cinderclient 5.0.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers