HPE OneView
1752592 Members
3740 Online
108788 Solutions
New Discussion юеВ

Save-HPOVServerProfile applies baseline with force even that force is set to $false

 
jdkarpin
Occasional Contributor

Save-HPOVServerProfile applies baseline with force even that force is set to $false

Hi,
I'm usign HPOneView 4.20.2290.1501.
Below code upgrades firmware on blade with force, while flag is set to false.
Also Wait-HPOVTaskComplete returns $null first, then completes correctly.
Any workaround for this?

$serverProfile = Send-HPOVRequest -Uri $server.serverProfileUri
$firmwareBaseline = Get-HPOVBaseline | Where {$_.ISOFileName -eq $SPP.filename}
$ServerProfile.firmware.manageFirmware = $true
$ServerProfile.firmware.forceInstallFirmware = $false
$ServerProfile.firmware.firmwareBaselineUri = $firmwareBaseline.Uri
$ServerProfile.firmware.firmwareInstallType = "FirmwareOnlyOfflineMode"
$Task = Save-HPOVServerProfile -InputObject $ServerProfile -Async
do {
       #Wait task returned $null in middle, since update got completed, but not firmware upgrade
       $ret = $Task | Wait-HPOVTaskComplete
} while ($ret -eq $null)

 

2 REPLIES 2
ChrisLynch
HPE Pro

Re: Save-HPOVServerProfile applies baseline with force even that force is set to $false

All Save-HPOVServerProfile does is issue the PUT API call to save the resource.  It does not modify the provided object.  I would ask that you go start a new thread on the project Issue tracker, and follow the instructions in the submit new bug page.


I am an HPE employee

Accept or Kudo

AmRa
HPE Pro

Re: Save-HPOVServerProfile applies baseline with force even that force is set to $false

Yes, I agreed with Chris reply and request you to start a new thread on the project Issue tracker.

I am an HPE Employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

Accept or Kudo