Open ChrisLynchHPE opened 1 year ago
I found and have resolved the issue. It was a logic validation issue. Here is what the experience will look like:
[PS] C:\Users\user> Get-OVServerProfile -name prf1
Name Status Compliance Template Server Hardware Server Hardware Type Enclosure Group Affinity
---- ------ ---------- -------- --------------- -------------------- --------------- --------
prf1 Warning NotCompliant spt1 172.18.31.1 DL380 Gen10
[PS] C:\Users\user> Get-OVServerProfile -name prf1 | Update-OVServerProfile -stage
Confirm
Are you sure you want to perform this action?
Performing the operation "Update Server Profile configuration. WARNING: Depending on this action, there might be a
brief outage." on target "prf1".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
Appliance Name Owner Created Duration TaskState PercentComplete
--------- ---- ----- ------- -------- --------- ---------------
OV5.doctors-lab.local Update from template Administrator 11/8/2023 5:40:59 PM 00:00:01 Completed 100
[PS] C:\Users\user> Get-OVServerProfile -name prf1
Name Status Compliance Template Server Hardware Server Hardware Type Enclosure Group Affinity
---- ------ ---------- -------- --------------- -------------------- --------------- --------
prf1 Warning PendingCompliance spt1 172.18.31.1 DL380 Gen10
was this not updated in the 8.30 module download ? I grabbed it again today, and still getting the same error as before.
$stage = Get-OVServerProfile -Name $SP | Update-OVServerProfile -stage
$stage.taskErrors
data : details : errorCode : ServerNotOffWithCauseForNoServerChange errorSource : message : The requested changes cannot be applied because {"name":"redacted, bay 1", "uri":"/rest/server-hardware/redacted"} is powered on and the changes made to the following sections can only be applied when the power is off:
This was resolved in the recently released 8.60, 9.00 and 9.10 PowerShell libraries.
Discussed in https://github.com/HewlettPackard/POSH-HPEOneView/discussions/661