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

Bug #1084261 reported by Andrew Glen-Young
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Andrew Glen-Young
nova (Ubuntu)
Fix Released
Undecided
Unassigned

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?

Revision history for this message
Andrew Glen-Young (aglenyoung) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "nova-manage.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Russell Bryant (russellb) wrote :

Can you post this patch to gerrit please?

See the developer section on http://wiki.openstack.org/HowToContribute

and then http://wiki.openstack.org/GerritWorkflow

Thanks!

Changed in nova:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/17603

Changed in nova:
assignee: nobody → Andrew Glen-Young (aglenyoung)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/17603
Committed: http://github.com/openstack/nova/commit/963fcdb6738cc2eb59aaa4edec5d8541fef4c9e4
Submitter: Jenkins
Branch: master

commit 963fcdb6738cc2eb59aaa4edec5d8541fef4c9e4
Author: Andrew Glen-Young <email address hidden>
Date: Thu Dec 6 10:22:35 2012 -0500

    Fix regression allowing quotas to be applied to projects.

    Change-Id: I9c7dfa7664badcafb800c02ee608699e56b344ab
    Fixes: bug #1084261

Changed in nova:
status: In Progress → Fix Committed
Chuck Short (zulcss)
Changed in nova (Ubuntu):
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-2
status: Fix Committed → Fix Released
Chuck Short (zulcss)
Changed in nova (Ubuntu):
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-2 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.