<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</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>
<div>
<div>Nova has a config setting for the maximum number of results to be returned by a single call. You can bump that up so that you can do a nova list —all-tenants and still see everything. However if I am reading the below correctly, then I didn't realize
that the —limit –1 apparently by-passes that config option?</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE">
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-size: 14px;"><br>
</span></font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-size: 14px;">___________________________________________________________________</span></font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-size: 14px;">Kris Lindgren</span></font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-size: 14px;">Senior Linux Systems Engineer</span></font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-size: 14px;">GoDaddy</span></font></font></div>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; 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>David Medberry <<a href="mailto:openstack@medberry.net">openstack@medberry.net</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, May 18, 2016 at 4:13 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a>" <<a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>[Openstack-operators] Problems (simple ones) at scale... Invisible VMs.<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">So, we just ran into an "at-sale" issue that shouldn't have been an issue.
<div><br>
</div>
<div>Many of the OpenStack CLI tools accept a limit parameter (to limit how much data you get back from a single query). However, much less well documented is that there is an inherent limit that you will run into at a 1000 VMs (not counting deleted ones).
Many operators have already exceeded that limit and likely run into this. With nova cli and openstack client, you can simply pass in a limit of -1 to get around this (and though it will still make paged queries, you won't have "invisible" VMs which is what
I've begun to call the ones that don't make it into the first/default page.</div>
<div><br>
</div>
<div>I can't really call this a bug for Nova (but it is definitely a bug for Cinder which doesn't have a functional get me all of them command and is also limited at 1000 for a single call but you can never get the rest at least in our Liberty environment.)</div>
<div><br>
</div>
<div>
<div>box:~# nova list |tail -n +4 |head -n -1 |wc</div>
<div> 1000 16326 416000</div>
<div>box:~# nova list --limit -1 |tail -n +4 |head -n -1 |wc</div>
<div> 1060 17274 440960</div>
</div>
<div><br>
</div>
<div>(so I recently went over the limit of 1000)</div>
<div><br>
</div>
<div>YMMV.</div>
<div><br>
</div>
<div>Good luck.</div>
<div><br>
</div>
<div>-d</div>
</div>
</div>
</div>
</span>
</body>
</html>