Skip to content

[202205] Fix issue: should use 'Value' column to calculate the health percentage for Virtium SSD#385

Merged
yxieca merged 3 commits intosonic-net:202205from
Junchao-Mellanox:202205-fix-ssd-health
Sep 12, 2023
Merged

[202205] Fix issue: should use 'Value' column to calculate the health percentage for Virtium SSD#385
yxieca merged 3 commits intosonic-net:202205from
Junchao-Mellanox:202205-fix-ssd-health

Conversation

@Junchao-Mellanox
Copy link
Contributor

@Junchao-Mellanox Junchao-Mellanox commented Jul 11, 2023

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

Additional Information (Optional)

@Junchao-Mellanox Junchao-Mellanox marked this pull request as draft July 11, 2023 10:45
Junchao-Mellanox and others added 3 commits July 11, 2023 18:57
- Description
Deduce SSD vendor name from part number for Virtum

- Motivation and Context
Currently, ssd_generic.py deduce vendor name by smartctl command. For example,

Device Model:     StorFly VSFDM8XC240G-V11-T
"StorFly" is the vendor name. However, for some SSD vendor, smartctl cannot get vendor name.
For example:
Device Model:     VSFDM8XC240G-V11-T
In such case, vendor name shall be deduced from part number.
…rtium SSD (sonic-net#344)

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

* Improve UT cover

* Fix UT failure
@Junchao-Mellanox Junchao-Mellanox marked this pull request as ready for review July 12, 2023 07:01
@Junchao-Mellanox
Copy link
Contributor Author

Hi @prgeor and @yxieca , could you please help review this?

@liat-grozovik
Copy link
Collaborator

@prgeor @yxieca please help to approve/merge this to 202205

@liat-grozovik
Copy link
Collaborator

@yxieca suggest to merge to 202205. can you please review?

@volodymyrsamotiy
Copy link
Collaborator

volodymyrsamotiy commented Sep 11, 2023

@yxieca, it is CLI only and doesn't change results of any sonic-mgmt test

@yxieca yxieca merged commit ade83aa into sonic-net:202205 Sep 12, 2023
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-platform-common that referenced this pull request Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants