#FlexCache with writeback enabled

1 messages · Page 1 of 1 (latest)

wicked osprey
#

I could not find the writeback.enabled parameter for when creating a FlexCache volume using the na_ontap_volume module in Ansible.
Is this currently supported? if yes, how do I pass that parameter?
If not, any plans on integrating it?

wicked osprey
#

Also, It would be better if this was also available in the na_ontap_volume module, to set at creation time.

spiral siren
#

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.

humble shard
#

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.

humble shard
#

  • 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: false

    tasks:

    • 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