← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1266634] [NEW] unnecessary parameter is found in quota-classes request body

 

Public bug reported:

Nova quota-classes request should be in the format like:

body = {'quota_class_set': {'instances': 50, 'cores': 50,
                            'ram': 51200, 'floating_ips': 10,
                            'fixed_ips': -1, 'metadata_items': 128,
                            'security_groups': 10,
                            'security_group_rules': 20,
                            'key_pairs': 100,
                            }}

But in some unit test cases, the id parameter is found in the body, it
should be deleted.

 def test_quotas_update_as_admin(self):
     body = {'quota_class_set': {'instances': 50, 'cores': 50,
                                 'ram': 51200, 'floating_ips': 10,
                                 'fixed_ips': -1, 'metadata_items': 128,
                                 ★'id': 'test_class', ★
                                 'security_groups': 10,
                                 'security_group_rules': 20,
                                 'key_pairs': 100}}

** Affects: nova
     Importance: Undecided
     Assignee: Haiwei Xu (xu-haiwei)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Haiwei Xu (xu-haiwei)

-- 
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/1266634

Title:
  unnecessary parameter is found in quota-classes request body

Status in OpenStack Compute (Nova):
  New

Bug description:
  Nova quota-classes request should be in the format like:

  body = {'quota_class_set': {'instances': 50, 'cores': 50,
                              'ram': 51200, 'floating_ips': 10,
                              'fixed_ips': -1, 'metadata_items': 128,
                              'security_groups': 10,
                              'security_group_rules': 20,
                              'key_pairs': 100,
                              }}

  But in some unit test cases, the id parameter is found in the body, it
  should be deleted.

   def test_quotas_update_as_admin(self):
       body = {'quota_class_set': {'instances': 50, 'cores': 50,
                                   'ram': 51200, 'floating_ips': 10,
                                   'fixed_ips': -1, 'metadata_items': 128,
                                   ★'id': 'test_class', ★
                                   'security_groups': 10,
                                   'security_group_rules': 20,
                                   'key_pairs': 100}}

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


Follow ups

References