HewlettPackard / python-ilorest-library

Python library for interacting with devices which support a Redfish Service
Apache License 2.0
181 stars 89 forks source link

Upload firmware to iLO repository does not work #118

Closed nathanlin24 closed 2 years ago

nathanlin24 commented 2 years ago

Hello @rajeevkallur , I'm in need for some help using the examples/Redfish/upload_firmware_ilo_repository.py. I could not get the firmware to upload. The script takes a very long time to complete. It returns the Upload Complete message, no error message, but the firmware never show up in iLO repository.

This is observed on an ProLiant e910t system with iLO version 2.30. I have tested with ilorest-library version 3.2.1, and then fall back to version 3.1.1. Neither seems to be working. Wondering if you could help troubleshooting.

I'm running from a Windows host. Here is a snippet of the input provided to the script:

    SYSTEM_URL = "https://10.23.0.104"
    LOGIN_ACCOUNT = "administrator"
    LOGIN_PASSWORD = "password"

    # The path to the firmware file to upload
    FIRMWARE_PATH = 'C:\\Users\\linna\\git\\EL8000t_firmware_downgrade\\Firmware_update_batch\\ilo5_244.bin'
    # Upload the firmware file to the iLO Repository
    UPDATE_REPO = True
    # Update the system with the firmware file
    UPDATE_TARGET = False

    # flag to force disable resource directory. Resource directory and associated operations are
    # intended for HPE servers.
    DISABLE_RESOURCE_DIR = True

On a separate note, I've also tried examples/Redfish/get_ilo_ip.py, and that seems to be working.

nathanlin24 commented 2 years ago

Hey, just a quick update. It eventually worked. It was just very slow for iLO to start displaying the firmware upload progress in the web GUI. Going to close this ticket.