Public bug reported:

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?

** Affects: nova (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: canonistack

** Patch added: "nova-manage.patch"
   
https://bugs.launchpad.net/bugs/1084261/+attachment/3446275/+files/nova-manage.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1084261

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

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to