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
Additional comments http:// eavesdrop. openstack. org/meetings/ manila/ 2021/manila. 2021-05- 13-15.00. log.html# l-113