Developer

last person joined: yesterday 

Expand all | Collapse all

Ansible firmware upload fails

This thread has been viewed 27 times
  • 1.  Ansible firmware upload fails

    Posted Jul 29, 2021 11:53 AM

    I'm following the Ansible guide at Network Maintenance to upgrade the firmware on switches.

    It is working perfectly when I target one switch, but when targeting two switches, one of them always fails. Both work if I target them alone.

    TASK [Upload firmware through local file] ************************************************************************************************************************************************
    fatal: [switch1]: FAILED! => {"changed": false, "module_stderr": "Killed\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 137}
    changed: [switch2]

    PLAY RECAP *******************************************************************************************************************************************************************************
    switch1 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
    switch2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0

    I have attached playbooks etc. Any tips?



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

    Attachment(s)

    txt
    group_vars - switches.txt   221 B 1 version
    txt
    inventory.txt   151 B 1 version
    txt
    playbook.txt   319 B 1 version


  • 2.  RE: Ansible firmware upload fails

    Posted Aug 04, 2021 02:26 PM
    Hi @jonlar!

    At first glance I'm thinking it's caused by the "local upload" - perhaps a restriction of working on two devices simultaneously, we may want to look into running it serially:
    ---
    - hosts: switches
      roles:
        - role: arubanetworks.aoscx_role
      serial: 1
      gather_facts: False
      tasks:
        - name: Upload firmware through local file
          aoscx_upload_firmware:
            partition_name: '{{ boot_partition }}'
            firmware_file_path: '/path/to/firmware/ArubaOS-{{ aruba_os }}_{{ aruba_firmware }}.swi'
    ​


    Could you run the playbook in verbose mode by adding `-vvvv` at the end of the `ansible-playbook` command? Please attach the full output.

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



  • 3.  RE: Ansible firmware upload fails

    Posted Aug 05, 2021 04:32 AM
      |   view attached

    Hello Tiffany :) 

    Thank you for your reply. 
    It works perfect in serial, but it will take a lot of time, so I would hope to have it run in parallel.

    I have attached the verbose output.

    //Jon



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

    Attachment(s)

    txt
    debug.txt   5 KB 1 version


  • 4.  RE: Ansible firmware upload fails

    Posted Sep 10, 2021 06:31 AM
    Anything new regarding this?

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



  • 5.  RE: Ansible firmware upload fails

    Posted Oct 25, 2021 07:56 AM
    This is most likely an issue with available memory on the server i am running Ansible on. Upping the memory will probably fix the issue.

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