#Rest_info subset doesn’t return same thing every time

1 messages · Page 1 of 1 (latest)

serene rivet
#

Hello, I have a playbook that runs a few times a week to find snapmirror relationships with a lag time of >7 days. I’ve had my eye on a volume that has a lag time of 15 days now, and the API has only picked this up once, other times it shows num_records: 0. I’ve ran this 6 times, so it should have caught this every time.. not intermittently.

This is part of the playbook:

- name: Find unhealthy snapmirror relationships with >7 days lag time
   netapp.ontap.na_ontap_rest_info:
        hostname: hostname
        username: username
        password: password
        https: true
        validate_certs: false
        gather_subset:
          - snapmirror_info
       parameters:
         source.svm: ‘*’
         source.path: ‘*’
         destination.path: ‘*’
         destination.svm: ‘*’
         lag_time: ‘>P7DT’
         healthy: ‘false’
         unhealthy_reason.message: ‘*’
     register: unhealthy_snapmirrors

Any help here would be greatly appreciated!

#

I’m posting from mobile so the formatting might be off as FYI

narrow aurora
#

@serene rivet Could you please share your ONTAP version?

frozen creek
#

Inot convinced this is an Ansible issue. @late depot , didn’t you observe some sort of inconsistency with snapmirror #1063542514780475493 ?