Nova per-project quota usage can become inaccurate.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Deliang Fan |
Bug Description
I am still working on diagnosing the exact steps to reproduce, but on test systems it is possible to get nova's quota tracking into an inaccurate state.
This was triggered via randomized testing with a focus on create server images as well as rebooting and resizing the test servers.
In the example below, after running some randomized tests, there are no active servers on the project, yet 'nova absolute-limits' output lists cores as being used (the quotas-usage table data reflects this).
No cores are listed as used in the admin view for hypervisor usage, but this inaccurate state will prevent the project from spinning up machines.
nova list
+----+-
| ID | Name | Status | Task State | Power State | Networks |
+----+-
+----+-
pcrews@
+------
| Name | Value |
+------
| maxServerMeta | 128 |
| maxPersonality | 5 |
| totalServerGrou
| maxImageMeta | 128 |
| maxPersonalitySize | 10240 |
| maxTotalRAMSize | 51200 |
| maxTotalKeypairs | 100 |
| maxSecurityGrou
| maxServerGroups | 10 |
| totalCoresUsed | 8 |
| totalRAMUsed | 26368 |
| maxSecurityGroups | 10 |
| totalFloatingIp
| totalInstancesUsed | 0 |
| totalSecurityGr
| maxTotalFloatingIps | 10 |
| maxTotalInstances | 20 |
| maxTotalCores | 20 |
| maxServerGroupM
+------
mysql> select * from quota_usages;
+------
| created_at | updated_at | deleted_at | id | project_id | resource | in_use | reserved | until_refresh | deleted | user_id |
+------
| 2014-12-09 23:28:12 | 2014-12-10 00:40:06 | NULL | 1 | 078e0e1371f44e2
| 2014-12-09 23:28:12 | 2014-12-10 00:40:06 | NULL | 2 | 078e0e1371f44e2
| 2014-12-09 23:28:12 | 2014-12-10 00:40:06 | NULL | 3 | 078e0e1371f44e2
| 2014-12-09 23:28:12 | 2014-12-09 23:28:12 | NULL | 4 | 078e0e1371f44e2
| 2014-12-09 23:28:14 | 2014-12-10 00:40:05 | NULL | 5 | 078e0e1371f44e2
+------
description: | updated |
Changed in nova: | |
assignee: | nobody → Deliang Fan (vanderliang) |