<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div dir="ltr" >Thanks Rajat for the information.</div>
<div dir="ltr" > </div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: "Rajat Dhasmana" <rdhasman@redhat.com><br>To: "Katari Kumar" <katkumar@in.ibm.com><br>Cc: "OpenStack Discuss" <openstack-discuss@lists.openstack.org><br>Subject: [EXTERNAL] Re: Snapshot Attachment support in cinder<br>Date: Mon, Aug 9, 2021 9:54 PM<br> <br><!-- BaNnErBlUrFlE-HeAdEr-start --> <!-- BaNnErBlUrFlE-HeAdEr-end --> <!-- BaNnErBlUrFlE-BoDy-start --> <!-- Preheader Text : BEGIN --> <span style="display:none !important;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;" > Hi Manoj, Snapshot attachment is a feature used to create backups from a snapshot efficiently if the driver supports it. This functionality is not exposed to users and is an optimization rather than a feature that a backend supports. ‍ ‍ ‍ ‍ ‍ </span> <!-- Preheader Text : END --> <!-- Email Banner : BEGIN --> <span style="display:none !important;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;" >ZjQcmQRYFpfptBannerStart</span> <!--[if ((ie)|(mso))]>
  <table border="0" cellspacing="0" cellpadding="0" width="100%" style="padding: 3px 0px 16px 0px;" ><tr><td>
    <table class="pfptBannerTableMSO" border="0" cellspacing="0" cellpadding="0" style="padding: 0px 10px 5px 6px; width: 100%;border-radius:4px;border-top:4px solid #90a4ae;background-color:#d0d8dc;" ><tr><td valign="top" >
      <table align="left" border="0" cellspacing="0" cellpadding="0" style="padding: 4px 8px 4px 8px" >
        <tr><td><span class="pfptTitleMSO" style="color:#000000 !important;font-family: 'Arial', sans-serif;font-weight:bold !important;font-size:14px !important;" >
          This Message Is From an External Sender
        </span></td></tr>
        <tr><td><span class="pfptSubtitleMSO" style="color:#000000 !important;font-weight:normal !important;font-family: 'Arial', sans-serif; font-size:12px !important;" >
          This message came from outside your organization.
        </span></td></tr>

      </table>

    </td></tr></table>
  </td></tr></table>
<![endif]--> <!--[if !((ie)|(mso))]-->

<div style="margin:16px 0px 16px 0px; padding:8px 16px 8px 16px; border-radius: 4px; min-width: 200px;background-color: #d0d8dc; border-top: 4px solid #90a4ae;" ><div style="display: inline-block; margin: 0px 0px 1px 0px; max-width: 600px;" ><div style="color:#000000 !important;font-family: 'Arial', sans-serif !important;font-weight:bold !important;font-size:14px !important;line-height:18px;display:block;" >This Message Is From an External Sender</div>
<div style="color:#000000 !important;font-weight:normal !important;font-family: 'Arial', sans-serif !important;font-size:12px !important;line-height:18px;margin-top:2px;display:block" >This message came from outside your organization.</div></div></div><!--[endif]--> <span style="display:none !important;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;" >ZjQcmQRYFpfptBannerEnd</span><br><!-- Email Banner : END --> <!-- BaNnErBlUrFlE-BoDy-end -->
<div dir="ltr" >Hi Manoj,
<div> </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> </div>
<div>[1] <a href="https://review.opendev.org/c/openstack/cinder/+/800015" target="_blank">https://review.opendev.org/c/openstack/cinder/+/800015</a></div></div> 

<div><div dir="ltr" >On Mon, Aug 9, 2021 at 2:55 PM Katari Kumar <<a href="mailto:katkumar@in.ibm.com" target="_blank">katkumar@in.ibm.com</a>> wrote:</div>
<blockquote 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> </blockquote></div></blockquote>
<div dir="ltr" > </div></div><BR>
<BR>