Bug 1003473

Summary: nova quota-update failed
Product: Red Hat OpenStack Reporter: Hangbin Liu <haliu>
Component: openstack-novaAssignee: Xavier Queralt <xqueralt>
Status: CLOSED UPSTREAM QA Contact: Ami Jeain <ajeain>
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: dallan, ndipanov, sgordon, yeylon
Target Milestone: ---Keywords: MoveUpstream, Triaged
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-24 07:47:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Hangbin Liu 2013-09-02 07:06:49 UTC
Description of problem:
nova quota-update failed

Version-Release number of selected component (if applicable):
# rpm -qa | grep nova
openstack-nova-conductor-2013.1.3-3.el6ost.noarch
python-nova-2013.1.3-3.el6ost.noarch
openstack-nova-common-2013.1.3-3.el6ost.noarch
openstack-nova-console-2013.1.3-3.el6ost.noarch
openstack-nova-api-2013.1.3-3.el6ost.noarch
openstack-nova-cert-2013.1.3-3.el6ost.noarch
python-novaclient-2.13.0-2.el6ost.noarch
openstack-nova-scheduler-2013.1.3-3.el6ost.noarch
openstack-nova-novncproxy-0.4-6.el6ost.noarch
openstack-nova-compute-2013.1.3-3.el6ost.noarch

How reproducible:


Steps to Reproduce:

[root@hp-dl388g8-05 ~(keystone_admin)]# keystone tenant-list
+----------------------------------+------------+---------+
|                id                |    name    | enabled |
+----------------------------------+------------+---------+
| 5ff73c18f45a4644b0157cfdfb8cc393 |   admin    |   True  |
| c42c616777fc4db889c41f746ec30383 |   fs-qe    |   True  |
| 112d21cf520a4b5e86a257e9f63b6550 | kernel-qa  |   True  |
| b4c751bacaa3479d97c2eb720a10b2f2 | network-qe |   True  |
| 93de8e95fa97476b9dc65b5972947e02 |  services  |   True  |
+----------------------------------+------------+---------+
[root@hp-dl388g8-05 ~(keystone_admin)]# nova quota-show --tenant 5ff73c18f45a4644b0157cfdfb8cc393
+-----------------------------+-------+
| Property                    | Value |
+-----------------------------+-------+
| metadata_items              | 128   |
| injected_file_content_bytes | 10240 |
| ram                         | 51200 |
| floating_ips                | 10    |
| key_pairs                   | 100   |
| instances                   | 20    |
| security_group_rules        | 20    |
| injected_files              | 5     |
| cores                       | 20    |
| fixed_ips                   | -1    |
| injected_file_path_bytes    | 255   |
| security_groups             | 10    |
+-----------------------------+-------+
[root@hp-dl388g8-05 ~(keystone_admin)]# nova quota-update admin --instance 10
[root@hp-dl388g8-05 ~(keystone_admin)]# echo $?
0
# nova quota-show --tenant 5ff73c18f45a4644b0157cfdfb8cc393
+-----------------------------+-------+
| Property                    | Value |
+-----------------------------+-------+
| metadata_items              | 128   |
| injected_file_content_bytes | 10240 |
| ram                         | 51200 |
| floating_ips                | 10    |
| key_pairs                   | 100   |
| instances                   | 20    |
| security_group_rules        | 20    |
| injected_files              | 5     |
| cores                       | 20    |
| fixed_ips                   | -1    |
| injected_file_path_bytes    | 255   |
| security_groups             | 10    |
+-----------------------------+-------+


Actual results:


Expected results:


Additional info:

Comment 2 Xavier Queralt 2013-09-20 15:22:46 UTC
The funny thing is that if instead of using the tenant id in your query (quota-show) you use the 'admin' name you can see the updated quotas.

The 'nova quota-update' command already says in the documentation it expects a tenant-id and not the name. IMO the API should fail with a 404 when it receives an invalid id instead of creating a new quota entry for that non-existent tenant.

Comment 3 Xavier Queralt 2014-03-24 07:47:50 UTC
For any further follow up on this issue, please refer to the upstream bug linked to this bug.