← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1313935] Re: tenant is required for quota-update but not for quota-show

 

** Also affects: cinder
   Importance: Undecided
       Status: New

** Changed in: cinder
     Assignee: (unassigned) => Thang Pham (thang-pham)

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

Title:
  tenant is required for quota-update but not for quota-show

Status in Cinder:
  New
Status in OpenStack Compute (Nova):
  In Progress
Status in “nova” package in Ubuntu:
  New

Bug description:
  Tenant is a required positional parameter on quota-update but is
  optional on quota-show.   And when --tenant is not specified on quota-
  show it doesn't return valid limits for the user.

  $ nova quota-show --user demo
  +-----------------------------+-------+
  | Quota                       | Limit |
  +-----------------------------+-------+
  | instances                   | 10    |
  ...
  +-----------------------------+-------+

  $ nova quota-update --user demo --instances 9    # tenant is required
  usage: nova quota-update [--user <user-id>] [--instances <instances>]
                           [--cores <cores>] [--ram <ram>]
                           [--floating-ips <floating-ips>]
                           [--fixed-ips <fixed-ips>]
                           [--metadata-items <metadata-items>]
                           [--injected-files <injected-files>]
                           [--injected-file-content-bytes <injected-file-content-bytes>]
                           [--injected-file-path-bytes <injected-file-path-bytes>]
                           [--key-pairs <key-pairs>]
                           [--security-groups <security-groups>]
                           [--security-group-rules <security-group-rules>]
                           [--force]
                           <tenant-id>
  error: too few arguments
  Try 'nova help quota-update' for more information.

  $ nova quota-update --user demo --instances 9 demo

  $ nova quota-show --user demo  # should return instances=9 or should fail because tenant is required
  +-----------------------------+-------+
  | Quota                       | Limit |
  +-----------------------------+-------+
  | instances                   | 10    |
  ...
  +-----------------------------+-------+

  $ nova quota-show --user demo --tenant demo  # returns the correct value
  +-----------------------------+-------+
  | Quota                       | Limit |
  +-----------------------------+-------+
  | instances                   | 9     |
  ...
  +-----------------------------+-------+

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


References