Share migration with NetApp fails compatibility check due to encryption

Bug #1915237 reported by Goutham Pacha Ravi
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Low
Fábio Oliveira

Bug Description

Description
===========
I have an ONTAP 9.0 storage system and wanted to move my manila share across aggregates on it. This should be possible with driver assisted share migration as documented here: https://netapp-openstack-dev.github.io/openstack-docs/train/manila/examples/openstack_command_line/section_manila-cli.html#migrating-manila-shares

However, this fails the migration compatibility check and digging into the manila-share logs, i see the cause of the error is an unexpected parameter in the volume-move API: http://paste.openstack.org/show/802493/

Steps to reproduce
==================

1) Setup manila DHSS=False backed by NetApp ONTAP 9.0 with at least two data aggregates that will show up as manila storage pools
2) Create a share, note the pool it ends up in
3) Migrate the share to the second pool with parameters: --preserve-metadata True --preserve-snapshots True --writable True --nondisruptive True

Expected result
===============
The driver performs volume move to move the share to the desired storage pool

Actual result
=============
Migration compatibility check fails, the volume move dry run errors with "NaApiError: NetApp API failed. Reason - 13115:Extra input: encrypt-destination"

Environment
===========
1. Manila stable/train
2. ONTAP 9.0 (ontapi_1_100)

Revision history for this message
Douglas Viroel (dviroel) wrote :

Confirmed, the 'encrypt-destination' parameter, used in 'volume-move-start' operation, is only available for Ontapi >= 1.110 (ONTAP >= 9.1)

Changed in manila:
status: New → Confirmed
Vida Haririan (vhariria)
Changed in manila:
importance: Undecided → Low
milestone: none → wallaby-rc1
assignee: nobody → Douglas Viroel (dviroel)
Revision history for this message
Vida Haririan (vhariria) wrote :
tags: added: wallaby-rc-bugsquash
Changed in manila:
milestone: wallaby-rc1 → xena-1
tags: removed: wallaby-rc-bugsquash
Douglas Viroel (dviroel)
Changed in manila:
assignee: Douglas Viroel (dviroel) → Carlos Eduardo (silvacarlose)
Changed in manila:
milestone: xena-1 → xena-2
Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :

Carlos, we're closing on xena-RC1 soon.

i'm moving this bug to Yoga-1; please let me know if that timeline is inaccurate.

Changed in manila:
milestone: xena-2 → yoga-1
Changed in manila:
milestone: yoga-1 → yoga-2
Changed in manila:
assignee: Carlos Eduardo (silvacarlose) → Fábio Oliveira (fabiooliveira1)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/manila/+/820891

Changed in manila:
status: Confirmed → In Progress
Revision history for this message
Fábio Oliveira (fabiooliveira1) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.opendev.org/c/openstack/manila/+/820891
Committed: https://opendev.org/openstack/manila/commit/9417ece45629d4103d2b37a593dfbcc7e774362c
Submitter: "Zuul (22348)"
Branch: master

commit 9417ece45629d4103d2b37a593dfbcc7e774362c
Author: Fabio Oliveira <email address hidden>
Date: Tue Dec 7 11:13:29 2021 -0300

    NetApp OnTap: Fix compatibility check for share migrate

    The issue happens when the parameter 'encrypt-destination' is sent to
    OnTap devices with version lower than 9.0 or OnTapi lower then 1.110.

    This patch adds a condition to check these versions and ignore the flag
    addition if needed on '_send_volume_move_request'.

    Closes-Bug: 1915237
    Change-Id: Id9faa4f73996cb7467b7361d0406c980f06905c2

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 14.0.0.0rc1

This issue was fixed in the openstack/manila 14.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/xena)

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/manila/+/847161

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/manila/+/855234

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/manila/+/847161
Committed: https://opendev.org/openstack/manila/commit/27d79965f79fea4b34809fcd449f007ed6cc5ec5
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 27d79965f79fea4b34809fcd449f007ed6cc5ec5
Author: Fabio Oliveira <email address hidden>
Date: Tue Dec 7 11:13:29 2021 -0300

    NetApp OnTap: Fix compatibility check for share migrate

    The issue happens when the parameter 'encrypt-destination' is sent to
    OnTap devices with version lower than 9.0 or OnTapi lower then 1.110.

    This patch adds a condition to check these versions and ignore the flag
    addition if needed on '_send_volume_move_request'.

    Closes-Bug: 1915237
    Change-Id: Id9faa4f73996cb7467b7361d0406c980f06905c2
    (cherry picked from commit 9417ece45629d4103d2b37a593dfbcc7e774362c)

tags: added: in-stable-xena
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/manila/+/855234
Committed: https://opendev.org/openstack/manila/commit/ee7ede8a363044c20c0145caef438aa9ca8743f9
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit ee7ede8a363044c20c0145caef438aa9ca8743f9
Author: Fabio Oliveira <email address hidden>
Date: Tue Dec 7 11:13:29 2021 -0300

    NetApp OnTap: Fix compatibility check for share migrate

    The issue happens when the parameter 'encrypt-destination' is sent to
    OnTap devices with version lower than 9.0 or OnTapi lower then 1.110.

    This patch adds a condition to check these versions and ignore the flag
    addition if needed on '_send_volume_move_request'.

    Closes-Bug: 1915237
    Change-Id: Id9faa4f73996cb7467b7361d0406c980f06905c2
    (cherry picked from commit 9417ece45629d4103d2b37a593dfbcc7e774362c)
    (cherry picked from commit 27d79965f79fea4b34809fcd449f007ed6cc5ec5)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 13.0.4

This issue was fixed in the openstack/manila 13.0.4 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila wallaby-eom

This issue was fixed in the openstack/manila wallaby-eom release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.