<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 1:27 PM, Sekhar Vajjhala <span dir="ltr"><<a href="mailto:sekharv01@gmail.com" target="_blank">sekharv01@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks. <div><br></div><div>So seems like there is no way for me to the following : Allocate a volume of a given size from a volume_type using an API but only if volume_type has sufficient space. I can create a volume of a given size from a volume_type using API, and if there is insufficient space, then the API call will fail . </div>
</div></blockquote><div class="gmail_default" style="font-family:'courier new',monospace">Not sure I follow you're relationship of "size" and "volume-type" here. What you describe here is exactly how it works; user requests a volume of type 'foo' and size 100Gig... the scheduler then checks for a host that can in fact provide a volume of type 'foo', it also checks to see if said backend has enough free-space. If it does... great, if it does not, the create will fail.</div>
<div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">Not that this model works for a number of things that we call specifications, that can be embedded in the volume-type.</div>
<div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">Hope that helps, if I missed the point of your question please do let me know.</div>
<div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">Thanks,</div><div class="gmail_default" style="font-family:'courier new',monospace">
John</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<div><br></div><div>Any other suggestions ? </div><div><br></div><div>Thanks, </div><div>Sekhar Vajjhala</div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 11:43 AM, Jyoti Ranjan <span dir="ltr"><<a href="mailto:jranjan@gmail.com" target="_blank">jranjan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No, there is no way at this point of time. Also, it is little bit difficult expectation because we may attach more than one physical devices (say HP 3PAR CPG) to same volume type.</div>
<div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div>On Wed, Aug 6, 2014 at 1:31 AM, Sekhar Vajjhala <span dir="ltr"><<a href="mailto:sekharv01@gmail.com" target="_blank">sekharv01@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr">Is there a way to get the size of a volume_type using an API. <div>According to the docs <a href="http://developer.openstack.org/api-ref-compute-v2-ext.html" target="_blank">http://developer.openstack.org/api-ref-compute-v2-ext.html</a> ,<div>
<div>GET <span style="color:rgb(83,83,83);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px">/v1.1/{tenant_id}/os-volume-types/{volume_type_id} </span></div><div><font color="#535353" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size:14px;line-height:20px">returns the following ( but not the size ).</span></font></div>
<div><font color="#535353" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size:14px;line-height:20px"><br></span></font></div><div><pre style="font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:13px;white-space:pre-wrap;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;word-wrap:break-word;border:1px solid rgb(204,204,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:rgb(245,245,245)">
{
"volume_type": {
"id": "289da7f8-6440-407c-9fb4-7db01ec49164",
"name": "vol-type-001",
"extra_specs": {
"capabilities": "gpu"
}
}
}</pre></div><span><font color="#888888"><div><br></div><div>Sekhar Vajjhala</div></font></span></div></div></div>
<br></div></div>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr">Sekhar Vajjhala | m : <a href="tel:603-785-8993" value="+16037858993" target="_blank">603-785-8993</a></div>
</font></span></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div></div>