<div dir="ltr"><div dir="ltr">Hi Ignazio,<div><br></div><div>The feature was introduced in Pike release [0], so it should work.</div><div>Please specify the Volume API version >= 3.40 either by:</div><div>a) passing `--os-volume-api-version` parameter to the command line:</div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">cinder --os-volume-api-version 3.40 revert-to-snapshot snap1</font></div></blockquote><font face="monospace"><br></font></div><div>b) exporting the environment variable OS_VOLUME_API_VERSION:</div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">export OS_VOLUME_API_VERSION=3.40</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">cinder revert-to-snapshot snap1</font></div></blockquote><font face="monospace"><br></font></div><div>Please let us know if it works or not.</div><div><br></div><div>[0] <a href="https://docs.openstack.org/releasenotes/cinder/pike.html#relnotes-11-0-0-stable-pike-new-features">https://docs.openstack.org/releasenotes/cinder/pike.html#relnotes-11-0-0-stable-pike-new-features</a></div><div><br></div><div>Lucio</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 16 Sep 2020 at 09:52, Ignazio Cassano <<a href="mailto:ignaziocassano@gmail.com">ignaziocassano@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello Stackers,</div><div>does cinder revert to snapshot works on stein ?</div><div>The command cinder revert-to-snapshot returns:</div><div><br></div><div>error: argument <subcommand>: invalid choice: u'revert-to-snapshot'</div><div><br></div><div><i>I also tried using cinder v3 api</i> post /v3/<span>{project_id}</span>/volumes/<span>{volume_id}</span>/action</div><div>but it returns :</div><div>{"itemNotFound": {"message": "The resource could not be found.", "code": 404}}</div><div><br></div><div>Please, anyone could help me ?</div><div>Ignazio<br></div></div>
</blockquote></div></div>