Developer

 View Only
last person joined: 2 days ago 

Expand all | Collapse all

AOSCX - Ansible connection via jump host

This thread has been viewed 7 times
  • 1.  AOSCX - Ansible connection via jump host

    Posted May 10, 2022 01:37 PM
    Hi,

    Great to be part of this community.

    We are writing ansible playbook to manage Aruba CX switches. However, we the playbook get the output of commands when switch is connected to a jump host.

    Our environment -

    [Ansible Execution Host] -> Jump Host -> Switch

    The playbook times out with following error - 

    "msg": "socket_path does not exist or cannot be found.\nSee the socket_path issue category in Network Debug and Troubleshooting Guide"​


    Traceback -

    The full traceback is:
      File "/tmp/ansible_arubanetworks.aoscx.aoscx_command_payload_zt3y_wa1/ansible_arubanetworks.aoscx.aoscx_command_payload.zip/ansible_collections/arubanetworks/aoscx/plugins/module_utils/aoscx.py", line 447, in run_commands
        return conn.run_commands(commands=commands, check_rc=check_rc)
      File "/tmp/ansible_arubanetworks.aoscx.aoscx_command_payload_zt3y_wa1/ansible_arubanetworks.aoscx.aoscx_command_payload.zip/ansible/module_utils/connection.py", line 184, in __rpc__
        response = self._exec_jsonrpc(name, *args, **kwargs)
      File "/tmp/ansible_arubanetworks.aoscx.aoscx_command_payload_zt3y_wa1/ansible_arubanetworks.aoscx.aoscx_command_payload.zip/ansible/module_utils/connection.py", line 138, in _exec_jsonrpc
        raise ConnectionError('socket_path does not exist or cannot be found.'

    However, same playbook works when executed on the Jump Host.

    What might be the problem?

    Thanks
    Ratnesh

    ------------------------------
    Ratnesh Nagori
    ------------------------------


  • 2.  RE: AOSCX - Ansible connection via jump host

    MVP GURU
    Posted May 10, 2022 04:27 PM
    Hi,

    Do you have look https://docs.ansible.com/ansible/latest/network/user_guide/network_debug_troubleshooting.html#troubleshooting-socket-path-issues

    May be also also on aruba ansible-collection github ?

    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCL: Powershell Module to use Aruba Central

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------