Developer

 View Only
last person joined: 2 days ago 

Expand all | Collapse all

Ansible Exception Errors

This thread has been viewed 37 times
  • 1.  Ansible Exception Errors

    Posted Jul 19, 2021 02:32 PM
    I'm trying to run an ansible playbook using below inventory file and am getting exception errors.
    Per the Aruba ansible blogs I am using correct parameters, can someone please advise why I am seeing this method not found connection error?

    ansible.module_utils.connection.ConnectionError: Method not found


    https://galaxy.ansible.com/arubanetworks/aoscx_role?extIdCarryOver=true&sc_cid=701f2000001OH7YAAW

    Ansible version:

    ansible [core 2.11.2] 

      config file = /etc/ansible/ansible.cfg

      configured module search path = ['/Users/shane/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']

      ansible python module location = /usr/local/Cellar/ansible/4.2.0/libexec/lib/python3.9/site-packages/ansible

      ansible collection location = /Users/shane/.ansible/collections:/usr/share/ansible/collections

      executable location = /usr/local/bin/ansible

      python version = 3.9.6 (default, Jul  9 2021, 17:09:35) [Clang 10.0.0 (clang-1000.10.44.4)]

      jinja version = 3.0.1

      libyaml = True

    Have installed the python SDK pyaosdk

    Inventory File:

    cat inventory.yml 

    ---

    leafs:

      hosts:

        cxleaf1

        cxleaf2

      vars:

        ansible_user: admin

        ansible_password: Pensando123!

        ansible_network_os: aoscx

        ansible_connection: aoscx  # REST API via pyaoscx connection method

        ansible_aoscx_validate_certs: False

        ansible_aoscx_use_proxy: False

    spines:

      hosts:

        cxspine1

        cxspine2

      vars:

        ansible_user: admin

        ansible_password: Pensando123!

        ansible_network_os: aoscx

        ansible_connection: aoscx  # REST API via pyaoscx connection method

        ansible_aoscx_validate_certs: False

        ansible_aoscx_use_proxy: False

    cat create_l3_int.yml 

    - hosts: all

      roles:

        - role: arubanetworks.aoscx_role

      vars:

        ansible_python_interpreter: /usr/bin/python3

      gather_facts: False     

      tasks:

      - name: Create L3 Interface 1/1/4

        aoscx_l3_interface:

          interface: 1/1/4

          description: Uplink_Interface

          ipv4: ['99.99.99.1/24']


    ansible-playbook -i inventory.yml create_l3_int.yml -vvv

    ansible-playbook [core 2.11.2] 

      config file = /etc/ansible/ansible.cfg

      configured module search path = ['/Users/shane/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']

      ansible python module location = /usr/local/Cellar/ansible/4.2.0/libexec/lib/python3.9/site-packages/ansible

      ansible collection location = /Users/shane/.ansible/collections:/usr/share/ansible/collections

      executable location = /usr/local/bin/ansible-playbook

      python version = 3.9.6 (default, Jul  9 2021, 17:09:35) [Clang 10.0.0 (clang-1000.10.44.4)]

      jinja version = 3.0.1

      libyaml = True

    Using /etc/ansible/ansible.cfg as config file

    host_list declined parsing /Users/shane/ansible/aruba-oscx/inventory.yml as it did not pass its verify_file() method

    script declined parsing /Users/shane/ansible/aruba-oscx/inventory.yml as it did not pass its verify_file() method

    Parsed /Users/shane/ansible/aruba-oscx/inventory.yml inventory source with yaml plugin

    Skipping callback 'default', as we already have a stdout callback.

    Skipping callback 'minimal', as we already have a stdout callback.

    Skipping callback 'oneline', as we already have a stdout callback.

    PLAYBOOK: create_l3_int.yml ***************************************************************************************************************

    1 plays in create_l3_int.yml

    PLAY [all] ********************************************************************************************************************************

    META: ran handlers

    META: 

    META: 

    TASK [Create L3 Interface 1/1/4] **********************************************************************************************************

    task path: /Users/shane/ansible/aruba-oscx/create_l3_int.yml:8

    <cxleaf1 cxleaf2> ESTABLISH LOCAL CONNECTION FOR USER: shane

    <cxleaf1 cxleaf2> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft `"&& mkdir "` echo /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.025933-59471-53441687013920 `" && echo ansible-tmp-1626654433.025933-59471-53441687013920="` echo /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.025933-59471-53441687013920 `" ) && sleep 0'

    <cxspine1 cxspine2> ESTABLISH LOCAL CONNECTION FOR USER: shane

    <cxspine1 cxspine2> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft `"&& mkdir "` echo /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.0290759-59472-67107513831194 `" && echo ansible-tmp-1626654433.0290759-59472-67107513831194="` echo /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.0290759-59472-67107513831194 `" ) && sleep 0'

    redirecting module_util ansible.module_utils.network.common.utils to ansible_collections.ansible.netcommon.plugins.module_utils.network.common.utils

    redirecting module_util ansible.module_utils.network.common.utils to ansible_collections.ansible.netcommon.plugins.module_utils.network.common.utils

    Using module file /Users/shane/.ansible/roles/arubanetworks.aoscx_role/library/aoscx_l3_interface.py

    <cxleaf1 cxleaf2> PUT /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/tmpbzhxrn7h TO /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.025933-59471-53441687013920/AnsiballZ_aoscx_l3_interface.py

    Using module file /Users/shane/.ansible/roles/arubanetworks.aoscx_role/library/aoscx_l3_interface.py

    <cxleaf1 cxleaf2> EXEC /bin/sh -c 'chmod u+x /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.025933-59471-53441687013920/ /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.025933-59471-53441687013920/AnsiballZ_aoscx_l3_interface.py && sleep 0'

    <cxspine1 cxspine2> PUT /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/tmp2c_fp2dd TO /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.0290759-59472-67107513831194/AnsiballZ_aoscx_l3_interface.py

    <cxspine1 cxspine2> EXEC /bin/sh -c 'chmod u+x /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.0290759-59472-67107513831194/ /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.0290759-59472-67107513831194/AnsiballZ_aoscx_l3_interface.py && sleep 0'

    <cxleaf1 cxleaf2> EXEC /bin/sh -c '/usr/bin/python3 /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.025933-59471-53441687013920/AnsiballZ_aoscx_l3_interface.py && sleep 0'

    <cxspine1 cxspine2> EXEC /bin/sh -c '/usr/bin/python3 /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.0290759-59472-67107513831194/AnsiballZ_aoscx_l3_interface.py && sleep 0'

    <cxspine1 cxspine2> EXEC /bin/sh -c 'rm -f -r /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.0290759-59472-67107513831194/ > /dev/null 2>&1 && sleep 0'

    <cxleaf1 cxleaf2> EXEC /bin/sh -c 'rm -f -r /Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.025933-59471-53441687013920/ > /dev/null 2>&1 && sleep 0'

    The full traceback is:

    Traceback (most recent call last):

      File "/Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.0290759-59472-67107513831194/AnsiballZ_aoscx_l3_interface.py", line 100, in <module>

        _ansiballz_main()

      File "/Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.0290759-59472-67107513831194/AnsiballZ_aoscx_l3_interface.py", line 92, in _ansiballz_main

        invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)

      File "/Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.0290759-59472-67107513831194/AnsiballZ_aoscx_l3_interface.py", line 40, in invoke_module

        runpy.run_module(mod_name='ansible.modules.aoscx_l3_interface', init_globals=dict(_module_fqn='ansible.modules.aoscx_l3_interface', _modlib_path=modlib_path),

      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 206, in run_module

        return _run_module_code(code, init_globals, run_name, mod_spec)

      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 96, in _run_module_code

        _run_code(code, mod_globals, init_globals,

      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 86, in _run_code

        exec(code, run_globals)

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/modules/aoscx_l3_interface.py", line 315, in <module>

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/modules/aoscx_l3_interface.py", line 251, in main

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py", line 423, in __init__

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py", line 444, in get_switch_platform

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py", line 338, in get

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py", line 208, in get

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/connection.py", line 195, in __rpc__

    ansible.module_utils.connection.ConnectionError: Method not found

    fatal: [cxspine1 cxspine2]: FAILED! => {

        "changed": false,

        "module_stderr": "Traceback (most recent call last):\n  File \"/Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.0290759-59472-67107513831194/AnsiballZ_aoscx_l3_interface.py\", line 100, in <module>\n    _ansiballz_main()\n  File \"/Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.0290759-59472-67107513831194/AnsiballZ_aoscx_l3_interface.py\", line 92, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.0290759-59472-67107513831194/AnsiballZ_aoscx_l3_interface.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible.modules.aoscx_l3_interface', init_globals=dict(_module_fqn='ansible.modules.aoscx_l3_interface', _modlib_path=modlib_path),\n  File \"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py\", line 206, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py\", line 96, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py\", line 86, in _run_code\n    exec(code, run_globals)\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/modules/aoscx_l3_interface.py\", line 315, in <module>\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/modules/aoscx_l3_interface.py\", line 251, in main\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py\", line 423, in __init__\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py\", line 444, in get_switch_platform\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py\", line 338, in get\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py\", line 208, in get\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_vfvklu19/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/connection.py\", line 195, in __rpc__\nansible.module_utils.connection.ConnectionError: Method not found\n",

        "module_stdout": "",

        "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",

        "rc": 1

    }

    The full traceback is:

    Traceback (most recent call last):

      File "/Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.025933-59471-53441687013920/AnsiballZ_aoscx_l3_interface.py", line 100, in <module>

        _ansiballz_main()

      File "/Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.025933-59471-53441687013920/AnsiballZ_aoscx_l3_interface.py", line 92, in _ansiballz_main

        invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)

      File "/Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.025933-59471-53441687013920/AnsiballZ_aoscx_l3_interface.py", line 40, in invoke_module

        runpy.run_module(mod_name='ansible.modules.aoscx_l3_interface', init_globals=dict(_module_fqn='ansible.modules.aoscx_l3_interface', _modlib_path=modlib_path),

      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 206, in run_module

        return _run_module_code(code, init_globals, run_name, mod_spec)

      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 96, in _run_module_code

        _run_code(code, mod_globals, init_globals,

      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 86, in _run_code

        exec(code, run_globals)

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/modules/aoscx_l3_interface.py", line 315, in <module>

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/modules/aoscx_l3_interface.py", line 251, in main

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py", line 423, in __init__

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py", line 444, in get_switch_platform

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py", line 338, in get

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py", line 208, in get

      File "/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/connection.py", line 195, in __rpc__

    ansible.module_utils.connection.ConnectionError: Method not found

    fatal: [cxleaf1 cxleaf2]: FAILED! => {

        "changed": false,

        "module_stderr": "Traceback (most recent call last):\n  File \"/Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.025933-59471-53441687013920/AnsiballZ_aoscx_l3_interface.py\", line 100, in <module>\n    _ansiballz_main()\n  File \"/Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.025933-59471-53441687013920/AnsiballZ_aoscx_l3_interface.py\", line 92, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/Users/shane/.ansible/tmp/ansible-local-59468hdshbtft/ansible-tmp-1626654433.025933-59471-53441687013920/AnsiballZ_aoscx_l3_interface.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible.modules.aoscx_l3_interface', init_globals=dict(_module_fqn='ansible.modules.aoscx_l3_interface', _modlib_path=modlib_path),\n  File \"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py\", line 206, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py\", line 96, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py\", line 86, in _run_code\n    exec(code, run_globals)\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/modules/aoscx_l3_interface.py\", line 315, in <module>\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/modules/aoscx_l3_interface.py\", line 251, in main\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py\", line 423, in __init__\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py\", line 444, in get_switch_platform\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py\", line 338, in get\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/aoscx.py\", line 208, in get\n  File \"/var/folders/vx/d2mqlmc92gbgrz6zyw5d6k440000gn/T/ansible_aoscx_l3_interface_payload_2nlkhvwp/ansible_aoscx_l3_interface_payload.zip/ansible/module_utils/connection.py\", line 195, in __rpc__\nansible.module_utils.connection.ConnectionError: Method not found\n",

        "module_stdout": "",

        "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",

        "rc": 1

    }

    PLAY RECAP ********************************************************************************************************************************

    cxleaf1 cxleaf2            : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

    cxspine1 cxspine2          : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   



    ------------------------------
    Shane Corban
    ------------------------------


  • 2.  RE: Ansible Exception Errors

    MVP GURU
    Posted Jul 22, 2021 06:25 AM
    do you have check the version of pyaoscx ? (v1 or v2 ?)

    ------------------------------
    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
    ------------------------------



  • 3.  RE: Ansible Exception Errors

    Posted Jul 27, 2021 01:59 AM
    Hi @scorban thanks for raising this issue!

    I had worked with @scorban and we determined the issue was seen with insufficient Python libraries installed with the pointed `ansible_python_interpreter` - please update your `ansible_python_interpreter` variable to the main Python3 library of your installed OS or ensure you have all the required Python libraries of the `ansible.netcommon` collection.

    Also if anyone else is experiencing an issue with the new AOS-CX Ansible Collection please report all issues here. Thank you again for your ​​contribution, happy automating!

    ------------------------------
    Tiffany Chiapuzio-Wong
    ------------------------------



  • 4.  RE: Ansible Exception Errors

    Posted Aug 30, 2021 11:10 AM

    Hello

    I am running:

    ansible-galaxy collection build my/stuff my/stuff my/stuff

    and I keep getting this error:

    ERROR! Unexpected Exception, this is probably a bug: 'NoneType' object has no attribute 'keys'

    What does this mean? Do I need to have keys inside my galaxy file? Really confused on this



    ------------------------------
    Romaguera Jody
    ------------------------------



  • 5.  RE: Ansible Exception Errors

    Posted Oct 13, 2021 01:26 PM
    I would recommend following the instructions here for installing the AOS-CX collection:
    https://developer.arubanetworks.com/aruba-aoscx/docs/getting-started-with-ansible-and-aos-cx#section-installing-the-aruba-aos-cx-collection

    Make sure to install all the requirements - once that's done try running one of these simpler workflows here:
    https://github.com/aruba/aoscx-ansible-workflows

    Let me know if that helps!

    ------------------------------
    Tiffany Chiapuzio-Wong
    ------------------------------



  • 6.  RE: Ansible Exception Errors

    Posted Oct 13, 2021 01:27 PM
    You shouldn't be running any "build" commands - when installing the collection you should only require this: 
    `ansible-galaxy collection install arubanetworks.aoscx -f`

    ------------------------------
    Tiffany Chiapuzio-Wong
    ------------------------------