Search
François Donzé

HPE firmware updates: Part 2 – Interaction in operating modes

August 20, 2020

Updated: July 25, 2023

Introduction

In my first blog post regarding how to deal with HPE firmware upgrades, I discussed the main objects involved:

  • Firmware binary types
  • Smart Components (SC)
  • Update agents including Runtime Agents

In this article, I will explain the interaction between these objects when used in three different operating modes.

Firmware update operating modes

The different firmware binary types, Smart Components (SC), the iLO Repository, Installation Queue and Runtime Agents allow for several operating modes on different network topologies. The presence (or lack thereof) of an operating system (OS), increases the complexity of this multi-dimensional matrix. The operating mode classifications presented below are based on the presence (or absence) of an operating system in the server and the server’s connectivity to the management network. The operating system may be one of the following types:

  • Standard production OS (Red Hat, Suse, Windows, ESX, etc.)
  • Deployment or maintenance helper (WinPE, Linux LiveCD, SPP iso DvD)

Before covering these different operating modes, let me give you a quick recap of the objects you would find present in a typical HPE infrastructure ready to be updated.

As mentioned in the iLO 5 User Guide, “the iLO 5 Repository is a secure storage area in the nonvolatile flash memory embedded on the system board”. It can store all types of Smart Components (.rpm, .zip, .exe) as well as binary firmware (.bin, .signed.flash, etc.).

It also points out that “The iLO Installation Queue is an ordered list of components and commands that were added to the queue”. The elements present in this queue are processed one after the other and the actions performed on them depend on their type (.zip, .rpm, .bin, etc.) and their associated metadata.

Runtime Agents refers to the Integrated Smart Update Tools (iSUT) and the Smart Update Manager (SUM), two software utilities used in a standalone mode or embedded in other software like HPE OneView or the iLO Amplifier Pack. When used standalone in an in-band manner, iSUT and SUM communicate with the underlying iLO using the HPE iLO Channel Interface (CHIF) Driver.

c1

The typical HPE firmware update flow, regardless the operating mode, consists of three main steps:

  1. Upload Smart Components or binary files to the iLO Repository
  2. Add the SCs to the installation queue
  3. Call the appropriate update agent

NOTE: This article focuses on Smart Components and does not discuss the case of HPE binaries transparently bypassing steps 1 and 2 when the Update Firmware menu of the iLO GUI or the Redfish Simple Update action is used.

Operating mode 1: Operating system present and connected to the management network

Connecting an OS to the management network may not be a recognized best practice. However, several IT departments implement this network architecture and, from a didactic point of view, this mode is interesting as it helps explain the other modes.

This mode allows the entire update process to be managed from a remote node on the management network through the OS, the iLO 5, or both. Some companies use a deployment network to install and update operating systems and drivers. This deployment network can also be used to upload Smart Components to the iLO Repository via Runtime Agents and the CHIF driver.

c2

Smart Components can either be uploaded directly to the iLO Repository or first stored in the operating system before being processed by Runtime Agents. The first option has no limitation related to the type of SCs, since iLO 5 accepts all of them. On the contrary, if you choose the second option, make sure you provide the right SC type to the right OS: .rpm SCs to Linux, .zip SCs to VMware and.exe SCs to Windows. Firmware packages (.fwpkg) are OS independent and can be uploaded to each and every supported OS. Binary files (.bin, .signed.flash….) can only be uploaded to the iLO Repository as Runtime Agents don’t know how to process them.

Once SCs have been placed in the OS, Runtime Agents will install/unzip/execute them before uploading binary files with associated metadata to the iLO Repository (step 1) through the CHIF driver. Then, they will ask iLO to perform steps 2 and 3.

When SCs are directly uploaded to the iLO Repository, iLO can automatically chain steps 2 and 3, but only when the SC type is .exe or .fwpkg. iLO is smart enough to extract binary firmware files and associated metadata from .exe and .fwpkg SCs before calling the appropriate update agent. This is not true for .rpm and .zip SCs, as explained further down.

If you manually extract a binary file from its SC and upload it to the iLO Repository without any associated meta data, iLO 5 is able to associate an appropriate update agent. The following picture shows the properties of the ilo5_216.bin file extracted from its .fwpkg SC and uploaded to the iLO Repository. iLO 5 automatically detected that this file can be processed by the iLO itself.

c3

Note that this association may be different from what is present in the payload.json of the original SC. In this particular example, the associated metadata file mentions RuntimeAgents as the only update agent.

c4

If ILO 5 is autonomous regarding .exe, .bin and .fwpkg Smart Components, it needs external help to process .rpm and .zip SCs, as it lacks tools like unzip and rpm. After adding these SC types in the Installation Queue, iLO “raises a flag”, asking for help from Runtime Agents. If started and properly configured, Runtime Agents take control of the update process. They copy the entire SC into a place within the OS labeled “staging area” and extract the binary files and metadata using OS-provided tools before continuing the update process prescribed by the metadata.

If Runtime Agents are not running, or if they are configured in a manual mode requiring an action from a human being (i.e. iSUT OnDemand mode), the iLO flag remains raised forever, blocking other SCs in the Queue.

The following screenshot shows a system at RBSU clearly telling it that no OS is booted. Hence, there can’t be any Runtime Agent running. An .rpm SC has been added to the Queue and iLO reports that the update will start “Immediately after the associated updater checks”. The term “updater check” refers to a Runtime Agent processing the flag raised by the iLO.

To unlock this situation, you need to start up an OS and a Runtime Agent or remove this task from the Installation Queue.

c5

