← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1084261] Re: 'nova-manage project quota' command fails with 'nova-manage: error: no such option: --project'

 

** Changed in: nova (Ubuntu)
       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/1084261

Title:
  'nova-manage project quota' command fails with 'nova-manage: error: no
  such option: --project'

Status in OpenStack Compute (Nova):
  Fix Released
Status in “nova” package in Ubuntu:
  Fix Released

Bug description:
  When attempting to change a quota for one of my customers, with the
  command below, I receive an error message instead of the command
  succeeding.

  What I see:

      $ sudo nova-manage project quota --project=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --key=instances --value=15
      nova-manage: error: no such option: --project

  What I expect to see:
      $ sudo nova-manage project quota --project=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --key=instances --value=15
      metadata_items: 128
      injected_file_content_bytes: 10240
      volumes: 5
      gigabytes: 1000
      ram: 51200
      floating_ips: 3
      security_group_rules: 20
      instances: 15
      key_pairs: 100
      injected_files: 5
      cores: 20
      injected_file_path_bytes: 255
      security_groups: 50

  Debugging:

  Looking at the `nova-manage` command I notice that the @arg decorators
  are missing from the `quota` function. Replacing the decorators fixes
  the problem (see attached patch).

  I have looked at the current source from Github and the most recent
  packages from the cloud-archive and these decorators are missing from
  there are well.

  System Information:

  $ cat /etc/lsb-release 
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=12.04
  DISTRIB_CODENAME=precise
  DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"

  $ dpkg -S $(which nova-manage)
  nova-common: /usr/bin/nova-manage

  $ dpkg-query --show nova-common
  nova-common     2012.2-0ubuntu3~cloud0

  Please let me know if you need any further information?

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