<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>And I opened one 3 weeks ago!  :)  Just marked the one you did as a duplicate – happy to have it go either way though, no worries.</div>
<div><br>
</div>
<div><a href="https://bugs.launchpad.net/nova/+bug/998199">https://bugs.launchpad.net/nova/+bug/998199</a></div>
<div><br>
</div>
<div>The error message is confusing, largely because the variable names are confusing, I suspect.  Anyway, there should be some fixes here for sure, and we probably want a way to do some more robust checking.  Basically the issue is that if you fail for any
 sort of hard limit right now (CPUs, RAM, instance count) it will give the same error message.  If we fix up that error message to give the actual numbers, its still not quite right because it could be for something other than the instance count.</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Daryl Walleck <<a href="mailto:daryl.walleck@RACKSPACE.COM">daryl.walleck@RACKSPACE.COM</a>><br>
<span style="font-weight:bold">Date: </span>Mon, 4 Jun 2012 22:43:17 +0000<br>
<span style="font-weight:bold">To: </span>Jay Pipes <<a href="mailto:jaypipes@gmail.com">jaypipes@gmail.com</a>>, "<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>" <<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>>,
 Kevin Mitchell <<a href="mailto:kevin.mitchell@RACKSPACE.COM">kevin.mitchell@RACKSPACE.COM</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Openstack] Quotas... 1 of 1 instances? What's the deal?<br>
</div>
<div><br>
</div>
<div>
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
<div>
<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"> <a href="https://bugs.launchpad.net/nova/+bug/1006218">https://bugs.launchpad.net/nova/+bug/1006218</a> </span></font></div>
<br>
<br>
<br>
-------- Original message --------<br>
Subject: [Openstack] Quotas... 1 of 1 instances? What's the deal?<br>
From: Jay Pipes <<a href="mailto:jaypipes@gmail.com">jaypipes@gmail.com</a>><br>
To: "<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>" <<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>>,Kevin Mitchell <<a href="mailto:kevin.mitchell@RACKSPACE.COM">kevin.mitchell@RACKSPACE.COM</a>><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     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><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></div>
</div>
_______________________________________________ Mailing list: <a href="https://launchpad.net/~openstack">
https://launchpad.net/~openstack</a> Post to : <a href="mailto:openstack@lists.launchpad.net">
openstack@lists.launchpad.net</a> Unsubscribe : <a href="https://launchpad.net/~openstack">
https://launchpad.net/~openstack</a> More help : <a href="https://help.launchpad.net/ListHelp">
https://help.launchpad.net/ListHelp</a> </span>
</body>
</html>