I actually continued to have issues; I apologize for not re-engaging. I ended up doing a manual upgrade due to the criticality of the upgrade.
------------------------------
Luke McCormick
ACDX 1275, ACCP, ACSP, ACMP
@yuke1922
------------------------------
Original Message:
Sent: Nov 30, 2020 05:38 PM
From: Tiffany Chiapuzio-Wong
Subject: AOS CX Upgrade using Ansible
Hi @Schwartz29 it seems like yuke's issue was resolved by supplying the correct image for the device they're wanted to upgrade, did you verify yours already has the correct image?
------------------------------
Tiffany Chiapuzio-Wong
Original Message:
Sent: Nov 26, 2020 05:13 AM
From: Clayton Schwartz
Subject: AOS CX Upgrade using Ansible
I'm also having the same issuesGarageBand
------------------------------
Clayton Schwartz
Original Message:
Sent: Nov 11, 2020 08:15 AM
From: Luke McCormick
Subject: AOS CX Upgrade using Ansible
Having issues uploading firmware using the cx role
fatal: [s-6300-1]: FAILED! => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": false, "module_stderr": "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py:988: InsecureRequestWarning: Unverified HTTPS request is being made to host 's-6300-1.m.lmccormick.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\nTraceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-local-32547_n726ks8/ansible-tmp-1605100317.7770612-32919-157550063607285/AnsiballZ_aoscx_upload_firmware.py\", line 102, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-local-32547_n726ks8/ansible-tmp-1605100317.7770612-32919-157550063607285/AnsiballZ_aoscx_upload_firmware.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-local-32547_n726ks8/ansible-tmp-1605100317.7770612-32919-157550063607285/AnsiballZ_aoscx_upload_firmware.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.aoscx_upload_firmware', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_aoscx_upload_firmware_payload_5jzy383c/ansible_aoscx_upload_firmware_payload.zip/ansible/modules/aoscx_upload_firmware.py\", line 123, in <module>\n File \"/tmp/ansible_aoscx_upload_firmware_payload_5jzy383c/ansible_aoscx_upload_firmware_payload.zip/ansible/modules/aoscx_upload_firmware.py\", line 115, in main\n File \"/tmp/ansible_aoscx_upload_firmware_payload_5jzy383c/ansible_aoscx_upload_firmware_payload.zip/ansible/module_utils/aoscx.py\", line 299, in file_upload\n File \"/tmp/ansible_aoscx_upload_firmware_payload_5jzy383c/ansible_aoscx_upload_firmware_payload.zip/ansible/module_utils/aoscx.py\", line 224, in file_upload\nansible.module_utils.connection.ConnectionError: Error while uploading firmware\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
the Play is here:
- hosts: cx roles: - role: arubanetworks.aoscx_role tasks: - name: "Upload firmware to secondary through local" aoscx_upload_firmware: partition_name: 'primary' firmware_file_path: '/root/ArubaOS-CX_8320_10_05_0021.swi' register: result
------------------------------
Luke McCormick
------------------------------