Skip to content

[code sync] Merge code from sonic-net/sonic-platform-common:202511 to 202601 - #119

Merged
mssonicbld merged 2 commits into
Azure:202601from
mssonicbld:sonicbld/202601-merge
Jul 16, 2026
Merged

[code sync] Merge code from sonic-net/sonic-platform-common:202511 to 202601#119
mssonicbld merged 2 commits into
Azure:202601from
mssonicbld:sonicbld/202601-merge

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator
* f932828 - (origin/202511) Fix Micron NVMe disk health output showing N/A (#711) (2026-07-15) [mssonicbld]<br>```

mssonicbld and others added 2 commits July 15, 2026 15:13
<!-- 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().

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

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 c3458ee into Azure:202601 Jul 16, 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