Hi,
shares that were created from snapshot and are deleted after a short lifetime end up in error_deleting. Now I have to come back later, reset state and try to delete again.
In the logs I see "Failed to unmount volume [...] after waiting for 30 seconds."
My expectation would be: deleting a share from snapshot works without waiting + retry.
I have Manila Xena with ONTAP 9.8 back end and set netapp:split_clone_on_create to "True".
Previously there may have been no way in figuring out that a clone split operation was ongoing (see https://opendev.org/openstack/manila/src/branch/stable/xena/manila/share/drivers/netapp/dataontap/client/client_cmode.py#L3087-L3096) but now in more recent ONTAP versions there is a 'volume-clone-split-status' command.
I suggest to improve the user experience: instead of waiting a few seconds for the job to finish (which may not be enough), stop the clone split in case of a unmount with force flag.
What do you think?
BR,
Maurice
Another idea would be to re-use the concept of soft-deleting from 'soft_delete_ snapshot' :
in case of an error on share delete, rename the share and try to delete later.