You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is my vars.yml file that is included by the above playbook. When the origin_cluster parameter is supplied (not null) the playbook fails even if the origin_cluster and cache cluster are identical.
I expect the export policy, rule, FlexCache volume to be created. The cache volume to be modified to use the export policy created and writeback to be enabled by the rest_cli task.
Actual Results
Here is the error message I get from the FlexCache task:fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error in flexcache_get: calling: storage/flexcache/flexcaches: got {'message': 'Unexpected argument \"origin_cluster\".', 'code': '262179', 'target': 'origin_cluster'}."}The playbook can succeed even when origin_cluster parameter is passed but only when I comment out lines 348 and 349 in the module. Here is that bit: #if 'origin_cluster' in self.parameters: #query['origin.cluster.name'] = self.parameters['origin_cluster']While it does work with that commented out, I'm concerned that there might be a scenario where that test protects from some problem but I don't completely understand what that might be.
The text was updated successfully, but these errors were encountered:
With help, I've discovered that on line 349 the query field contains 'origin.cluster.name', but the REST API is expecting 'origins.cluster.name'. That's 'origin' with an 's' on the end. I edited my copy of the module and it appears to work correctly.
Summary
ONTAP FlexCache Ansible module fails if origin_cluster is defined.
Component Name
netapp.ontap.na_ontap_flexcache
Ansible Version
ONTAP Collection Version
ONTAP Version
Playbook
Steps to Reproduce
Here is my vars.yml file that is included by the above playbook. When the origin_cluster parameter is supplied (not null) the playbook fails even if the origin_cluster and cache cluster are identical.
netapp_hostname: gsdc-aut-ontap914-2
netapp_username: admin
netapp_password: NetApp123!
cache_vserver: testDan
volume_name: fcTest1
fcSize: 111
nfsClient: 10.216.51.23
nfsRO: any
nfsRW: sys
source_hostname: gsdc-aut-ontap914-1
source_vserver: win_9141
source_volume: volName
restBody:
is-writeback-enabled: true
restCommand: volume/flexcache/config
restParams:
vserver: "{{ cache_vserver }}"
volume: "{{ volume_name }}"
privilege_level: diagnostic
restVerb: PATCH
Expected Results
I expect the export policy, rule, FlexCache volume to be created. The cache volume to be modified to use the export policy created and writeback to be enabled by the rest_cli task.
Actual Results
The text was updated successfully, but these errors were encountered: