Developer

 View Only
last person joined: 2 days ago 

Expand all | Collapse all

Uploading firmware failed using ansible

This thread has been viewed 16 times
  • 1.  Uploading firmware failed using ansible

    Posted May 09, 2022 12:35 PM
    Hi,

    Does anybody here came across here when upgrading firmware via http using ansible and nothing happen?
    The output is this:
    ansible_output

    But the switch log says this,

    Event|4403|LOG_ERR|UKWN|1|User admin: secondary image update failed via HTTP from 172.x.x.x


    Here's my playbook 

    ---

    - hosts: aoscx_4_NM1Lvl3-Aruba

      collections:

        - arubanetworks.aoscx

      gather_facts: False

      tasks:

        - name: Upload firmware to primary through HTTP

          aoscx_upload_firmware:

            firmware_file_path:

            partition_name: 'secondary'

            remote_firmware_file_path: 'http://172.x.x.x:20443/ArubaOS-CX_6400-6300_10_09_1010.swi'

            vrf: 'default'



    I tried uploading coming from the ansible server but I got this message:

    ansible_upload2

    Here's my playbook:

    ---

    - hosts: aoscx_4_NM1Lvl3-Aruba

      roles:

        - role: arubanetworks.aoscx_role

      tasks:

        - name: Upload firmware to secondary through local file

          aoscx_upload_firmware:

            partition_name: 'secondary'

            firmware_file_path: '/home/melchoruwc/ArubaOS-CX_6400-6300_10_09_1010.swi'

        - name: Boot to secondary

          aoscx_boot_firmware:

            partition_name: 'secondary'




    Please advise what I missed out here?


    Many thanks!
    Melchor




    ------------------------------
    Melchor Mangrobang
    ------------------------------


  • 2.  RE: Uploading firmware failed using ansible

    MVP GURU
    Posted May 10, 2022 04:34 PM
    Hi,

    What the firmware actually on the switch ?

    What do release of ansible aoscx do you are using ?

    do you have check the log of HTTP Server ?
    no firewall between switch and the HTTP 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
    ------------------------------



  • 3.  RE: Uploading firmware failed using ansible

    Posted May 10, 2022 10:59 PM

    Hi,

    The current firmware is 10.07.x.

    1. I guess the latest, just downloaded the most recent aoscx.

    2. This is the log from the HTTP Server (IIS)

    10.11.12.13, -, 5/11/2022, 10:50:59, W3SVC1, FTP, 172.x.x.x, 156, 116, 1383, 404, 50, GET, /ArubaOS-CX_6400-6300_10_09_1010.swi, -,
    10.11.12.13, -, 5/11/2022, 10:52:31, W3SVC1, FTP, 172.x.x.x, 0, 116, 1383, 404, 50, GET, /ArubaOS-CX_6400-6300_10_09_1010.swi, -,

    3. no firewall in between.


    I'm also having issue uploading firmware coming from local file. I just follow the example on github but it fails. Can you advise on this as well? Thank you.


    Regards.

    Melchor



    ------------------------------
    Melchor Mangrobang
    ------------------------------



  • 4.  RE: Uploading firmware failed using ansible

    MVP GURU
    Posted May 21, 2022 09:42 AM
    Do you have check switch log ?

    i think, need to open an issue on github aoscx ansible repo

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