<div dir="ltr">Hi Manoj,<div><br></div><div>Snapshot attachment is a feature used to create backups from a snapshot efficiently if the driver supports it.</div><div>This functionality is not exposed to users and is an optimization rather than a feature that a backend supports.</div><div>See patch[1] which corrects its description in the support matrix.</div><div><br></div><div>[1] <a href="https://review.opendev.org/c/openstack/cinder/+/800015">https://review.opendev.org/c/openstack/cinder/+/800015</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 9, 2021 at 2:55 PM Katari Kumar <<a href="mailto:katkumar@in.ibm.com">katkumar@in.ibm.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" style="font-family:Arial,Helvetica,sans-serif;font-size:10pt"><div dir="ltr"><div>Hi everyone, </div>
<div><br>Is snapshot attachment supported by openstack ? does it really look for the sanpshot table when we perform attachemnt with snapshot id? <br>i see this error below</div>
<div> stack@altranvm4:~$ cinder list<br> +--------------------------------------+-----------+--------------------------+------+-----------------+----------+-------------+<br>| ID                                   | Status    | Name                     | Size | Volume Type     | Bootable | Attached to |<br> +--------------------------------------+-----------+--------------------------+------+-----------------+----------+-------------+<br>| 418f5dd9-bed9-4a04-abf4-26cae153beb7 | available | non-rep-vol1             | 1    | vol_type_auto_0 | false    |             |<br>| e646f5ca-071d-4e3d-b8a9-844301e703a5 | available | clone_non_rep_vol_auto_0 | 1    | vol_type_auto_1 | false    |             |<br> +--------------------------------------+-----------+--------------------------+------+-----------------+----------+-------------+<br>stack@altranvm4:~$ cinder snapshot-list<br>+--------------------------------------+--------------------------------------+-----------+-----------+------+----------------------------------+<br>| ID                                   | Volume ID                            | Status    | Name      | Size | User ID                          |<br>+--------------------------------------+--------------------------------------+-----------+-----------+------+----------------------------------+<br>| e229406e-3b93-4c4c-aabb-43e017bd0c1a | 418f5dd9-bed9-4a04-abf4-26cae153beb7 | available | snap-vol1 | 1    | 2f9f21f8794d430fb7d425cf7243c22a |<br>+--------------------------------------+--------------------------------------+-----------+-----------+------+----------------------------------+<br>stack@altranvm4:~$ openstack server list<br>+--------------------------------------+-------------+--------+------------------------+--------------------------+-----------+<br>| ID                                   | Name        | Status | Networks               | Image                    | Flavor    |<br>+--------------------------------------+-------------+--------+------------------------+--------------------------+-----------+<br>| 46958490-f41f-4a98-9a7a-ae1f93b8b73e | host_auto_0 | ACTIVE | shared=192.168.233.6   | cirros-0.5.2-x86_64-disk | cirros256 |<br>| 3026096b-efb4-4dd5-a73b-804d87c1ca1e | testhost1   | ACTIVE | shared=192.168.233.138 | cirros-0.5.2-x86_64-disk | cirros256 |<br>+--------------------------------------+-------------+--------+------------------------+--------------------------+-----------+<br><strong> stack@altranvm4:~$ openstack server add volume 3026096b-efb4-4dd5-a73b-804d87c1ca1e e229406e-3b93-4c4c-aabb-43e017bd0c1a<br> No volume with a name or ID of 'e229406e-3b93-4c4c-aabb-43e017bd0c1a' exists.</strong></div>
<div><br> it is looking for the id in the volume table , where as the id given is a snapshot<br> Cinder support matrix (<a href="https://docs.openstack.org/cinder/latest/reference/support-matrix.html" target="_blank">https://docs.openstack.org/cinder/latest/reference/support-matrix.html</a>) says many drivers are supporting snapshot attachment. i wonder how ?</div>
<div> Even the '#cinder attachment-create' gives the same error if snapshot is used for attachment.</div>
<div> </div>
<div>BR,</div>
<div>Manoj Katari</div></div></div><br>
<br>

</blockquote></div>