#FlexCache with writeback enabled
1 messages · Page 1 of 1 (latest)
Nevermind, I see it in the newest release 22.13.0
https://docs.ansible.com/ansible/devel/collections/netapp/ontap/na_ontap_flexcache_module.html#parameter-writeback
But it does not seem to work, even with ONTAP 9.15.1P2:
'Error: using writeback requires ONTAP 9.12 or later and REST must be enabled.'
Also, It would be better if this was also available in the na_ontap_volume module, to set at creation time.
have you enabled REST?
I agree with @pearl mason, have you set "use_rest: always" in your task to force the module to use REST?
One possible issue is another parameter you are setting is forcing the module to fallback to ZAPI. You could find out pretty quickly by forcing the use of REST.
You will likely need to use the na_ontap_rest_cli module at diagnostic privilege level to set this. That's what I've done. Please let me know if you want details.
-
name: Enable writeback on FlexCache® volume
hosts: localhost
gather_facts: false
collections:-
netapp.ontap
module_defaults:
group/netapp.ontap.netapp_ontap:
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
validate_certs: falsetasks:
- name: Set writeback cache
na_ontap_rest_cli:
body: {is-writeback-enabled: true}
command: volume/flexcache/config
params:
vserver: "{{ vserverName }}"
volume: "{{ volumeName }}"
privilege_level: diagnostic
verb: PATCH
-