Skip to content

[code sync] Merge code from sonic-net/sonic-platform-common:202605 to 202607 - #135

Merged
mssonicbld merged 2 commits into
Azure:202607from
mssonicbld:sonicbld/202607-merge
Sep 2, 2026
Merged

mssonicbld merged 2 commits into
Azure:202607from
mssonicbld:sonicbld/202607-merge

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator
* beadd25 - (origin/202605) Fix Micron NVMe disk health output showing N/A (#750) (2026-09-02) [mssonicbld]<br>```

mssonicbld and others added 2 commits September 2, 2026 09:14
<!-- Provide a general summary of your changes in the Title above -->

#### Description
Adding `Micron` to the list of NVMe SSD vendors that skip vendor-specific parsing in `fetch_parse_info()` For Micron NVMe SSDs, the generic NVMe parser `parse_nvme_ssd_info` already correctly extracts the health value from the smartctl `Percentage Used` field. However, the code then proceeds to call `parse_micron_info()` which attempts to parse SATA-specific attributes `(Percent_Lifetime_Used / Percent_Lifetime_Remain)` that don't exist in NVMe output, overwriting the valid health value with N/A.

This fix adds Micron to the early-return guard (alongside the already-handled Virtium and ATP vendors) so that the vendor-specific parser is skipped for Micron NVMe devices.

#### Motivation and Context
On platforms using Micron NVMe SSDs, `show platform ssdhealth` incorrectly returns N/A even though smartctl provides valid health data. The root cause is that parse_micron_info() is designed for SATA drives and looks for SATA SMART attributes that are absent in NVMe output, causing it to overwrite the correct health value that was already parsed by parse_nvme_ssd_info().

Microsoft ADO : 39376934

#### How Has This Been Tested?
Tested on platforms using Micron NVMe SSD disks

#### Test result

<!--
- Provide the tested image version and test evidence for each selected branch.
- e.g.
- master: 20260716.01 - <test result or link>
- 202605: 20260531.42 - <test result or link>
-->

- 202511: 20251110.42 :
- 202605: 20260510.11 :

Before changes :
```
# show platform ssdhealth
Disk Type : NVME
Device Model : Micron_XXXXXXXX
Health : N/A
Temperature : 35.0C
```

After changes :
```
# show platform ssdhealth
Disk Type : NVME
Device Model : Micron_XXXXXXXX
Health : 100.0%
Temperature : 35.0C
```

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>

#### Additional Information (Optional)
@mssonicbld
mssonicbld merged commit 08f8a56 into Azure:202607 Sep 2, 2026
2 checks passed
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.

1 participant