limits with tenant parameter returns wrong maxTotal* values
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Thang Pham |
Bug Description
When querying for the "absolute limits" of a specific tenant
the maxTotal* values reported aren't correct.
How to reproduce:
for example using devstack...
OS_TENANT_NAME=demo (11b2b129994844
OS_USERNAME=demo
$nova absolute-limits
+------
| Name | Value |
+------
| maxServerMeta | 128 |
| maxPersonality | 5 |
| maxImageMeta | 128 |
| maxPersonalitySize | 10240 |
| maxTotalRAMSize | 1000 |
| maxSecurityGrou
| maxTotalKeypairs | 100 |
| totalRAMUsed | 128 |
| maxSecurityGroups | 10 |
| totalFloatingIp
| totalInstancesUsed | 2 |
| totalSecurityGr
| maxTotalFloatingIps | 10 |
| maxTotalInstances | 10 | <------
| totalCoresUsed | 2 |
| maxTotalCores | 10 | <------
+------
OS_TENANT_
OS_USERNAME=admin
$nova absolute-limits
+------
| Name | Value |
+------
| maxServerMeta | 128 |
| maxPersonality | 5 |
| maxImageMeta | 128 |
| maxPersonalitySize | 10240 |
| maxTotalRAMSize | 151200 |
| maxSecurityGrou
| maxTotalKeypairs | 100 |
| totalRAMUsed | 1152 |
| maxSecurityGroups | 10 |
| totalFloatingIp
| totalInstancesUsed | 18 |
| totalSecurityGr
| maxTotalFloatingIps | 10 |
| maxTotalInstances | 30 |
| totalCoresUsed | 18 |
| maxTotalCores | 30 |
+------
$nova absolute-limits --tenant 11b2b1299948447
+------
| Name | Value |
+------
| maxServerMeta | 128 |
| maxPersonality | 5 |
| maxImageMeta | 128 |
| maxPersonalitySize | 10240 |
| maxTotalRAMSize | 151200 |
| maxSecurityGrou
| maxTotalKeypairs | 100 |
| totalRAMUsed | 128 |
| maxSecurityGroups | 10 |
| totalFloatingIp
| totalInstancesUsed | 2 |
| totalSecurityGr
| maxTotalFloatingIps | 10 |
| maxTotalInstances | 30 | <------
| totalCoresUsed | 2 |
| maxTotalCores | 30 | <------
+------
note: arrows show the wrong values.
Seems that maxTotal* shows the values for the current tenant and not what is specified by "--tenant"
as expected.
tested in havana and icehouse-1
Changed in nova: | |
assignee: | nobody → Thang Pham (thang-pham) |
tags: | added: api |
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-3 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/103709
Review: https:/