#Wait for SnapMirror destination to reach idle state

1 messages · Page 1 of 1 (latest)

wicked venture
#

So, I have created my volumes and now it's time to check if the SnapMirror volumes are ready.

They way I create them is simple:

      state: present
      source_endpoint:
        cluster: "{{ cs_storage_cluster }}"
        path: "{{ cs_storage_svm }}:{{ __volume_name }}"
      destination_endpoint:
        cluster: "{{ cs_storage_snaplock_cluster }}"
        path: "{{ cs_storage_snaplock_svm }}:{{ cs_storage_location }}_{{ __volume_name | trim }}"
      create_destination:
        enabled: true
      schedule: "{{ __snaplock_crontab | default('daily') }}"
      policy: "{{ cs_storage_snaplock_mirror_policy }}"

In order to be absolutely sure that everything is in place, I use the netapp.ontap.na_ontap_wait_for_condition as follows:

  netapp.ontap.na_ontap_wait_for_condition:
    name: snapmirror_relationship
    attributes:
      destination_path: "{{ cs_storage_snaplock_svm }}:{{ cs_storage_location }}_{{ __volume_name | trim }}"
      expected_state: idle
    conditions: state
    timeout: "{{ cs_storage_timeout }}"

But this didn't work as expected.
I get this error:

"msg": "Error: no record for node: {'destination.path': '<SVM>:<VOLUME>', 'fields': 'state,transfer.state'} - count: 3",

So, what am I doing wrong?