[Openstack] Quotas... 1 of 1 instances? What's the deal?

Daryl Walleck daryl.walleck at RACKSPACE.COM
Mon Jun 4 22:43:17 UTC 2012


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 at gmail.com>
To: "openstack at lists.launchpad.net" <openstack at lists.launchpad.net>,Kevin Mitchell <kevin.mitchell at RACKSPACE.COM>
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 at 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 at 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 at lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120604/a96e33ef/attachment.html>


More information about the Openstack mailing list