HewlettPackard / POSH-HPEOneView

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

Default Rack Height #624

Open phsimons opened 1 year ago

phsimons commented 1 year ago

Appliance : 8.00.00-0470555

LibraryVersion 8.0.3334.2865

When creating a rack New-OVRack -Name 1234 -UHeight 42 | Add-OVRackToDataCenter -DataCenter $DataCenter -X 14200 -Y 11700 -Millimeters -Rotate 0 The rack is create with a Height of 1867 mm ... The minimum allowed Height in the WebGui is 1869 mm

ChrisLynchHPE commented 1 year ago

I cannot reproduce this. The WebUI only allows you to specify the rack height in U, and the dimensions in inches. Neither allow you to set in mm. Do you have a screenshot showing this, or if there is an error in the WebUI?

phsimons commented 1 year ago

Editing a rack image Trying to save image I am using Edge, and if you want to switch to Metrics, you have to change the Language to English (not English United State) image

ChrisLynchHPE commented 1 year ago

I was able to fix the -ThermalLimit value, and will be fixed in the next few library updates.

As for the Height in MM value, the -UHeight parameter value is being multiplied by 44.45 which a caller doesn't supply the -Height parameter. So 42 * 44.45 = 1866.9, which is then being rounded to the nearest whole number. And in this case, is 1867. This seems like a UI validation issue, not API or Cmdlet. To override this, supply the -Height parameter in your call.

phsimons commented 1 year ago

I understand that I can provide the -Height parameter , ... and you are right it's probably a UI validation issue, still annoying as one would expect that the default value are the valid... maybe you can reach the WebUI people and tell them.

ChrisLynchHPE commented 1 year ago

1 rack unit (RU) = 44.45 mm

The conversion in the WebUI is wrong. I will also report this as a bug to the OV R&D team.