#Multiple issue with na_ontap_snapmirror module for snapmirror relationship of type 'Sync'

1 messages · Page 1 of 1 (latest)

shut shard
#

I'm trying to creating a snapmirror relationship of type 'Sync' but it fails with below error.

"Error patching SnapMirror: {'state': 'snapmirrored'}: calling: snapmirror/relationships/9bbd8fab-efaf-11ed-9315-005056a03165: got {'message': 'This is a Synchronous SnapMirror relationship, snapmirrored is an invalid state for Synchronous SnapMirror relationships. Transition to in_sync state instead to achieve continouous data-protection', 'code': '13303829'}.",

ONTAP 9.12
NetApp.ONTAP Collection v23.3.0

Please let me know how to resolve this issue?

shut shard
#

With further testing looks like when create destination is set true, this error is not reported. It initializes the relationship properly.

shut shard
#

One more issue identified. Snapmirror update is not happening for Sync type snapmirror relationships

shut shard
#

One more issue. Deletion of "Sync" relationship fails with below error. After this failure I see relationship is in quiesced state and retry of playbook is successful.

#

Multiple issue with na_ontap_snapmirror module for snapmirror relationship of type 'Sync'

shut shard
#

@sudden viper , when you get a chance could you please look into this issue? as its blocking a delivery. Thanks!

sudden viper
#

Let me send this to the team.

shut shard
#

@sudden viper , I have found issue with snapmirror create operations. I think na_ontap_snapmirror module uses "state": "snapmirrored" as default for all snapmirror "present" operation. For policy type "sync" state should be "in_sync".

Also, when create_destination is set to true, REST API automatically initializes the relationship with "snapmirrored" or "in_sync" based on policy type. thats why when create_destination option is set its successful.

Please request team to add option to handle this.

#

Also, I found when snapmirror update is run against a relationship in state "in_sync" the job id doesn't exists on the REST API system. I have emailed REST API team. I will add you to email chain for visibility.

#

REST API testing for delete is always successful, so couldn't find the error received in Ansible. That needs troubleshooting.

prisma mantle
#

let me also check this but I have to learn more on how snapmirror works.

shut shard
#

Hi team, any updates on this?

sudden viper
#

@shut shard did the rest team get back to you on the email that you added us to. A lot of what we found end up back to them.

shut shard
#

@sudden viper , I'm still waiting for their update. But that issue is related to snapmirror update for Sync type relationships. Do we have updates on snapmirror relationship creation and deletion errors?

sudden viper
#

From the team

`well in 1034, he himself is saying when create_destination option is set its successful. so as I am looking at code, there is no way policy_type can be explicitly set, so its handled internally when create_destination is enabled, his request here is to add a new option policy_type. Makes sense to add this as a new param

So there are 3 requests here from Durai,

  1. add new option policy_type to handle 'sync' type
  2. update is having job id problem which doesn't exists on the REST API system(so email has been sent by Durai to REST team)
  3. delete is always successful, so couldn't find the error received in Ansible. That needs troubleshooting ( I am not sure here, as we relay anything the REST API gives)`
shut shard
#

@sudden viper , thanks for the updates!

Actually, I setup a new lab this time with 9.11.1 and didn't notice any issues with Create and Delete operations.

Update has same results as 9.12.1, it didn't trigger any update on the Sync relationship.

9.12.1 is what errored for me. I will rebuilt a new lab and test it again on this issue

shut shard
#

@sudden viper , Customer reported me today he hit the same issue I reported initially for create operation.

fatal: [localhost]: FAILED! => {"changed": false, "msg": ["Error patching SnapMirror: {'state': 'snapmirrored'}: calling: snapmirror/relationships/6ff1d74b-f89e-11ed-8e34-00a098d06be3: got {'message': 'This is a Synchronous SnapMirror relationship, snapmirrored is an invalid state for Synchronous SnapMirror relationships. Transition to in_sync state instead to achieve continouous data-protection', 'code': '13303829'}."]}

Customer is using 9.10.1

shut shard
#

Is it possible to get a bugfix for this issue in coming release?

sudden viper
#

We have a story devops-6282 open for this, but i don't have an ETA on what release this will make it in