Quotas showing in use when no VMs are running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Critical
|
Chris Behrens |
Bug Description
Environment: devstack stable/folsom
Quotas adjusted to 2VMs, 4 Cores.
When I run the following script, the quotas start reporting resources in_use when no VMs are running.
#!/bin/bash
for i in {1..20}
do
euca-
sleep 2
for i in `euca-describe-
done
$ ./burn.sh [53/357]
RESERVATION r-d5cfxois 2e4aa23119dd4f8
INSTANCE i-0000002e ami-00000001 server-
wn zone aki-00000002 ari-00000003 monitoring-disabled instance-store
INSTANCE i-0000002f ami-00000001 server-
wn zone aki-00000002 ari-00000003 monitoring-disabled instance-store
INSTANCE i-0000002e
INSTANCE i-0000002f
RESERVATION r-861rhb54 2e4aa23119dd4f8
INSTANCE i-00000030 ami-00000001 server-
wn zone aki-00000002 ari-00000003 monitoring-disabled instance-store
INSTANCE i-00000031 ami-00000001 server-
wn zone aki-00000002 ari-00000003 monitoring-disabled instance-store
INSTANCE i-0000002e
INSTANCE i-0000002f
INSTANCE i-00000030
INSTANCE i-00000031
TooManyInstances: Quota exceeded for cores,instances: Requested 2, but already used 3 of 4 cores
INSTANCE i-0000002e
INSTANCE i-0000002f
INSTANCE i-00000030
INSTANCE i-00000031
TooManyInstances: Quota exceeded for instances: Requested 2, but already used 2 of 2 instances
INSTANCE i-0000002e
INSTANCE i-0000002f
INSTANCE i-00000030
INSTANCE i-00000031
RESERVATION r-akz712u9 2e4aa23119dd4f8
INSTANCE i-00000032 ami-00000001 server-
wn zone aki-00000002 ari-00000003 monitoring-disabled instance-store
INSTANCE i-00000033 ami-00000001 server-
wn zone aki-00000002 ari-00000003 monitoring-disabled instance-store
INSTANCE i-0000002e
INSTANCE i-0000002f
INSTANCE i-00000032
INSTANCE i-00000033
INSTANCE i-00000030
INSTANCE i-00000031
TooManyInstances: Quota exceeded for cores,instances: Requested 2, but already used 6 of 4 cores
INSTANCE i-0000002e
INSTANCE i-00000032
INSTANCE i-00000033
INSTANCE i-00000030
INSTANCE i-00000031
TooManyInstances: Quota exceeded for cores,instances: Requested 2, but already used 5 of 4 cores
mysql> select * from quota_usages where project_id = "2e4aa23119dd4f
+------
| created_at | updated_at | deleted_at | deleted | id | project_id | resource | in_use | reserved | until_refresh |
+------
| 2013-01-10 23:55:17 | 2013-01-11 00:35:24 | NULL | 0 | 1 | 2e4aa23119dd4f8
| 2013-01-10 23:55:17 | 2013-01-11 00:35:24 | NULL | 0 | 2 | 2e4aa23119dd4f8
| 2013-01-10 23:55:17 | 2013-01-11 00:35:24 | NULL | 0 | 3 | 2e4aa23119dd4f8
+------
3 rows in set (0.00 sec)
mysql> select id from instances where project_id = "2e4aa23119dd4f
Empty set, 1 warning (0.00 sec)
Changed in nova: | |
importance: | Undecided → Critical |
tags: | added: folsom-backport-potential |
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Chris Behrens (cbehrens) |
Changed in nova: | |
milestone: | none → grizzly-rc1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-rc1 → 2013.1 |
Able to reproduce in Grizzly as well.