nova-manage project quota command confusing with keystone

Bug #898820 reported by Mandell
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Medium
Unassigned

Bug Description

The "nova-manage project quota" command, when used with keystone based authentication, requires that you use project id (tenant id) for the parameter currently displayed as <Project name>. If you use the tenant name, it does not give an error and even seems to work. For example:

# nova-manage project quota admin
metadata_items: 128
instances: 10
injected_file_content_bytes: 10240
injected_files: 5
volumes: 10
gigabytes: 1000
cores: 20
ram: 51200
floating_ips: 10
# nova-manage project quota --help
Usage: nova-manage project quota <args> [options]

Options:
  -h, --help show this help message and exit
  --project=<Project name>
                        Project name
  --key=<key> Key
  --value=<value> Value
# nova-manage project quota --project=admin --key=volumes --value=40
metadata_items: 128
instances: 10
injected_file_content_bytes: 10240
injected_files: 5
volumes: 40
gigabytes: 1000
cores: 20
ram: 51200
floating_ips: 10
#

If you attempt to add more than 10 volumes, however, it will fail because the quota actually imposed is the one used for the tenant id, not the tenant name.

There are several other places, apparently, in the nova-manage code which are similar and may have similar problems.

Tags: docimpact
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Dean Troyer (dtroyer) wrote :

This is due to the nature of nova-manage, which is primarily a database editor for nova and does not include client capability for other services, ie keystone. I believe the long-term plan is to replace nova-manage with tools using the admin api.

Anne Gentle (annegentle)
tags: added: docimpact
Revision history for this message
James Kyle (jkyle) wrote :

Is it worth patching nova-manage to account for keystone?

Revision history for this message
li,chen (chen-li) wrote :

We can not use nova-manage with only one parameter any more within the master code.
But the issue is still there.

And similar bug list here:
https://bugs.launchpad.net/nova/+bug/897326

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.