Developer

 View Only
last person joined: yesterday 

Expand all | Collapse all

Ansible firmware upload not working on 6300 CX switch

This thread has been viewed 18 times
  • 1.  Ansible firmware upload not working on 6300 CX switch

    Posted Oct 19, 2021 11:57 AM
    Hello!

    I am able to use the aoscx_role to upload firmware to the 6200F switch, but it fails on the 6300 switch. 

    fatal: [switch]: FAILED! => {
    157 "changed": false,
    158 "module_stderr": "Traceback (most recent call last):\n File \"/home/user/.***/tmp/***-local-12550872bp49mst/***-tmp-1634656848.7143023-204235372851090/AnsiballZ_aoscx_upload_firmware.py\", line 102, in <module>\n _ansiballz_main()\n File \"/home/user/.***/tmp/***-local-12550872bp49mst/***-tmp-1634656848.7143023-204235372851090/AnsiballZ_aoscx_upload_firmware.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/user/.***/tmp/***-local-12550872bp49mst/***-tmp-1634656848.7143023-204235372851090/AnsiballZ_aoscx_upload_firmware.py\", line 40, in invoke_module\n runpy.run_module(mod_name='***.modules.aoscx_upload_firmware', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib/python3.8/runpy.py\", line 207, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib/python3.8/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib/python3.8/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/***_aoscx_upload_firmware_payload_vd5kv8ik/***_aoscx_upload_firmware_payload.zip/***/modules/aoscx_upload_firmware.py\", line 190, in <module>\n File \"/tmp/***_aoscx_upload_firmware_payload_vd5kv8ik/***_aoscx_upload_firmware_payload.zip/***/modules/aoscx_upload_firmware.py\", line 130, in main\nAttributeError: 'PyaoscxFactory' object has no attribute 'device'\n",
    159 "module_stdout": "",
    160 "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    161 "rc": 1
    162}

    ------------------------------
    Jon Larsen
    ------------------------------


  • 2.  RE: Ansible firmware upload not working on 6300 CX switch

    MVP GURU
    Posted Oct 19, 2021 04:12 PM
    Hi Jon,

    May be a bug, i think it will be better to post an issue on https://github.com/aruba/aoscx-ansible-collection

    ------------------------------
    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 firmware upload not working on 6300 CX switch

    Posted Oct 20, 2021 10:19 AM
    My output above is probably related to my attempts at fixing the problem. I will create an issue on github instead, with the correct output :)

    Thanks!

    ------------------------------
    Jon Larsen
    ------------------------------



  • 4.  RE: Ansible firmware upload not working on 6300 CX switch

    MVP GURU
    Posted Oct 25, 2021 03:29 PM
    the issue is https://github.com/aruba/aoscx-ansible-collection/issues/11 and look an issue about firmware size (and limited capacity of Ansible server)

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