Bug 1003473 - nova quota-update failed
Summary: nova quota-update failed
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 5.0 (RHEL 7)
Assignee: Xavier Queralt
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-02 07:06 UTC by Hangbin Liu
Modified: 2019-09-09 14:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-24 07:47:50 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1037373 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.