NetApp driver fails to delete share replica when using a scoped account
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Nahim Alves de Souza |
Bug Description
Description
===========
On ONTAP 9.8, one of the operations used during the process of deleting a replica is broken for users with scoped accounts. The API called by manila returns success when a replica is deleted [1], but if the user tries to delete the share that was being replicated, the ONTAP API will return an error message informing that the share is the source of endpoint of an SnapMirror relationship [2].
Steps to reproduce
==================
For the manila backend I used two clusters configured with ONTAP 9.8, then I did the following steps (using a scoped account):
1. Create a share on manila
2. Create a replica from that share
3. Delete the replica (which returns success [1], but does not delete the SnapMirror relationship)
4. Try to delete the share (which returns the error [2])
Note: The step 3 can be verified on ONTAP, running the command 'snapmirror list-destinations' in the cluster where the source share is hosted. The list of destinations should be cleaned after deleting the share, because the snapmirror relationship should be released in ONTAP.
Expected result
===============
The user should be able to delete the replica and delete the share.
Actual result
=============
The user API return causes the user to think that the replica was deleted, but it prevents the share deletion afterwards.
Environment
===========
1. Devstack deployed on Ubuntu 18.04
2. Manila using the master branch (version 12.1.0)
3. NetApp ONTAP 9.8 + user with scoped account
Logs & Configs
==============
[1] Success message on replica deletion: http://
[2] Error message on share deletion: http://
tags: | added: netapp |
Changed in manila: | |
assignee: | nobody → Nahim Alves de Souza (nahimsouza) |
description: | updated |
description: | updated |
summary: |
- NetApp driver fails to delete share replica but returns a successful - status + NetApp driver fails to delete share replica when using a scoped account |
description: | updated |
Changed in manila: | |
importance: | Undecided → Medium |
Changed in manila: | |
importance: | Medium → Undecided |
importance: | Undecided → Medium |
milestone: | none → xena-3 |
I could reproduce the bug in my env. Setup 3 backends in the same replication domain. All of them are scoped account.
The manila commands executed: http:// paste.openstack .org/show/ 807271/
The manila-share error: http:// paste.openstack .org/show/ 807272/