HewlettPackard / POSH-HPEOneView

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

Reset-OVEnclosureDevice throws error "The InputObject is not a supported resource to set the Enclosure Name" #636

Closed PeterM-vLabs closed 1 year ago

PeterM-vLabs commented 1 year ago

Expected Behavior

Specified enclosure device should efuse as requested.

Actual Behavior

Error thrown "The InputObject is not a supported resource to set the Enclosure Name."

Steps to reproduce

Run "Get-OVEnclosure -name enclosure1 | Reset-OVEnclosureDevice -Component Device -DeviceID 8 -Efuse -Confirm:$false"


PS C:\scripts> Get-OVEnclosure -name "MXQ71306P8" | Reset-OVEnclosureDevice -Component Device -DeviceID 7 -Efuse -Confir
m:$false -verbose
VERBOSE: [Reset-OVEnclosureDevice] Redacting users Password from Verbose Output
VERBOSE: [Reset-OVEnclosureDevice] Bound PS Parameters:
Name                           Value

----                           -----

Confirm                        False

DeviceID                       7

Component                      Device

Verbose                        True

Efuse                          True

VERBOSE: [RESET-OVENCLOSUREDEVICE] Called from: <ScriptBlock>
VERBOSE: [NEW-ERRORRECORD] Building ErrorRecord object
Reset-OVEnclosureDevice : The InputObject  is not a supported resource to set the Enclosure Name.  For C-Class, you
must use the Onboard Administrator to e-Fuse a supported resource.
At line:1 char:38
+ ... Q71306P8" | Reset-OVEnclosureDevice -Component Device -DeviceID 7 -Ef ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (InputObject:PSObject) [Reset-OVEnclosureDevice], InvalidOperationExcep
   tion
    + FullyQualifiedErrorId : InvalidArgumentValue,Reset-OVEnclosureDevice

### Version Information
HPE OneView PowerShell Library Version (`Get-HPOVVersion` or `$PSLibraryVersion`):
HPE OneView Appliance Version (`Get-HPOVVersion -ApplianceVer`):  
Output from `$PSVersionTable` on your Windows Host:

```PowerShell
# Output from $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.14409.1005
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14409.1005
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
danieldusentrieb commented 1 year ago

I can confirm this issue. Workaround with module version 6.10 helped in my case.

ChrisLynchHPE commented 1 year ago

This was fixed in the 8.00.3396.2206 and newer release. What version of the PowerShell library are you using?

PeterM-vLabs commented 1 year ago

Yes, I downloaded the fixed version as soon as I saw it available. All good here. Thanks.

From: Chris Lynch @. Sent: Tuesday, May 16, 2023 1:40 PM To: HewlettPackard/POSH-HPEOneView @.> Cc: MacGougan, Peter (HPE vLabs) @.>; Author @.> Subject: Re: [HewlettPackard/POSH-HPEOneView] Reset-OVEnclosureDevice throws error "The InputObject is not a supported resource to set the Enclosure Name" (Issue #636)

This was fixed in the 8.00.3396.2206https://www.powershellgallery.com/packages/HPEOneView.800/ and newer release. What version of the PowerShell library are you using?

— Reply to this email directly, view it on GitHubhttps://github.com/HewlettPackard/POSH-HPEOneView/issues/636#issuecomment-1550098713, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AP7H7ZCA7DO6BYVYOEIO6BTXGO3VHANCNFSM6AAAAAAUYERCVU. You are receiving this because you authored the thread.Message ID: @.***>

ChrisLynchHPE commented 1 year ago

Ah good. Closing then.