Netapp non-disruptive migration of cifs shares export location broken

Bug #1920937 reported by Maurice Escher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
Caique Mello

Bug Description

Hi,

I want to non-disruptively migrate my CIFS shares in my Netapp back end from pool A to B.
But it fails in generating the export locations on migration complete.

The error I get is 'NetApp API failed. Reason - 13001:The specified path "/share_<new-si-uuid>" does not exist in the namespace belonging to Vserver "<vserver-name>".' from cifs-share-create API call

I think there need to be two fixes:
1. https://opendev.org/openstack/manila/src/commit/50401393c74f65aee73db82f22eb531898bc68cf/manila/share/drivers/netapp/dataontap/protocols/cifs_cmode.py#L35-L36

create_cifs_share should not be called in that case, because the cifs share is already present.

2. https://opendev.org/openstack/manila/src/commit/50401393c74f65aee73db82f22eb531898bc68cf/manila/share/drivers/netapp/dataontap/protocols/cifs_cmode.py#L50-L51

the return should not use the share name, which is a thing that changes on migration, because a new share instance is created, but rather look at the junction path like with NFS protocol (https://opendev.org/openstack/manila/src/commit/50401393c74f65aee73db82f22eb531898bc68cf/manila/share/drivers/netapp/dataontap/protocols/nfs_cmode.py#L53) , I suppose.

Best regards,
Maurice

Vida Haririan (vhariria)
tags: added: share-migration
Vida Haririan (vhariria)
tags: added: netapp
Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :
Changed in manila:
milestone: none → xena-2
importance: Undecided → Medium
Changed in manila:
assignee: nobody → Caique Mello (caiquemello)
Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :

Caique, 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
Vida Haririan (vhariria)
tags: added: cifs
Changed in manila:
assignee: Caique Mello (caiquemello) → Fábio Oliveira (fabiooliveira1)
Changed in manila:
milestone: yoga-2 → yoga-3
Changed in manila:
assignee: Fábio Oliveira (fabiooliveira1) → Andre Luiz Beltrami Rocha (andrebeltrami)
assignee: Andre Luiz Beltrami Rocha (andrebeltrami) → Fábio Oliveira (fabiooliveira1)
Changed in manila:
milestone: yoga-3 → zed-1
Changed in manila:
milestone: zed-1 → zed-2
milestone: zed-2 → zed-1
Changed in manila:
milestone: zed-1 → zed-2
Changed in manila:
milestone: zed-2 → zed-3
Changed in manila:
assignee: Fábio Oliveira (fabiooliveira1) → nobody
assignee: nobody → Felipe Rodrigues (felipefutty)
assignee: Felipe Rodrigues (felipefutty) → nobody
Changed in manila:
assignee: nobody → Caique Mello (caiquemello)
Changed in manila:
milestone: zed-3 → zed-rc1
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/+/858140

Changed in manila:
status: New → In Progress
Changed in manila:
milestone: zed-rc1 → antelope-1
Changed in manila:
milestone: antelope-1 → antelope-2
Changed in manila:
milestone: antelope-2 → antelope-3
Changed in manila:
milestone: antelope-3 → antelope-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.opendev.org/c/openstack/manila/+/858140
Committed: https://opendev.org/openstack/manila/commit/9ddddeeea3123c4af638e54c54a05deb3d59672a
Submitter: "Zuul (22348)"
Branch: master

commit 9ddddeeea3123c4af638e54c54a05deb3d59672a
Author: CaiqueMello <email address hidden>
Date: Fri Sep 16 14:01:17 2022 +0000

    [NetApp] Fix non-disruptive migration cifs shares

    Migrate non-disruptive cifs share from different pools change the
    export location. When the non-disruptive migration complete
    process is started a new share and export location is created. As
    result, Manila finds a conflict between the old export location and
    the new one.

    This patch add a condition to skip export location creation when
    a CIFS migration is in progress, also change the way that the export
    location is created. Instead of create the export path with share
    name, the new one is taken from the backend. The fix is only for
    ZAPI API calls.

    Change-Id: I1bb888a0b644f0b071816d275d464c4dd27125a7
    Co-authored-by: Lucas Oliveira <email address hidden>
    Closes-bug: #1920937

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/2023.1)

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

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

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

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

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

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/+/881325

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

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

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

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (stable/yoga)

Change abandoned by "Elod Illes <email address hidden>" on branch: stable/yoga
Review: https://review.opendev.org/c/openstack/manila/+/881324
Reason: stable/yoga branch of openstack/manila is about to be deleted. To be able to do that, all open patches need to be abandoned. Please cherry pick the patch to unmaintained/yoga if you want to further work on this patch.

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

Fix proposed to branch: unmaintained/yoga
Review: https://review.opendev.org/c/openstack/manila/+/909548

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (stable/xena)

Change abandoned by "Elod Illes <email address hidden>" on branch: stable/xena
Review: https://review.opendev.org/c/openstack/manila/+/881325
Reason: stable/xena branch of openstack/manila is about to be deleted. To be able to do that, all open patches need to be abandoned. Please cherry pick the patch to unmaintained/xena if you want to further work on this patch.

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

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (stable/zed)

Change abandoned by "Elod Illes <email address hidden>" on branch: stable/zed
Review: https://review.opendev.org/c/openstack/manila/+/881323
Reason: stable/zed branch of openstack/manila is about to be deleted. To be able to do that, all open patches need to be abandoned. Please cherry pick the patch to unmaintained/zed if you want to further work on this patch.

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.