← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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     |
...
+-----------------------------+-------+

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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 OpenStack Compute (Nova):
  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/nova/+bug/1313935/+subscriptions


Follow ups

References