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