Simulator Discussions

Question about using SnapMirror from ontap simulator by ansible

shypervisor
1,272 Views

I am trying to execute TR-4798 (Oct 2020) SnapMirror sample (page 76). I failed to execute airflow sample.

So I break down to ansible with snapmirror operation. But still failed.

Is there any idea to solve this problem?

 

I execute following code.

 

ansible-playbook snapmirror-update.yaml 

 

---
- name: "Trigger SnapMirror Update"
  hosts: localhost
  tasks:
  - name: update snapmirror
    na_ontap_snapmirror:
      state: present
      source_path: 'svm0:airflow_clone_20210121_090845'
      destination_path: 'svm0:airflow_clone_20210121_090905'
      hostname: '172.16.28.131'
      username: 'admin'
      password: 'ontapsim0'
      https: 'yes'
      validate_certs: 'False'

 

The output is  it seems http connection error.

 

[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'

PLAY [Trigger SnapMirror Update] ***********************************************

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [update snapmirror] *******************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: netapp_lib.api.zapi.zapi.NaApiError: NetApp API failed. Reason - URL error:URLError(OSError('Tunnel connection failed: 503 Service Unavailable',),)
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error fetching snapmirror info: NetApp API failed. Reason - URL error:URLError(OSError('Tunnel connection failed: 503 Service Unavailable',),)"}

PLAY RECAP *********************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

 

The current volume is follows

 

 20210122_ontap_vol.PNG

0 REPLIES 0
Public