Developer

 View Only
last person joined: 8 days ago 

Expand all | Collapse all

AOS CX Upgrade using Ansible

This thread has been viewed 36 times
  • 1.  AOS CX Upgrade using Ansible

    Posted Nov 11, 2020 08:15 AM
    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
    ------------------------------


  • 2.  RE: AOS CX Upgrade using Ansible

    Posted Nov 12, 2020 11:32 AM
    Hi Luke!

    Based on the hostname & the output it appears you're trying to load an 8320 build ('/root/ArubaOS-CX_8320_10_05_0021.swi') on a 6300 switch? That's most likely the cause of the error 

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



  • 3.  RE: AOS CX Upgrade using Ansible

    Posted Nov 12, 2020 11:37 AM
    omg I can't believe that's the issue; I get a clown hat for today :D

    I will check that out.

    ------------------------------
    Luke McCormick
    ACDX 1275, ACCP, ACSP, ACMP
    @yuke1922
    ------------------------------



  • 4.  RE: AOS CX Upgrade using Ansible

    Posted Nov 12, 2020 11:38 AM
    haha it's often the simplest thing - that's programming! makes you humble ;)

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



  • 5.  RE: AOS CX Upgrade using Ansible

    Posted Nov 26, 2020 05:13 AM
    I'm also having the same issues GarageBand

    ------------------------------
    Clayton Schwartz
    ------------------------------



  • 6.  RE: AOS CX Upgrade using Ansible

    Posted Nov 30, 2020 05:38 PM
    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
    ------------------------------



  • 7.  RE: AOS CX Upgrade using Ansible

    Posted Nov 30, 2020 06:30 PM
    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
    ------------------------------