cohesity / cohesity-powershell-module

This repository provides a PowerShell Module for Cohesity DataPlatform. https://cohesity.github.io/cohesity-powershell-module
Apache License 2.0
42 stars 16 forks source link

Get-CohesityClusterConfiguration error #202

Closed VirtuallyDan closed 2 years ago

VirtuallyDan commented 2 years ago

🐛 Bug Report

When I run Get-CohesityClusterConfiguration, there is an error converting "SATA-SSD" to type "system.nullable" [Cohesity.Model.CountByTier+StorageTierEnum]

image

The Cohesity node is a ROBO node running on HPE hardware.

To Reproduce

  1. Connect to cluster: Connect-CohesityCluster -Server "my-cdp01" -Credential (Get-Credential -UserName "Admin" -Message "Enter Password for my-cdp01")
  2. Get cluster configuration: $Config = Get-CohesityClusterConfiguration
  3. Error produced

Expected behavior

$Config variable would have the configuration object so I can manipulate the objects and send it to Set-CohesityClusterConfiguration

Actual Behavior

image

Get-CohesityClusterConfiguration: Error converting value "SATA-SSD" to type 'System.Nullable`1[Cohesity.Model.CountByTier+StorageTierEnum]'. Path 'diskCountByTier[0].storageTier', line 1, position 2050.

KavishreeShanmugam11 commented 2 years ago

Hi @VirtuallyDan , this is due to the incorrect enum value specified in cohesity model for 'storageTier' field. Replaced the value with respect to the api response now. Fix will be available in next release (v1.8.2) sson. Will file a bug to the api team ASAP.

KavishreeShanmugam11 commented 2 years ago

Hi @VirtuallyDan , Fix is available now - Cohesity Powershell