Skip to content

[ssd_generic] Get health status from Remaining_Life_Left field for virtium SSD#344

Merged
prgeor merged 3 commits intosonic-net:masterfrom
Junchao-Mellanox:ssd-health
Feb 27, 2023
Merged

[ssd_generic] Get health status from Remaining_Life_Left field for virtium SSD#344
prgeor merged 3 commits intosonic-net:masterfrom
Junchao-Mellanox:ssd-health

Conversation

@Junchao-Mellanox
Copy link
Contributor

Description

For virtium SSD, sometimes there is no NAND_Endurance and Average_Erase_Count field in SSD smart attributes. We should use Remaining_Life_Left in such case.

Motivation and Context

To support SSD health on more virtium SSD

How Has This Been Tested?

Manual test
Unit test

Additional Information (Optional)

@prgeor
Copy link
Collaborator

prgeor commented Feb 14, 2023

@Junchao-Mellanox can you paste the output of the CLI?

@prgeor prgeor self-assigned this Feb 14, 2023
@Junchao-Mellanox
Copy link
Contributor Author

@Junchao-Mellanox can you paste the output of the CLI?

There is no output change:

Device Model : StorFly VSF302XC016G-MLX1
Health       : 87.9%
Temperature  : 26C

@liat-grozovik
Copy link
Collaborator

@prgeor kindly reminder to review following your comments

@Junchao-Mellanox
Copy link
Contributor Author

@prgeor kindly reminder

@prgeor prgeor merged commit 3d57e0e into sonic-net:master Feb 27, 2023
@Junchao-Mellanox Junchao-Mellanox deleted the ssd-health branch February 27, 2023 06:52
StormLiangMS pushed a commit that referenced this pull request Mar 7, 2023
…rtium SSD (#344)

* [ssd_generic] Get health status from Remaining_Life_Left field for virtium SSD

* Improve UT cover

* Fix UT failure
AntonHryshchuk added a commit to AntonHryshchuk/sonic-buildimage that referenced this pull request Mar 8, 2023
Update sonic-platform-common submodule pointer to include the following:
* c551a81 [sonic_ssd] Nokia-7215: Fix show platform ssdhealth ([sonic-net#337](sonic-net/sonic-platform-common#337))
* 1929332 Fix pipeline apt-get purge error. ([sonic-net#349](sonic-net/sonic-platform-common#349))
* 3d57e0e [ssd_generic] Get health status from Remaining_Life_Left field for virtium SSD ([sonic-net#344](sonic-net/sonic-platform-common#344))

Signed-off-by: AntonHryshchuk <[email protected]>
Junchao-Mellanox added a commit to Junchao-Mellanox/sonic-platform-common that referenced this pull request Jul 11, 2023
…rtium SSD (sonic-net#344)

* [ssd_generic] Get health status from Remaining_Life_Left field for virtium SSD

* Improve UT cover

* Fix UT failure
yxieca pushed a commit that referenced this pull request Sep 12, 2023
… percentage for Virtium SSD (#385)

Backport commits:

07ccd27 Fix issue: should use 'Value' column to calculate the health percentage
6d2d7a3 [ssd_generic] Get health status from Remaining_Life_Left field for virtium SSD (#344)
feb5036 [SSD] deduce vendor name from part number (#322)

Description
Currently, we are using "Low Raw" column to calculate SSD health, but "Value"column should be used according to vendor document.

Motivation and Context
Fix issue that SSD health display wrong value

How Has This Been Tested?
Manual test
Unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants