emc-openstack / storops

Python storage management library for VNX and Unity.
Apache License 2.0
53 stars 29 forks source link

Array Health check issue #349

Closed Pavan-Mudunuri closed 2 years ago

Pavan-Mudunuri commented 2 years ago

Requirement : As part of one of the customer's ask, there is a requirement to display array health details .Checked SDK health.py, did not find any support for getting health details. MicrosoftTeams-image (3) Please let us know if there is any alternatives with existing SDK, if not is this planned in future roadmap.

Thanks Pavan

yong-huang commented 2 years ago

UnityHealth is not the resource to store the whole array health info, it is associated with the specific resource. For example, health for storageResouce, health for storageProcessor. You could get the health of a LUN by:

lun = client.get_lun()[0]
print(lun.health)

The result looks like:

{"UnityHealth": {"description_ids": ["ALRT_VOL_OK"], "descriptions": ["The LUN is operating normally. No action is required."], "existed": true, "hash": 157035568777, "value": "HealthEnum.OK"}}
Pavan-Mudunuri commented 2 years ago

Thanks @yong-huang for the response. We will check with customer on what is the exact info they are looking for and get back if we are not able to fetch that info.