Firmware Packages (.fwpkg) can be processed by both Runtime Agents and iLO. If you upload an .fwpkg directly in the iLO Repository and add it to the Installation Queue, iLO is able to extract the binary and metadata files and trigger the next step. This next step would be a call to the appropriate update agent that is mentioned in the associated metadata file.

As an example, OS independent firmware package U32_2.32_03_09_2020.fwpkg contains the following metadata: UpdatableBy: Bmc and UefiFlashable: True.

c6

If this SC is uploaded first in the operating system and submitted to a Runtime Agent, it will extract the binary file and hand it over to the iLO (Bmc) via the CHIF driver. Then, iLO will ask UEFI to flash it during the next reboot.

If you first upload it to the iLO Repository and add it to the Installation Queue, iLO will directly ask UEFI to flash it during the next reboot.

As second example, I uploaded the OS independent firmware package ilo5_216.fwpkg to the iLO Repository and then added it to the Installation Queue. iLO was able to read and interpret the payload.json file (see next screenshot), specifying that a Runtime Agent has to be called to continue the update process despite the DirectFlashOk: True . Once notified, the Runtime Agent copied the SC into a staging area within the OS, analyzed the metadata and asked iLO to flash the binary.

c7

Operating mode 2: Operating system present but not connected to the management network

In this mode, an operating system is booted but has no connectivity to the management network. Hence, Smart Components cannot be uploaded first into the OS. If the OS has connectivity to a deployment network, we must assume that this network is not used to upload SCs in the OS. Otherwise, we would have fallen back to the previous operating mode in which SCs can be uploaded to the OS.

c8

Operating mode 1 and 2 are very similar. Here, the only difference from the previous operating mode is that SCs cannot be uploaded first to the OS. All the SCs to be processed are directly uploaded to the iLO Repository from the management network.

All types of Smart Components can be processed with no exception: .zip and .rpm SCs will wait for a Runtime Agent to process them as soon as they are added in the Installation Queue. Other SCs (.exe, .bin and .fwpkg) will be processed by iLO, eventually calling a Runtime Agent if specified in the payload.json metadata file, once they have been added to the Installation Queue.

Note: With the implementation of the Platform Level Data Model for Firmware Update PLDM for FWUPD in both iLO firmware and external supplier devices, the firmware update process is simplified as it does not require any run time agents anymore.

Operating mode 3: No operating system present

This is typically the mode used when servers have just arrived from the factory and need a firmware update prior to the installation of the production operating system. This is often the case within companies who are not willing to use a helper OS like WinPE, Linux CD or an SPP .iso DvD. Use of a helper OS with an embedded Runtime Agent would allow you to fall back to the previous operating mode.

c9

This operating mode introduces several limitations related to firmware updates, which are easy to identify using the mechanisms explained in previous modes. The first limitation concerns Linux and VMware OS dependent Smart Components (.rpm and .zip) containing firmware updates. These cannot be processed at all since they always require the help of a Runtime Agent as soon as they are added to the Installation Queue.

The second limitation targets .fwpkg and .exe Smart Components with RuntimeAgent as the only element in the UpdatableBy array. This is the case for SCs like the cp040152.exe SC presented earlier in this document or cp038867.exe containing Intel Persistent Memory Optane firmware.

.fwpkg and .exe SCs with UEFI or BMC values that are part of the UpdatableBy array are not affected by this limitation. SPSGen10_04.01.04.381.fwpkg and cp043490.exe are examples updatable by UEFI.

Binary files .bin, signed.bin, signed.flash, signed.vme (CPLD), .hex (PIC) have no limitation in this operating mode and can be processed seamlessly.

Summary

ILO 5 provides a very powerful and flexible firmware update architecture with its Repository, Installation Queue and associated Runtime Agents. However, due to the many objects involved, one must have a clear understanding of the different update paths one can use based on the different operating modes in order to build an efficient firmware update strategy.

If you remember nothing else, just remember that Smart Components requiring the presence of a Runtime Agents will stall the entire update process if none are found. This requirement can happen when OS dependent components (.zip, .rpm) are added to the iLO Installation Queue or when RuntimeAgents are the only update agent listed in the SC metadata file, no matter the type of SC (.fwpkg, .exe…). Don’t forget to check back on the HPE DEV blog for more blog posts related to this subject.

Related

Nathan Lin

Accessing iLO Redfish APIs and HPE OneView APIs on Ansible AWX

Feb 9, 2021
HPE Global Sales Engineering (GSE) team

Automate boot from SAN target configurations using Redfish

Jun 1, 2023
François Donzé

Benefits of the Platform Level Data Model for Firmware Update Standard

Jun 7, 2022
François Donzé

Build your own iLO Redfish simulator

Jun 11, 2021
François Donzé

CHIF driver not found

Jun 22, 2021
Gokul Sreeramaiah

Configuring threads for Optimal performance in HPE PowerShell Cmdlets

Dec 3, 2018
HPE DEV staff

COVID-19 limits accessibility – Free offer for HPE iLO Advanced opens it up

Apr 23, 2020
Matthew Kocurek - iLOREST Developer

Creating a Python version that enforces FIPS

Feb 15, 2018

HPE Developer Newsletter

Stay in the loop.

Sign up for the HPE Developer Newsletter or visit the Newsletter Archive to see past content.

By clicking on “Subscribe Now”, I agree to HPE sending me personalized email communication about HPE and select HPE-Partner products, services, offers and events. I understand that my email address will be used in accordance with HPE Privacy Statement. You may unsubscribe from receiving HPE and HPE-Partner news and offers at any time by clicking on the Unsubscribe button at the bottom of the newsletter.

For more information on how HPE manages, uses, and protects your personal data please refer to HPE Privacy Statement.