sonic-platform-common icon indicating copy to clipboard operation
sonic-platform-common copied to clipboard

Support new ssd model Virtium VTSM24ABXI160-BM110006

Open yuazhe opened this issue 1 year ago • 1 comments

Description

The ID of "Remaining Life Left" attribute on 'Virtium VTSM24ABXI160-BM110006' device is 231. However, it is not recognized by SmartCmd nor smartctl so far so we need to parse it using the ID number. Also add a unit for this model

Motivation and Context

The Virtium prefix of the device model is shown from smartctl output, so keep it.

How Has This Been Tested?

unit test and real hardware test show platform ssdhealth Device Model : Virtium VTSM24ABXI160-BM110006 Health : 100.0% Temperature : 52C

Additional Information (Optional)

yuazhe avatar Sep 09 '24 02:09 yuazhe

Consider:

Refactor this function so that:

first check if current disk is one of the special Virtium SSD models, if so:

parse attribute 231 directly and exit

else (all other Virtium models) :

check for presence of NAND endurance and Avg erase count in the output

if present: get health that way else: health = N/A

What do you think?

ashwnsri avatar Sep 09 '24 05:09 ashwnsri

Consider:

Refactor this function so that:

first check if current disk is one of the special Virtium SSD models, if so:

parse attribute 231 directly and exit

else (all other Virtium models) :

check for presence of NAND endurance and Avg erase count in the output

if present: get health that way else: health = N/A

What do you think?

LGTM, I had rework the pr as you suggested, please help to review :-)

yuazhe avatar Sep 18 '24 06:09 yuazhe

@assrinivasan would you please review the new changes?

keboliu avatar Sep 19 '24 10:09 keboliu

Changes LGTM. @prgeor please help review/merge. Thanks!

ashwnsri avatar Sep 19 '24 15:09 ashwnsri

@prgeor kindly reminder to review

liat-grozovik avatar Oct 22 '24 13:10 liat-grozovik

Cherry-pick PR to 202405: https://github.com/sonic-net/sonic-platform-common/pull/516

mssonicbld avatar Nov 15 '24 18:11 mssonicbld