-
Notifications
You must be signed in to change notification settings - Fork 52
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
Enable-OVComposerIlo Parameter Validation Failure #622
Comments
While the variable isn't null, you are not providing the correct variable in your Cmdlet call. You are passing |
Sorry, I tried to write the issue in a short form and mixed up some lines. |
The Are you by chance attempting to this with real hardware? |
Yes, I have real hardware. I followed the example to be sure:
|
Can you do this: $ComposerAppliance | Measure-Object
$ComposerAppliance | ConvertTo-Json -Depth 99 Then reply with the results? I'm suspecting that something null is being returned from |
|
The argument is null, empty, or an element of the argument collection contains a null value. Supply a collection that does not contain any null values |
The reference to null in the message does not indicate the property values. There is a specific object in the variable that is null for some reason. For instance, I was expecting a null array element in the JSON conversion, like this: [
{
"Name": "0MSYN02, appliance bay 1",
"ID": "CNX14000RJ",
"Model": "SynergyComposer2",
"Role": 0,
"Version": {
"BuildVersion": null,
"MajorVersion": "6",
"MinorVersion": 60,
"PatchVersion": 2,
"PrereleaseVersion": "0467825"
},
"Enclosure": {
"DATA_REMOVED_FOR_SIMPLICATION"
},
"BayNumber": 1,
"IsExtAccessible": true,
"IloConfig": {
"Supported": true,
"Username": "",
"Password": null,
"Hostname": "",
"IPv4Config": null,
"IPv6Config": null
},
"Uri": "/rest/hw-appliances/CNX14000RJ",
"ApplianceConnection": {
"Name": "0msyn02.subd01.customer.com",
"ConnectionId": 2
}
},
// This is the empty or null element that I was expecting to see.
{}
] Let me look into this further, but I'm struggling to figure out why this is happening. |
The issue isn't within the [Array]$ComposerAppliance.Count Now, do this, and I would expect ($ComposerAppliance. Where({ $_ -ne $null })).Count You can use the |
…ling unassigned connections. - [#622] Fixed issue with Get-OVComposerIloStatus returning a null value to the pipeline. - Added Get-OVApplianceStatus Cmdlet to get appliance resource configuration (memory, CPU and LAN) and status.
…ling unassigned connections. - [#622] Fixed issue with Get-OVComposerIloStatus returning a null value to the pipeline. - Added Get-OVApplianceStatus Cmdlet to get appliance resource configuration (memory, CPU and LAN) and status. - [#623] Added Set-OVRack Cmdlet to edit existing rack resources. - [#625] Refactored New-OVDataCenter to handle mandatory parameters.
…ervice. - [#621] Fixed regression with New-OVServerProfileConnection and handling unassigned connections. - [#622] Fixed issue with Get-OVComposerIloStatus returning a null value to the pipeline. - Added Get-OVApplianceStatus Cmdlet to get appliance resource configuration (memory, CPU and LAN) and status. - Fixed Update-OVServerFirmware handling of system ROM component version not converting to Symentic version. Signed-off-by: ChrisJLynch <chris.lynch@outlook.com>
…ling unassigned connections. >> - [#622] Fixed issue with Get-OVComposerIloStatus returning a null value to the pipeline. >> - [#625] Refactored New-OVDataCenter to handle mandatory parameters. >> - [#630] Fixed regression in Get-OVEnclosureGroup and Reset-OVEnclosureDevice mishandling Synergy frame resources. >> - [#631] Fixed Update-OVServerFirmware handling of system ROM component version not converting to Symentic version. >> - [#631] Fixed returning baseline preview to pipeline without specifying the -PreviewOnly parameter. Baseline preview will be displayed to console as non-capturable text. >> - Added Get-OVApplianceStatus Cmdlet to get appliance resource configuration (memory, CPU and LAN) and status. Signed-off-by: Chris Lynch <chris.lynch@hpe.com>
This issue is resolved in both the 7.20 and 8.00 libraries: I will be posting updates to the 6.60, 7.00 and 7.10 libraries later in the week. |
…ervice. - [#621] Fixed regression with New-OVServerProfileConnection and handling unassigned connections. - [#622] Fixed issue with Get-OVComposerIloStatus returning a null value to the pipeline. - [#623] Added Set-OVRack to modify the properties of a created rack resource. - [#625] Refactored New-OVDataCenter to handle mandatory parameters. - [#630] Fixed regression in Get-OVEnclosureGroup and Reset-OVEnclosureDevice mishandling Synergy frame resources. - Added Get-OVApplianceStatus Cmdlet to get appliance resource configuration (memory, CPU and LAN) and status. Signed-off-by: Chris Lynch <chris.lynch@hpe.com>
…ling unassigned connections. - [#622] Fixed issue with Get-OVComposerIloStatus returning a null value to the pipeline. - [#625] Refactored New-OVDataCenter to handle mandatory parameters. - [#630] Fixed regression in Get-OVEnclosureGroup and Reset-OVEnclosureDevice mishandling Synergy frame resources. - [#631] Fixed Update-OVServerFirmware handling of system ROM component version not converting to Symentic version. - [#631] Fixed returning baseline preview to pipeline without specifying the -PreviewOnly parameter. Baseline preview will be displayed to console as non-capturable text. - Added Get-OVApplianceStatus Cmdlet to get appliance resource configuration (memory, CPU and LAN) and status. Signed-off-by: Chris Lynch <chris.lynch@hpe.com>
…dling unassigned connections. -- [#622] Fixed issue with Get-OVComposerIloStatus returning a null value to the pipeline. -- Added Get-OVApplianceStatus Cmdlet to get appliance resource configuration (memory, CPU and LAN) and status. -- [#625] Refactored New-OVDataCenter to handle mandatory parameters. -- [#630] Fixed regression in Get-OVEnclosureGroup and Reset-OVEnclosureDevice mishandling Synergy frame resources. -- [#633] Fixed mishandling of network sets when assigned to a profile connection and processing with ConvertTo-OVPowerShellScript. -- [#634] Fixed missing -IloHostname parameter in ConvertTo-OVPowerShellScript when processing either a server profile template or server profile object. -- [#637] Fixed generating user role output in ConvertTo-OVPowerShellScript. -- [#638] Fixed Set-OVNetworkSet inadvertantly trying to change the network set type to REGULAR. -- Added Update-OVRemoteSupportEntitlement Cmdlet to refresh remote support entitlement data with the backend.
$InputObject is [ValidateNotNullorEmpty()], but this does not allow an unconfigured composer ilo object as Parameter:
Object is not empty:
A quick hack (remove parameter validation from module) makes it work.
The text was updated successfully, but these errors were encountered: