ONTAP cluster acquisition in AIQUM via REST fails with snapmirror policy name cant be empty
Applies to
- AIQUM 9.14+
- ONTAP 9.14.1 and above
- REST type acquisition with Cloud Agent (CLAG) enabled
Issue
- AIQUM fails to discover destination cluster for S3 bucket snapmirror policy
- Error:
ERROR [common-pool-4341] c.o.s.a.d.n.NetAppOCIEDataSource (NetAppOCIEDataSource.java:258) - GMode Conversion exception java.lang.IllegalArgumentException: snapmirror_policy key field 'snapmirror_policy_name' may not be empty.
at com.onaro.sanscreen.acquisition.schema.KeyBase$KeyIDs.<init>(KeyBase.java:189) ~[au-package-common.jar:9.16.0-2024.11.J9]
at com.onaro.sanscreen.acquisition.schema.KeyBase.<init>(KeyBase.java:17) ~[au-package-common.jar:9.16.0-2024.11.J9]
- Issue seen in REST Type acquisition with CLAG enabled
api_snapmirror_relations
file from AIQUM recordings show some relationships with policy name "" :
{
"uuid": "<UUID>",
"source": {
"path": "s3_source:/bucket/test",
"svm": {
"uuid": "<SVM_UUID",
"name": "s3_source",
"_links": {
"self": {
"href": "/api/svm/peers/454f5306-23d5-11ef-abc4-00a098ea9f0a"
}
}
},
"cluster": {
"name": "Cluster1",
"uuid": "<Cluster1_UUID>"
}
},
"destination": {
"path": "s3_dest:/bucket/test-dest",
"svm": {
"uuid": "<SVM_UUID",
"name": "s3_dest",
"_links": {
"self": {
"href": "/api/svm/svms/f215b97d-dd2a-11ed-a649-00a098eab66d"
}
}
},
"cluster": {
"name": "Cluster2",
"uuid": "<Cluster2_UUID>"
}
},
"policy": {
"name": "",
"type": "continuous"
},
"state": "snapmirrored",
"transfer": {
"state": "success"
},
"healthy": true,
"throttle": 0,
"_links": {
"self": {
"href": "/api/snapmirror/relationships/0cc62586-6614-11ef-b4ab-00a098ea9f0a/"
}
}
},