Hi everyone, we are trying to move an interface to a different home_node using ansible:
We are using netapp.ontap version 22.8.3.
- name: Move home node on mirrored interfaces
netapp.ontap.na_ontap_interface:
hostname: "{{ netapp_cluster }}"
username: "{{ netapp_cluster_username }}"
password: "{{ netapp_cluster_peer_password }}"
interface_name: "{{ item.interface_name }}"
vserver: "{{ vserver_dr }}"
home_node: "{{ netapp_homenode_mirrored }}"
# home_port: "{{ item.home_port }}"
state: present
loop: "{{ (interfaces.ontap_info.net_interface_info.values() | list | selectattr('vserver', '==', vserver_dr)) }}"
We get a "NetApp API failed. Reason - Unable to connect:(ConnectionRefusedError(111, 'Connection refused')" as response even though we successfully connected to the same cluster moments before to get the interfaces for the loop. The interface we are trying to move is offline as it is on a svm-dr if that makes a difference. We don't have network access from our awx to the interface we are trying to move but that shouldn't matter in my understanding as we are moving in the cluster context?
Additionally, we tried the same invocation with "use_rest: always" and got "Error: REST requires ONTAP 9.7 or later for interface APIs." which is weird because the cluster in question is Ontap 9.13.x
Can anyone explain why these two things are happening? Any solutions?
Thanks your help,
Julia