<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>Hey Jay, 
<div><br>
</div>
<div>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. <br>
<br>
<font class="x_Apple-style-span" size="5"><span class="x_Apple-style-span" style="font-size:17px"> https://bugs.launchpad.net/nova/+bug/1006218 </span></font></div>
<br>
<br>
<br>
-------- Original message --------<br>
Subject: [Openstack] Quotas... 1 of 1 instances? What's the deal?<br>
From: Jay Pipes <jaypipes@gmail.com><br>
To: "openstack@lists.launchpad.net" <openstack@lists.launchpad.net>,Kevin Mitchell <kevin.mitchell@RACKSPACE.COM><br>
CC: [Openstack] Quotas... 1 of 1 instances? What's the deal?<br>
<br>
<br>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi Kevin, Stackers,<br>
<br>
In Horizon, my tenant/user clearly says that 10 instances is my quota, <br>
and yet trying to create a single server I'm getting this:<br>
<br>
jpipes@uberbox:~/repos/tempest$ nosetests -v --nologcapture <br>
======================================================================<br>
ERROR: test suite for <class <br>
'tempest.tests.compute.test_servers_negative.ServersNegativeTest'><br>
----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>
   File <br>
"/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/suite.py", <br>
line 208, in run<br>
     self.setUp()<br>
   File <br>
"/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/suite.py", <br>
line 291, in setUp<br>
     self.setupContext(ancestor)<br>
   File <br>
"/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/suite.py", <br>
line 314, in setupContext<br>
     try_run(context, names)<br>
   File <br>
"/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/util.py", <br>
line 478, in try_run<br>
     return func()<br>
   File <br>
"/home/jpipes/repos/tempest/tempest/tests/compute/test_servers_negative.py", <br>
line 35, in setUpClass<br>
     cls.server = cls.create_server()<br>
   File "/home/jpipes/repos/tempest/tempest/tests/base_compute_test.py", <br>
line 117, in create_server<br>
     server_name, image_id, flavor)<br>
   File <br>
"/home/jpipes/repos/tempest/tempest/services/nova/json/servers_client.py", <br>
line 59, in create_server<br>
     resp, body = self.post('servers', post_body, self.headers)<br>
   File "/home/jpipes/repos/tempest/tempest/common/rest_client.py", line <br>
152, in post<br>
     return self.request('POST', url, headers, body)<br>
   File "/home/jpipes/repos/tempest/tempest/common/rest_client.py", line <br>
205, in request<br>
     raise exceptions.OverLimit(resp_body['overLimit']['message'])<br>
OverLimit: Quota exceeded<br>
Details: Quota exceeded: already used 1 of 1 instances<br>
<br>
But there are no instances at all on the box:<br>
<br>
jpipes@uberbox:~/repos/tempest$ virsh list --all<br>
  Id Name                 State<br>
----------------------------------<br>
<br>
When I check the DB, though, I've seeing the following:<br>
<br>
mysql> select project_id, in_use, reserved, until_refresh from <br>
quota_usages where resource = 'instances';<br>
+----------------------------------+--------+----------+---------------+<br>
| project_id                       | in_use | reserved | until_refresh |<br>
+----------------------------------+--------+----------+---------------+<br>
| 287a92da0cf14a27a43c8737417b029d |      0 |       10 |          NULL |<br>
| f0c72dea9fda459aac64de460300e1ec |      0 |        2 |          NULL |<br>
+----------------------------------+--------+----------+---------------+<br>
2 rows in set (0.00 sec)<br>
<br>
What's the deal here? Tempest needs to create and delete servers in <br>
rapid succession, and it seems the reservation system might not be able <br>
to keep up?<br>
<br>
At a minimum, I think that the OverLimit: "Quota exceeded: already used <br>
1 of 1 instances" message should be updated to not be so obviously wrong <br>
with regard to the value of the resource quota itself?<br>
<br>
Thanks,<br>
-jay<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>
Post to     : openstack@lists.launchpad.net<br>
Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br>
</div>
</span></font>
</body>
</html>