When modifying a volume to set analytics on, the module times out waiting for analytics to initialize. I know I can increase time out, but is there a way to make this asynchronous? This will be useful when attempting to apply analytics to multiple volumes without having to set time out or wait for analytics to initialize before executing the next volume.
#Volume module asynchronous with analytics on
1 messages · Page 1 of 1 (latest)
@keen needle Could you try using the parameter wait_for_completion (set to false)?
https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_volume_module.html#parameter-wait_for_completion
False is default and it is set when the failure occurs.
Anyone else have any ideas or comments about this?
The problem with making this function Asynchronous.
If you had a playbook that required that volume in a future step, and the previous step was still running, you could get an error or the wrong results, as the volume wouldn't be in the expected state.
You would also lose any ability to get an error back if the job returns an error.
You already have a solution for that problem in the collection: na_ontap_wait_for_condition 🙄