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

Convert to PowerShell script for SPT with BIOS setting - Error in $BiosConsistency #647

Open
DungKHoang opened this issue Sep 10, 2023 · 1 comment
Assignees
Labels
8.00 Impacts HPE OneView 8.00 library 8.30 Impacts HPE OneView 8.30 library Bug Impact - Low

Comments

@DungKHoang
Copy link
Collaborator

Expected Behavior

I have a SPT with BIOS Settings and ConsistencyCheck set to ' Exact'
The PS script generated by Convertto-OVPowerShellScript for SPT with BIOS settings should the value of $biosConsistency to ' Exact'
$biosConsistency = "Exact"

Actual Behavior

$biosConsistency = ""

Steps to reproduce

# -------------- Attributes for ServerProfileTemplate "BIOS - Cohesity SPT – Gen10"
$name                               = "BIOS - Cohesity SPT – Gen10"
$description                        = "Template for Cohesity Server - Gen 10 with BIOS settings"
$shtName                            = "DL380 Gen10"
$sht                                = Get-OVServerHardwareType -Name $shtName
# -------------- Connections section
# -------------- Attributes for BIOS settings
$biosSettings                       = @(
	@{id = 'ProcX2Apic'; value = 'Enabled'}
	)
$biosConsistency                    = ""
New-OVServerProfileTemplate -Name $name -Description $description -ServerHardwareType $sht -ManageConnections $False -Bios -BiosSettings $biosSettings -BiosConsistencyChecking $biosConsistency 

Version Information

HPE OneView PowerShell Library Version (Get-HPOVVersion or $PSLibraryVersion): 8.0.3528.2178
HPE OneView Appliance Version (Get-HPOVVersion -ApplianceVer): 8.40.00.480384.00
Output from $PSVersionTable on your Windows Host: PS 7.3.5

@DungKHoang DungKHoang added the Bug label Sep 10, 2023
@ChrisLynchHPE
Copy link
Member

Ah, I found the issue. Looks like the incorrect variable name was used. Will be fixed.

@ChrisLynchHPE ChrisLynchHPE self-assigned this Sep 21, 2023
@ChrisLynchHPE ChrisLynchHPE added Impact - Low 8.00 Impacts HPE OneView 8.00 library 8.30 Impacts HPE OneView 8.30 library labels Sep 21, 2023
ChrisLynchHPE added a commit that referenced this issue Sep 22, 2023
…ency policy when parsing a server profile template.

-- Added Update-OVRemoteSupportEntitlement Cmdlet to refresh remote support entitlement data with the backend.
-- Updated core library to handle web proxy in a more efficient method.
-- Updated core library to use TLS1.2 only.

Signed-off-by: Chris Lynch <chris.lynch@hpe.com>
ChrisLynchHPE added a commit that referenced this issue Oct 11, 2023
…ncy policy when parsing a server profile template.

