ansible-collections / cisco.nxos

Ansible Network Collection for Cisco NXOS
GNU General Public License v3.0
115 stars 110 forks source link

Socket is closed error #782

Open ashish-k-panigrahy opened 9 months ago

ashish-k-panigrahy commented 9 months ago
SUMMARY

I have been seeing this issue with nxos_config module. I don't know what the cause is and how to solve it.

ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
ansible [core 2.14.0]
OS / ENVIRONMENT

CISCO NXOS 9.3(12)

STEPS TO REPRODUCE

I am unable to reproduce the issue as this is transient and occurs unexpectedly.

- name: Delete IP block 
  nxos_config:
    lines: "no ip prefix-list PLIST-XX1"
    save_when: always
  register: ip_delete_result
  until: ip_delete_result is succeeded
  retries: 3
EXPECTED RESULTS

Expected it to apply the configurations.

ACTUAL RESULTS

Error: fatal: [clf01-r03]: FAILED! => {"attempts": 3, "changed": false, "msg": "Socket is closed"}