Items in quota-class shouldn't be smaller than -1

Bug #1283364 reported by wingwj
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Undecided
wingwj

Bug Description

Items in quota-class shouldn't be smaller than -1.

The validation in quotas is correct.

-----------

U can test this issue via api:

------------

POST http://10.250.10.245:8774/v2/1eb5c0b6adbc4ad8a8797e65df2778f5/os-quota-class-sets/defaults

Body = {
    "quota_class_set": {
        "ram": -51200
    }
}

-----------

The response is shown above, :

{
    "quota_class_set": {
        "metadata_items": 128,
        "injected_file_content_bytes": 10240,
        "ram": -51200,
        "floating_ips": 10,
        "security_group_rules": 20,
        "instances": 10,
        "key_pairs": 100,
        "injected_files": 5,
        "cores": 20,
        "fixed_ips": -1,
        "injected_file_path_bytes": 255,
        "security_groups": 10
    }
}

wingwj (wingwj)
Changed in nova:
assignee: nobody → wingwj (wingwj)
wingwj (wingwj)
description: updated
summary: - Items in quota-class shouldn't be negative int values
+ Items in quota-class shouldn't be smaller than -1
Revision history for this message
Lingxian Kong (kong) wrote :

Is there any tests in Tempest to cover the issues above? If the answer is no, you can add some. :)

Changed in nova:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/75626

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
wingwj (wingwj) wrote :

Thanks for confirming. I'll check it in tempest later.

Moreover, I checked the codes in v3, this issue isn't exist. So I only need to modify it in v2 api.

Revision history for this message
Joe Gordon (jogo) wrote :

we are in the process of removing quota classes all together as they don't do anything. https://review.openstack.org/#/c/75535/

Changed in nova:
status: In Progress → 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.