- [#642] Fixed incorrect use of internal variable within Update-OVServerFirmware.
- [#654] Fixed ConvertTo-OVPowerShellScript mishandling Tunnel uplink set resources.
- [#656] Fixed parameter evaluation bug with Update-OVServerProfile and the -Stage parameter.
- Added Update-OVRemoteSupportEntitlement Cmdlet to refresh remote support entitlement data with the backend.
- Added MegaRAID support to New-OVServerProfileLogicalDiskController.
- Added Get-OVServerHardwareAvailableController to return discovered disk drive controllers for volume servers (DL, ML, Apollo) and drives.  New classes added HPEOneView.Servers.StorageController and HPEOneView.Servers.PhysicalDrive.
- Added the ability to specify controller returned from Get-OVServerHardwareAvailableController.
- Added the ability to specify specific drives in New-OVServerProfileLogicalDisk after invoking Get-OVServerHardwareAvailableController to get list of controllers and available drives that are part of the HPEOneView.Servers.StorageController.Drives property.
- Updated core library to handle web proxy in a more efficient method.
- Updated core library to use TLS1.2 only.

Signed-off-by: Chris Lynch <chris.lynch@hpe.com>
ChrisLynchHPE added a commit that referenced this issue Oct 14, 2023
- Support for PowerShell 5 and 6 is now deprecated and is no longer supported.
- [#647] Fixed ConvertTo-OVPowerShellScript mishandling BIOS consistency policy when parsing a server profile template.
- [#642] Fixed incorrect use of internal variable within Update-OVServerFirmware.
- [#654] Fixed ConvertTo-OVPowerShellScript mishandling Tunnel uplink set resources.
- [#656] Fixed parameter evaluation bug with Update-OVServerProfile and the -Stage parameter.
- Added Cmdlets to manage HPE GreenLake for Compute Ops Managment - OneView Edition service configuration and status from the appliance.
- Added workaround to supporting Gen10 Plus V2 platforms and supporting firmware management.
- Added Update-OVRemoteSupportEntitlement Cmdlet to refresh remote support entitlement data with the backend.
- Updated Get-OVRemoteSupportSetting and Get-OVRemoteSupportEntitlementStatus to support interconnect resources.
- Added HPE GreenLake for Compute Ops Management - OneView Edition Cmdlets;
  Get-OVComputeOpsManagement, Set-OVComputeOpsManagement, Connect-OVComputeOpsManagement,
  Enable-OVComputeOpsManagement, Disable-OVComputeOpsManagement
- Added Alletra 9000 FC-NVMe support to Add-OVStorageSystem.
- Added MegaRAID support to New-OVServerProfileLogicalDiskController.
- Added Get-OVServerHardwareAvailableController to return discovered disk drive controllers for volume servers (DL, ML, Apollo) and drives.  New classes added HPEOneView.Servers.StorageController and HPEOneView.Servers.PhysicalDrive.
- Added the ability to specify controller returned from Get-OVServerHardwareAvailableController.
- Added the ability to specify specific drives in New-OVServerProfileLogicalDisk after invoking Get-OVServerHardwareAvailableController to get list of controllers and available drives that are part of the HPEOneView.Servers.StorageController.Drives property.
- Updated core library to handle web proxy in a more efficient method.
- Updated core library to use TLS1.2 only.

Signed-off-by: Chris Lynch <chris.lynch@hpe.com>
ChrisLynchHPE added a commit that referenced this issue Oct 16, 2023
- Support for PowerShell 5 and 6 is now deprecated and is no longer supported.
- [#647] Fixed ConvertTo-OVPowerShellScript mishandling BIOS consistency policy when parsing a server profile template.
- [#642] Fixed incorrect use of internal variable within Update-OVServerFirmware.
- [#654] Fixed ConvertTo-OVPowerShellScript mishandling Tunnel uplink set resources.
- [#656] Fixed parameter evaluation bug with Update-OVServerProfile and the -Stage parameter.
- Added Cmdlets to manage HPE GreenLake for Compute Ops Managment - OneView Edition service configuration and status from the appliance.
- Added workaround to supporting Gen10 Plus V2 platforms and supporting firmware management.
- Added Update-OVRemoteSupportEntitlement Cmdlet to refresh remote support entitlement data with the backend.
- Updated Get-OVRemoteSupportSetting and Get-OVRemoteSupportEntitlementStatus to support interconnect resources.
- Added HPE GreenLake for Compute Ops Management - OneView Edition Cmdlets;
  Get-OVComputeOpsManagement, Set-OVComputeOpsManagement, Connect-OVComputeOpsManagement, Enable-OVComputeOpsManagement, Disable-OVComputeOpsManagement
- Added Alletra 9000 FC-NVMe support to Add-OVStorageSystem.
- Added MegaRAID support to New-OVServerProfileLogicalDiskController.
- Added Get-OVServerHardwareAvailableController to return discovered disk drive controllers for volume servers (DL, ML, Apollo) and drives.  New classes added HPEOneView.Servers.StorageController and HPEOneView.Servers.PhysicalDrive.
- Added the ability to specify controller returned from Get-OVServerHardwareAvailableController.
- Added the ability to specify specific drives in New-OVServerProfileLogicalDisk after invoking Get-OVServerHardwareAvailableController to get list of controllers and available drives that are part of the HPEOneView.Servers.StorageController.Drives property.
- Updated core library to handle web proxy in a more efficient method.
- Updated core library to use TLS1.2 only

Signed-off-by: Chris Lynch <chris.lynch@hpe.com>
ChrisLynchHPE added a commit that referenced this issue Sep 11, 2024
- Initial HPE OneView 8.60 library release.
- Support for PowerShell 5 and 6 is now deprecated and is no longer supported.
- [#647] Fixed ConvertTo-OVPowerShellScript mishandling BIOS consistency policy when parsing a server profile template.
- [#642] Fixed incorrect use of internal variable within Update-OVServerFirmware.
- [#654] Fixed ConvertTo-OVPowerShellScript mishandling Tunnel uplink set resources.
- [#656] Fixed parameter evaluation bug with Update-OVServerProfile and the -Stage parameter.
- Added Cmdlets to manage HPE GreenLake for Compute Ops Managment - OneView Edition service configuration and status from the appliance.
- Added workaround to supporting Gen10 Plus V2 platforms and supporting firmware management.
- Added Update-OVRemoteSupportEntitlement Cmdlet to refresh remote support entitlement data with the backend.
- Updated Get-OVRemoteSupportSetting and Get-OVRemoteSupportEntitlementStatus to support interconnect resources.
- Added HPE GreenLake for Compute Ops Management - OneView Edition Cmdlets; Get-OVComputeOpsManagement, Set-OVComputeOpsManagement, Connect-OVComputeOpsManagement, Enable-OVComputeOpsManagement, Disable-OVComputeOpsManagement
- Added Alletra 9000 FC-NVMe support to Add-OVStorageSystem.
- Added MegaRAID support to New-OVServerProfileLogicalDiskController.
- Added Get-OVServerHardwareAvailableController to return discovered disk drive controllers for volume servers (DL, ML, Apollo) and drives.  New classes added HPEOneView.Servers.StorageController and HPEOneView.Servers.PhysicalDrive.
- Added the ability to specify controller returned from Get-OVServerHardwareAvailableController.
- Added the ability to specify specific drives in New-OVServerProfileLogicalDisk after invoking Get-OVServerHardwareAvailableController to get list of controllers and available drives that are part of the HPEOneView.Servers.StorageController.Drives property.
- Updated core library to handle web proxy in a more efficient method.
- Updated core library to use TLS1.2 only.
- [#659] Enhanced Show-OVFirmwareReport to provide available baseline version.
- [#662] Resolved issue with Update-OVServerProfile not handling -Stage parameter correctly.
- Enhanced New-OVBackup to require passphrase to create backup file.
- Enhanced Send-OVRequest to handle appliance certificate validation errors correctly.
- Changed Get-OVApplianceUpdateSchedule to Get-OVFirmwareBundleUpdateSchedule.  Alias to original Cmdlet is available for backwards compatibility.  Please update your scripts.
- Changed Set-OVApplianceUpdateSchedule to Set-OVFirmwareBundleUpdateSchedule.  Alias to original Cmdlet is available for backwards compatibility.  Please update your scripts.
- Changed Get-OVApplianceUpdate to Get-OVFirmwareBundleUpdate.  Alias to original Cmdlet is available for backwards compatibility.  Please update your scripts.
- Changed HPEOneView.Appliance.ApplianceUpdate class to HPEOneView.Appliance.FirmwareBundleUpdate.
- Changed HPEOneView.Appliance.ApplianceUpdateSchedule class to HPEOneView.Appliance.FirmwareBundleUpdateSchedule.
- Removed -PreviewOnly switch parameter from Update-OVServerFirmware, as the API doesn't provide a compliance feature.
- Fixed an issue with Set-OVFirmwareBundleUpdateSchedule where the value for -Time was not properly handled when converting to UTC time.

Signed-off-by: Chris Lynch <chris.lynch@hpe.com>
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 8.30 Impacts HPE OneView 8.30 library Bug Impact - Low
Projects
None yet
Development

No branches or pull requests

2 participants