Skip to content

[action] [PR:853] Add timestamp to the leak sensor data in DB, Fix to not escalate a minor leak if platform doesn't support it#73

Merged
mssonicbld merged 1 commit into
Azure:202608from
mssonicbld:cherry/msft-202608/853
Jul 10, 2026
Merged

[action] [PR:853] Add timestamp to the leak sensor data in DB, Fix to not escalate a minor leak if platform doesn't support it#73
mssonicbld merged 1 commit into
Azure:202608from
mssonicbld:cherry/msft-202608/853

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator

Description

Couple of enhancements/fixes in this PR

  1. Add timestamp to the leak sensor data in DB

  2. Fix to not escalate a minor leak if platform doesn't support it
    Fixes Bug: BMC leak escalation logic is not aligned with the HLD sonic-net/sonic-buildimage#28218

  3. Also update the leak_severity in sensor table to in DB correctly as 'CRITICAL' 'MINOR' and 'None' strings

Motivation and Context

If the platform doesn't support escalation of a minor leak --> critical Skip it by checking the return value of platform API is 0
Add timestamp to sensor leak data entry in sensor table -- This will help triage when the leak started.

How Has This Been Tested?

Unit tests added which mock the leak conditions and test

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

Additional Information (Optional)

…nor leak if platform doesn't support it

#### Description

Couple of enhancements/fixes in this PR

1. Add timestamp to the leak sensor data in DB
2. Fix to not escalate a minor leak if platform doesn't support it
    Fixes sonic-net/sonic-buildimage#28218

3. Also update the leak_severity in sensor table to in DB correctly as 'CRITICAL' 'MINOR' and 'None' strings

#### Motivation and Context
If the platform doesn't support escalation of a minor leak --> critical Skip it by checking the return value of platform API is 0
Add timestamp to sensor leak data entry in sensor table -- This will help triage when the leak started.

#### How Has This Been Tested?
Unit tests added which mock the leak conditions and test

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

#### Additional Information (Optional)
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

Original PR: sonic-net/sonic-platform-daemons#853

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@mssonicbld mssonicbld merged commit f256b46 into Azure:202608 Jul 10, 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