<div dir="ltr">I agree with Amit on this. There needs to be a way for the driver to indicate that an operation is not currently possible and include some descriptive message to indicate why. Right now the volume manager assumes certain behavioral constraints (e.g. that snapshots are completely decoupled from clones) when this behavior is actually determined by the underlying driver.<div>

<br></div><div>~ Scott</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 18, 2014 at 6:29 PM, Mike Perez <span dir="ltr"><<a href="mailto:thingee@gmail.com" target="_blank">thingee@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 class="">On 10:20 Wed 18 Jun     , Amit Das wrote:<br>
> Implementation issues - If Cinder driver throws an Exception the snapshot<br>
> will have error_deleting status & will not be usable. If Cinder driver logs<br>
> the error silently then Openstack will probably mark the snapshot as<br>
> deleted.<br>
><br>
> What is the appropriate procedure that needs to be followed for above<br>
> usecase.<br>
<br>
</div>I'm not sure what "Openstack will probably mark the snapshot as deleted" means.<br>
If a snapshot gets marked with error_deleting, we don't know what state the<br>
snapshot is in because it could've been a delete that partially finished. You<br>
should leave the cinder volume manager to handle this. It's up to the driver to<br>
say the delete finished or failed, that's it.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Mike Perez<br>
<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>
</font></span></blockquote></div><br></div>