Could someone help me out with the syntax I need to use for the na_ontap_wait_for_condition module (collection 22.12.0)? I'm doing a snapmirror update, and then I want it to wait until the update completes and the Snapmirror to become idle. But, I keep getting this error... what am I missing?
`` - name: Wait for Snapmirror update to complete
netapp.ontap.na_ontap_wait_for_condition:
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
https: true
validate_certs: false
name: "snapmirror_relationship"
conditions: "state"
attributes:
destination_path: "{{ dest_path }}"
expected_state: "snapmirrored"
polling_interval: 30
timeout: 120
TASK [Wait for Snapmirror update to complete] *************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error: no record for node: {'destination.path': vs01:volume01', 'fields': 'state,transfer.state'} - count: 3"}
``
Unfortunately, the documentation is not real clear to me, and none of the examples are for Snapmirrors. They are all for firmware upgrades:
https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_wait_for_condition_module.html#ansible-collections-netapp-ontap-na-ontap-wait-for-condition-module