openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #12730
Re: Quotas... 1 of 1 instances? What's the deal?
Hey Jay,
I'm seeing the same incorrect messaging. From what I've observed, this happens when you exceed your quota. The failure is right but the message is wrong. I opened a bug for this last week.
https://bugs.launchpad.net/nova/+bug/1006218
-------- Original message --------
Subject: [Openstack] Quotas... 1 of 1 instances? What's the deal?
From: Jay Pipes <jaypipes@xxxxxxxxx>
To: "openstack@xxxxxxxxxxxxxxxxxxx" <openstack@xxxxxxxxxxxxxxxxxxx>,Kevin Mitchell <kevin.mitchell@xxxxxxxxxxxxx>
CC: [Openstack] Quotas... 1 of 1 instances? What's the deal?
Hi Kevin, Stackers,
In Horizon, my tenant/user clearly says that 10 instances is my quota,
and yet trying to create a single server I'm getting this:
jpipes@uberbox:~/repos/tempest$ nosetests -v --nologcapture
======================================================================
ERROR: test suite for <class
'tempest.tests.compute.test_servers_negative.ServersNegativeTest'>
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/suite.py",
line 208, in run
self.setUp()
File
"/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/suite.py",
line 291, in setUp
self.setupContext(ancestor)
File
"/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/suite.py",
line 314, in setupContext
try_run(context, names)
File
"/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/util.py",
line 478, in try_run
return func()
File
"/home/jpipes/repos/tempest/tempest/tests/compute/test_servers_negative.py",
line 35, in setUpClass
cls.server = cls.create_server()
File "/home/jpipes/repos/tempest/tempest/tests/base_compute_test.py",
line 117, in create_server
server_name, image_id, flavor)
File
"/home/jpipes/repos/tempest/tempest/services/nova/json/servers_client.py",
line 59, in create_server
resp, body = self.post('servers', post_body, self.headers)
File "/home/jpipes/repos/tempest/tempest/common/rest_client.py", line
152, in post
return self.request('POST', url, headers, body)
File "/home/jpipes/repos/tempest/tempest/common/rest_client.py", line
205, in request
raise exceptions.OverLimit(resp_body['overLimit']['message'])
OverLimit: Quota exceeded
Details: Quota exceeded: already used 1 of 1 instances
But there are no instances at all on the box:
jpipes@uberbox:~/repos/tempest$ virsh list --all
Id Name State
----------------------------------
When I check the DB, though, I've seeing the following:
mysql> select project_id, in_use, reserved, until_refresh from
quota_usages where resource = 'instances';
+----------------------------------+--------+----------+---------------+
| project_id | in_use | reserved | until_refresh |
+----------------------------------+--------+----------+---------------+
| 287a92da0cf14a27a43c8737417b029d | 0 | 10 | NULL |
| f0c72dea9fda459aac64de460300e1ec | 0 | 2 | NULL |
+----------------------------------+--------+----------+---------------+
2 rows in set (0.00 sec)
What's the deal here? Tempest needs to create and delete servers in
rapid succession, and it seems the reservation system might not be able
to keep up?
At a minimum, I think that the OverLimit: "Quota exceeded: already used
1 of 1 instances" message should be updated to not be so obviously wrong
with regard to the value of the resource quota itself?
Thanks,
-jay
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
Follow ups
References