<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 Tue, Jun 17, 2014 at 10:50 PM, Amit Das <span dir="ltr"><<a href="mailto:amit.das@cloudbyte.com" target="_blank">amit.das@cloudbyte.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"><div style="font-family:trebuchet ms,sans-serif">Hi Stackers,</div><div style="font-family:trebuchet ms,sans-serif">
<br></div><div style="font-family:trebuchet ms,sans-serif">
I have been implementing a Cinder driver for our storage solution & facing issues with below scenario.</div><div style="font-family:trebuchet ms,sans-serif"><br></div><div style="font-family:trebuchet ms,sans-serif">
Scenario - When a user/admin tries to delete a snapshot that has associated clone(s), an error message/log should be shown to the user stating that '<i>There are clones associated to this snapshot. Hence, snapshot cannot be deleted</i>'. </div>
</div></blockquote><div> </div><div class="gmail_default" style="font-family:'courier new',monospace">What's the use model of "clones associated with the snapshot"? What are these "clones" from a Cinder perspective. Easy answer is: don't create them, but I realize you probably have a cool feature or optimization that you're trying to leverage here.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<div style="font-family:trebuchet ms,sans-serif"><br></div><div style="font-family:trebuchet ms,sans-serif">Implementation issues - If Cinder driver throws an Exception the snapshot will have error_deleting status & will not be usable. If Cinder driver logs the error silently then Openstack will probably mark the snapshot as deleted.</div>
</div></blockquote><div><br></div><div class="gmail_default" style="font-family:'courier new',monospace">So as others point out, from a Cinder perspective this is what I/we would expect. </div><div class="gmail_default" style="font-family:'courier new',monospace">
<br></div><div class="gmail_default" style="font-family:'courier new',monospace">Scott made some really good points, but the point is we do not want to behave differently for every single driver. The agreed upon mission for Cinder is to actually provide a consistent API and set of behaviors to end users regardless of what backend device they're using (in other words that should remain pretty much invisible to the end-user).</div>
<div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">What do you use the Clones of the Snapshot for? Maybe we can come up with another approach that works and keeps consistency in the API.</div>
<div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-family:trebuchet ms,sans-serif"><br></div><div style="font-family:trebuchet ms,sans-serif">What is the appropriate procedure that needs to be followed for above usecase.</div>
<div style="font-family:trebuchet ms,sans-serif"><br></div><div><div dir="ltr"><div><font style="background-color:rgb(255,255,255)" color="#000000" face="trebuchet ms, sans-serif">Regards,</font></div>
<font style="background-color:rgb(255,255,255)" color="#000000" face="trebuchet ms, sans-serif">Amit</font><div><a href="http://www.cloudbyte.com/" target="_blank"><font style="background-color:rgb(255,255,255)" color="#0000ff" face="trebuchet ms, sans-serif"><i>CloudByte Inc.</i></font></a></div>
</div></div>
</div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</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></div></div>