<div dir="ltr"><div><div>Depending on what progress the backend has made during the create, this can race witht the create such that you can end up:<br></div><div>a) No volume on the backend but a volume in cinder (this is ok)<br></div>b) With no volume on the backend but the volume manager putting the volume in state available (delete flag would still be set so this is ok)<br></div>c) A volume on the backend but no volume in cinder<br><br>This third case is not ok, and probably leaves open feasible DoS attachs via fillling up backends with orphan volumes without taking up cinder quota (and without appearing in cinder at all, so being quite confusing for the admin) <br></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 February 2015 at 10:23, Guo, Ruijing <span dir="ltr"><<a href="mailto:ruijing.guo@intel.com" target="_blank">ruijing.guo@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<div>
<div>
<p class="MsoNormal"><span style="color:#1f497d">In <a href="http://developer.openstack.org/api-ref-blockstorage-v2.html" target="_blank">
http://developer.openstack.org/api-ref-blockstorage-v2.html</a>, delete volume preconditions:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">Preconditions<u></u><u></u></span></p>
<p style="margin-left:.5in"><u></u><span style="font-size:10.0pt;font-family:Symbol;color:#333333" lang="EN"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">Volume status must be
</span><code><span style="font-size:9.5pt" lang="EN">available</span></code><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">,
</span><code><span style="font-size:9.5pt" lang="EN">in-use</span></code><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">,
</span><code><span style="font-size:9.5pt" lang="EN">error</span></code><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">, or
</span><code><span style="font-size:9.5pt" lang="EN">error_restoring</span></code><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">.<u></u><u></u></span></p>
<p><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN"><u></u> <u></u></span></p>
<p><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">I think we may change to following statements:<u></u><u></u></span></p>
<p><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN"><u></u> <u></u></span></p>
<p><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">Preconditions<u></u><u></u></span></p>
<p style="margin-left:.5in"><u></u><span style="font-size:10.0pt;font-family:Symbol;color:#333333" lang="EN"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">Volume status must be
</span><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333">creating,
</span><code><span style="font-size:9.5pt" lang="EN">available</span></code><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">,
</span><code><span style="font-size:9.5pt" lang="EN">error</span></code><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">, or
</span><code><span style="font-size:9.5pt" lang="EN">error_restoring</span></code><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">. (add creating and remove in-use)<u></u><u></u></span></p>
<p><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN"><u></u> <u></u></span></p>
<p style="margin-left:.5in"><u></u><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN"><span>1)<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">If LUN is attached (in-use), we cannot delete LUN.<u></u><u></u></span></p>
<p style="margin-left:.5in"><u></u><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN"><span>2)<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN">Event LUN is creating (hung in create), we may delete LUN.<u></u><u></u></span></p>
<p><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333" lang="EN"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN"><u></u> <u></u></span></p>
</div>
</div>
</div>
</div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Duncan Thomas</div>
</div>