← Back to team overview

yahoo-eng-team team mailing list archive

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

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
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):
  Fix Released

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


References