← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1400945] Re: User quota could be set greater than tenant quota

 

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

** Changed in: nova
    Milestone: None => kilo-2

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

Title:
  User quota could be set greater than tenant quota

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Reproduce:
  1.Create new tenant and user.
  $ keystone tenant-create --name quota --description "Quota test"
  $ keystone user-create --name quotauser --pass quotauser
  $ keystone user-role-add --user quotauser --tenant quota --role _member_

  2.Set tenant quota 
  $nova quota-update $tenant_id --instances 20

  3.Set user quota to a value greater than tenant quota
  $nova quota-update $tenant_id --user $user_id --instances 40

  Result:
  The user quota update succeeded. Then the user quota is greater than the tenant quota.

  $ nova quota-show --tenant $tenant_id
  +-----------------------------+-------+
  | Quota                       | Limit |
  +-----------------------------+-------+
  | instances                   | 20    |

  $ nova quota-show --tenant $tenant_id --user $user_id
  +-----------------------------+-------+
  | Quota                       | Limit |
  +-----------------------------+-------+
  | instances                   | 40    |

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


References