HewlettPackard / POSH-HPEOneView

PowerShell language bindings library for HPE OneView.
http://hewlettpackard.github.io/POSH-HPEOneView/
125 stars 52 forks source link

Show-OVFirmwareReport shows incorrect ilo version (baseline version) #667

Open curiousbytes opened 11 months ago

curiousbytes commented 11 months ago

Expected Behavior

When running show-ovfirmwarereport with the associated EG baseline the output shows version 1.51 for ilo. It seems it compares with iLO6 since 1.51 (is the version relegates to iLO5 fw) According to SSP 2023.10.1 contents reports the version should be 2.96

Actual Behavior

PS C:\> Get-OVServer -ServerName Server01 | Show-OVFirmwareReport -Baseline $BaseLine

    Server: Server01 

Component                                          ComponentType Installed              BaselineVersion BaselineName
---------                                          ------------- ---------              --------------- ------------
300GB 12G SAS HDD                                  Firmware      HPD5                   HPD5            HPE Synergy Service Pack
.
.
iLO 5                                              Firmware      2.99 Nov 15 2023       1.51            HPE Synergy Service Pack

Steps to reproduce

PS C:\> Get-OVBaseline
[2312081641_HPEOV_transcript.log](https://github.com/HewlettPackard/POSH-HPEOneView/files/13617285/2312081641_HPEOV_transcript.log)

Name        : HPE Synergy Service Pack
State       : Created
Status      : OK
Version     : SY-2023.10.01
ISOFileName : Synergy_Service_Pack_SSP_2023_10_01_Z7550-97698.iso
XMLKeyName  : bp006299
BundleSize  : 6.86GB
Locations   : {Internal}

PS C:\> $BaseLine = Get-OVBaseline -SppName 'HPE Synergy Service Pack'

PS C:\> Get-OVServer -ServerName Server01 | Show-OVFirmwareReport -Baseline $BaseLine

Version Information

PS C:\> Get-OVVersion

10.40.52.100                        LibraryVersion Path
------------                        -------------- ----
ApplianceVersion: 6.60.05.482734.00 6.60.3332.3428 
C:\Users\Administrator\Documents\WindowsPowerShell\Modules\HPEOneView.660\6.60.3332.3428

Output from $PSVersionTable

PS C:> $PSVersionTable

Name Value


PSVersion 5.1.17763.4974 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.17763.4974 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

ChrisLynchHPE commented 1 month ago

I am not able to reproduce this issue. There is a bug here with mishandling the Firmware Baseline object. But I cannot reproduce the specific issue you are reporting.

The bug is that the internal function that processes server firmware treats the Baseline as a String, and then looks up a baseline for the name HPE Synergy Service Pack. If multiple return, then the subsequent API call will fail and no server report is generated.