Skip to content

Update-OVServerFirmware error "Server power state must be off" with firmware install mode "FirmwareOnly" #702

Description

@mstreibe

When attempting to update server firmware with the Update-OVServerFirmware cmdlet and install mode FirmwareOnly, it throws an error about the server not being powered off:

PS C:\Program Files\PowerShell\7> $Server | Update-OVServerFirmware -Baseline $Baseline -FirmwareInstallationPolicy LowerThanBaseline -FirmwareInstallMode FirmwareOnly -PreviewOnly
Update-OVServerFirmware: The provided server resource <ilo-name> is not powered off. Server power state must be off before attempting to install an offline firmware bundle.

According to the Rest API documentation, "FirmwareOnly" is an online update method. The offline method would be "FirmwareOnlyOfflineMode". When using "FirmwareOnlyOfflineMode", the error is not thrown.

This seems to result from HPEOneView1000.psm1, line 50753:

if ($InputObject.powerState -ne "Off" -and 'FirmwareOnly', 'FirmwareOffline' -contains $FirmwareInstallMode)

I think this should be

if ($InputObject.powerState -ne "Off" -and 'FirmwareOnlyOfflineMode', 'FirmwareOffline' -contains $FirmwareInstallMode)

This leads to subsequent failures because the firmware update is triggered while the server has the wrong power state.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions