HewlettPackard / POSH-HPEOneView

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

Uploading hotfix with Add-OVBaseline results in unknown file size. #520

Closed ChrisLynchHPE closed 3 years ago

ChrisLynchHPE commented 3 years ago

Expected Behavior

Uploading a hotfix should complete successfully, and then the appliance should report the correct file size

$hotfix = Get-ChildItem C:\dir1\Gen10-Hotfix\cp044597.exe
$compsigs = Get-ChildItem C:\dir1\Gen10-Hotfix\cp044*.compsig
Add-OVBaseline -File $hotfix -CompSigFile $compsigs

# Output here with the completed task

PS C:\> Get-OVBaseline
Name        : Online ROM Flash Component for Windows x64 - HPE Integrated Lights-Out 5
State       : Created
Status      : OK
Version     : 2.18
ISOFileName : Not_Applicable
XMLKeyName  : Not_Applicable
BundleSize  : 32.67MB
Locations   : {Internal}

Actual Behavior

Uploading a hotfix is successful. But the reported file size is 0 bytes, and the UI shows "unknown size".

$hotfix = Get-ChildItem C:\dir1\Gen10-Hotfix\cp044597.exe
$compsigs = Get-ChildItem C:\dir1\Gen10-Hotfix\cp044*.compsig
Add-OVBaseline -File $hotfix -CompSigFile $compsigs

# Output here with the completed task

PS C:\> Get-OVBaseline
Name        : Online ROM Flash Component for Windows x64 - HPE Integrated Lights-Out 5
State       : Created
Status      : OK
Version     : 2.18
ISOFileName : Not_Applicable
XMLKeyName  : Not_Applicable
BundleSize  : 0.0MB
Locations   : {Internal}

### Version Information
HPE OneView PowerShell Library Version (`Get-HPOVVersion` or `$PSLibraryVersion`):

All library versions from 5.20 and newer.

Output from `$PSVersionTable` on your Windows Host:

```PowerShell
PS C:\> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.0.3
PSEdition                      Core
GitCommitId                    7.0.3
OS                             Microsoft Windows 10.0.19041
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
ChrisLynchHPE commented 3 years ago

This is now addressed in the following releases:

Closing.