← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1283364] [NEW] Items in quota-class shouldn't be negative int values

 

Public bug reported:

Items in quota-class shouldn't be negative int values.

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
    }
}

** Affects: nova
     Importance: Undecided
     Assignee: wingwj (wingwj)
         Status: New


** Tags: havana-backport-potential quota

** Changed in: nova
     Assignee: (unassigned) => wingwj (wingwj)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1283364

Title:
  Items in quota-class shouldn't be negative int values

Status in OpenStack Compute (Nova):
  New

Bug description:
  Items in quota-class shouldn't be negative int values.

  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
      }
  }

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


Follow ups

References