yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #01497
[Bug 1098380] Re: Quotas showing in use when no VMs are running
** Changed in: nova
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1098380
Title:
Quotas showing in use when no VMs are running
Status in OpenStack Compute (Nova):
Fix Released
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-run-instances -n 2 -t m1.tiny ami-00000001
sleep 2
for i in `euca-describe-instances | grep i- | awk '{print $2}'`; do euca-terminate-instances $i; done
done
$ ./burn.sh [53/357]
RESERVATION r-d5cfxois 2e4aa23119dd4f86ad810675885ae4a2 default
INSTANCE i-0000002e ami-00000001 server-537fb7fe-9e96-42e8-9083-4bb2c36fbdb9 server-537fb7fe-9e96-42e8-9083-4bb2c36fbdb9 pending 0 m1.tiny 2013-01-11T00:34:50.000Z unkno
wn zone aki-00000002 ari-00000003 monitoring-disabled instance-store
INSTANCE i-0000002f ami-00000001 server-4c8d1518-b269-4a50-b15e-a31034e93352 server-4c8d1518-b269-4a50-b15e-a31034e93352 pending 0 m1.tiny 2013-01-11T00:34:50.000Z unkno
wn zone aki-00000002 ari-00000003 monitoring-disabled instance-store
INSTANCE i-0000002e
INSTANCE i-0000002f
RESERVATION r-861rhb54 2e4aa23119dd4f86ad810675885ae4a2 default
INSTANCE i-00000030 ami-00000001 server-6454449d-4207-4ca2-a95d-03ac6c07f480 server-6454449d-4207-4ca2-a95d-03ac6c07f480 pending 0 m1.tiny 2013-01-11T00:34:54.000Z unkno
wn zone aki-00000002 ari-00000003 monitoring-disabled instance-store
INSTANCE i-00000031 ami-00000001 server-70a5d87d-739c-40df-b5b9-4afe703710ae server-70a5d87d-739c-40df-b5b9-4afe703710ae pending 0 m1.tiny 2013-01-11T00:34:54.000Z unkno
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 2e4aa23119dd4f86ad810675885ae4a2 default
INSTANCE i-00000032 ami-00000001 server-1fd4f0bd-e49e-4637-8e7b-875aa78cff8e server-1fd4f0bd-e49e-4637-8e7b-875aa78cff8e pending 0 m1.tiny 2013-01-11T00:35:09.000Z unkno
wn zone aki-00000002 ari-00000003 monitoring-disabled instance-store
INSTANCE i-00000033 ami-00000001 server-030e0016-7356-4eff-a25d-f03397405422 server-030e0016-7356-4eff-a25d-f03397405422 pending 0 m1.tiny 2013-01-11T00:35:09.000Z unkno
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 = "2e4aa23119dd4f86ad810675885ae4a2";
+---------------------+---------------------+------------+---------+----+----------------------------------+-----------+--------+----------+---------------+
| 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 | 2e4aa23119dd4f86ad810675885ae4a2 | instances | 4 | 0 | NULL |
| 2013-01-10 23:55:17 | 2013-01-11 00:35:24 | NULL | 0 | 2 | 2e4aa23119dd4f86ad810675885ae4a2 | ram | 2048 | 0 | NULL |
| 2013-01-10 23:55:17 | 2013-01-11 00:35:24 | NULL | 0 | 3 | 2e4aa23119dd4f86ad810675885ae4a2 | cores | 4 | 0 | NULL |
+---------------------+---------------------+------------+---------+----+----------------------------------+-----------+--------+----------+---------------+
3 rows in set (0.00 sec)
mysql> select id from instances where project_id = "2e4aa23119dd4f86ad810675885ae4a2" and deleted = "NULL";
Empty set, 1 warning (0.00 sec)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1098380/+subscriptions