Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMON Voltage and Current Sensor Monitor #393

Merged
merged 11 commits into from
Sep 7, 2023

Conversation

bmridul
Copy link
Collaborator

@bmridul bmridul commented Aug 10, 2023

Implementation of SensorMonitor daemon which would provide monitoring of voltage and current sensors.

Description

Sensormond daemon is introduced. It collects the voltage and current sensor information from the platform and populates in the StateDB. The sensor data is available to view using CLIs. Sensormond raises syslogs when the sensors report measurement outside the thresholds.

Motivation and Context

The change is required for the implementation for the sensor monitoring daemon described in the HLD for voltage and current sensors monitoring.

sonic-net/SONiC#1394

How Has This Been Tested?

This is tested with unit test (included in PR) and on target with CLIs and instrumentation of faults.

@bmridul bmridul changed the title Vsensor thermalctld PMON Voltage and Current Sensor Monitor Aug 10, 2023
self._refresh_voltage_status(CHASSIS_INFO_KEY, voltage_sensor, index)

if self.is_chassis_system:
available_voltage_sensors = set()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why only handle this for chassis system? For NON chassis system, PSU also can be hot swapable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PSU sensors are currently handled by PSUd. So I was not expecting PSU sensors to be monitored here. Primarily we wanted to handle voltage/current sensors in CPU-less modules such as Fabric cards.

sonic-sensormond/scripts/sensormond Outdated Show resolved Hide resolved
sonic-sensormond/scripts/sensormond Outdated Show resolved Hide resolved
sonic-sensormond/scripts/sensormond Show resolved Hide resolved
@bmridul
Copy link
Collaborator Author

bmridul commented Aug 22, 2023

@Junchao-Mellanox , Pls check this and other PRs related to this with the updates.

@abdosi
Copy link
Contributor

abdosi commented Sep 1, 2023

@Junchao-Mellanox can you please review again
We need to close on this soon.

@bmridul please rebase it as it is out of date

@abdosi abdosi merged commit b3d544f into sonic-net:master Sep 7, 2023
4 checks passed
@abdosi
Copy link
Contributor

abdosi commented Sep 7, 2023

@gechiang we would need in msft repo. Since this is enhancement we would need be able to take in 202205 branch.

@gechiang
Copy link
Contributor

gechiang commented Sep 7, 2023

@abdosi, same issues where there is no msft repo for this submodule and there is no plan for build team to support this new msft repo. So unless it is a bug fix, it will likely not be able to be taken in for the 202205 at all...

@Junchao-Mellanox
Copy link
Collaborator

Hi @abdosi , the HLD is not approved, it is in a "Requested Change" status. Should we hold on the merge/cherry-pick until major comments are addressed?

@StormLiangMS
Copy link

new feature, no cherry pick

@shivuv
Copy link

shivuv commented Dec 21, 2023

@gechiang @abdosi : Can you please help to cherry pick this into 202305 branch?

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.

6 participants