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

[sonic-platform-daemons] Add more physical entity information to DB for physical entity mib #13

Closed
wants to merge 27 commits into from

Conversation

Junchao-Mellanox
Copy link
Owner

Why I did this?

SONiC physical entity mib extension is going to save all physical entity information to mib for snmp query. We already have transceiver and transceiver DOM sensor information in mib. This PR is going to add more physical entity information to db, for example: fan drawer, fan, fan tachometers, PSU, PSU sensor, chassis sensors.

What I did?

  1. Add new fields model, serial, current, power, is_replaceable to PSU_INFO table
  2. Add new table FAN_DRAWER_INFO with fields presence, model, serial, status, is_replaceable, led_status
  3. Add field is_replaceable to FAN_INFO and TRANSCEIVER_INFO table
  4. Add new table PHYSICAL_ENTITY_INFO with fields position_in_parent and parent_name

judyjoseph and others added 25 commits August 14, 2020 10:02
* platform daemon (Xcvrd, Ledd) changes for multi asic platform
  * Updates in ledd daemon to use namespaces and get the namespace from selector object.
  * Updates to xcvrd daemon to use the asic_id in talking to the right DB.
  * Updated based on new sonic-py-common API's
  * Invoke initializeGlobalConfig() in the SfpUpdate/DomInfoUpdate processes as well.
…onic-net#87)

* Updated based on sonic-swss-common changes to get the namespace (PR#378)
on getKeys() not valid.

Signed-off-by: Abhishek Dosi <[email protected]>
Fix the xcvrd throwing error on sfprecover function
…event (sonic-net#53)

When port_dict of transceiver_change is empty, do nothing rather than log messages like
```
xcvrd: Got event True {} in state 1
xcvrd: mapping from True {'-1': 'system_become_ready'} to system_become_ready
xcvrd: Got system_become_ready in normal state, ignored
```
…sent (sonic-net#92)

If fan is not present, keep fan status value as "N/A".
…ing killed (sonic-net#94)

Part of thermalctld function is to handle user space thermal policies for events like fan/PSU removing, it works together with kernel thermal algorithm to make sure the switch won't be overheat.

Recently, we found that commit sonic-net/sonic-buildimage@cbc75fe changes its autorestart configuration in supervisord, and it won't be auto restarted after being killed. This PR is to make sure that thermalctld will be always restarted when it is killed.
Add 'wheel' to the list of packages required for building the package. This way it will be implicitly installed at build time, preventing the need to install the 'wheel' package explicitly in our build environment.
Fix `Failed to update PSU data - global name 'self' is not defined` 

Signed-off-by: Volodymyr Boyko <[email protected]>
@Junchao-Mellanox
Copy link
Owner Author

sonic-net#102

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.

9 participants