#Delete a Snapmirror relationship without breaking it?

1 messages · Page 1 of 1 (latest)

gritty canopy
#

Is there a way (using Ansible, and presumably, the na_ontap_snapmirror module) to delete a Snapmirror relationship without breaking it?
We are just trying to rehost volumes to new SVMs, and my customer doesn't like the having the destination volumes becoming RW during the transition. When doing this manually through the OnTap CLI, it is not necessary to break the relationship. You just delete it and create a new relationship between the new SVMs. I think this is also contributing to some timeout issues we're seeing (that I posted about here: https://discord.com/channels/855068651522490400/1329482633893122089), so I thought if I just deleted the relationship without breaking it, it might fix the timeout issue.

I've tried specifying:

state: absent
relationship_info_only: true
relationship_state: "active"

But, regardless of what I set the relationship state to, it always breaks it before deleting the relationship.

narrow tartan
#

@gritty canopy Could you please give the time taking to delete before timeout

narrow tartan
#

So in this case return timeout will not work. I Will split up the break, quiesce and delete tasks if possible and test from my end as part of Story DEVOPS-7332

gritty canopy
#

I am currently testing with the na_ontap_restit module to delete the Snapmirror relationship and then release it from the source (as a different task), since the na_ontap_snapmirror does not seem to allow this without breaking the mirror first. I have it working, but so far, I haven't tested it in our Prod environment where we were seeing the timeouts before. But, I'm hoping that breaking it into two tasks and not doing the break will get around the timeout.