Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-OVMigratableServer Should Capture Server Profile State #639

Open
jacobhopkins117 opened this issue Apr 26, 2023 · 1 comment
Open

Get-OVMigratableServer Should Capture Server Profile State #639

jacobhopkins117 opened this issue Apr 26, 2023 · 1 comment
Assignees
Labels
8.00 Impacts HPE OneView 8.00 library NeedMoreInformation Server Hardware

Comments

@jacobhopkins117
Copy link

Expected Behavior

Get-OVMigratableServer should capture/print Server Profile state. It currently only captures Server Hardware state. This will cause issues if one Server Profile in the object is not in a ProfileApplied, Monitored, NoProfileApplied state. This makes using the input object with Invoke-OVMigrateServer difficult to use.

A nice-to-have would also include checking for iLO version minimums for 8.0, or at least printing the versions in the table/object.
image

Actual Behavior

image

Steps to reproduce

Any Server Profile that does not have a ProfileApplied, Monitored, NoProfileApplied state will stop the migration and kill the Invoke-OVMigrateServer process.

Version Information

HPE OneView PowerShell Library Version: 8.0.3439.1646
HPE OneView Appliance Version: 8.00.00.470555.00
Output from $PSVersionTable on your Windows Host:

Name                           Value
----                           -----
PSVersion                      7.3.3
PSEdition                      Core
GitCommitId                    7.3.3
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
@ChrisLynchHPE
Copy link
Member

This isn't really an issue with the Cmdlet. The Cmdlet is behaving as designed. As there are many different validation errors to be handled, I leave it up to the target OV appliance to reject the request if there is a validation error. Yes, the Cmdlet will generate a terminating error upon receiving an HTTP 400 error (which indicates a client request error). You can handle this by catching the exception in a Try{} Catch{} block.

@ChrisLynchHPE ChrisLynchHPE self-assigned this May 16, 2023
@ChrisLynchHPE ChrisLynchHPE added Server Hardware NeedMoreInformation 8.00 Impacts HPE OneView 8.00 library and removed Bug labels May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.00 Impacts HPE OneView 8.00 library NeedMoreInformation Server Hardware
Projects
None yet
Development

No branches or pull requests

2 participants