-
Notifications
You must be signed in to change notification settings - Fork 156
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 #102
Conversation
This pull request introduces 1 alert when merging a11bf5c into 8507085 - view on LGTM.com new alerts:
|
can you also resolve the conflicts? |
@Junchao-Mellanox is SNMP Query for the physical entity information also available? If so, can you share the snmp query result too? |
Hi @sujinmkang, yes, we have snmp query available now. It is a very long ouput, here is some snippet:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you rebase the PR?
Done |
@Junchao-Mellanox can you rebase again? I will approve as soon as you rebase. |
Conflicts: sonic-psud/scripts/psud sonic-thermalctld/scripts/thermalctld sonic-thermalctld/tests/mock_platform.py
…-daemons into phy-mibs Conflicts: sonic-psud/scripts/psud
@sujinmkang done. |
…or physical entity mib (#102) * Update pmon daemons for SONiC Physical Entity MIB feature
@Junchao-Mellanox: If the submodule is updated to include this PR, we are seeing the following unit test error:
Can you please check? I may need to revert this PR. EDIT: It appears a fix has been submitted. Can you please review? #121 |
Fixes the following crash introduced by #102: ``` 01:33:00 ______________________ test_updater_thermal_check_min_max ______________________ 01:33:00 01:33:00 def test_updater_thermal_check_min_max(): 01:33:00 chassis = MockChassis() 01:33:00 01:33:00 thermal = MockThermal() 01:33:00 chassis.get_all_thermals().append(thermal) 01:33:00 01:33:00 chassis.set_modular_chassis(True) 01:33:00 chassis.set_my_slot(1) 01:33:00 temperature_updater = TemperatureUpdater(SYSLOG_IDENTIFIER, chassis) 01:33:00 01:33:00 temperature_updater.update() 01:33:00 slot_dict = temperature_updater.chassis_table.get('Thermal 1') 01:33:00 > assert slot_dict['minimum_temperature'] == str(thermal.get_minimum_recorded()) 01:33:00 E TypeError: 'NoneType' object has no attribute '__getitem__' 01:33:00 01:33:00 tests/test_thermalctld.py:341: TypeError ``` Signed-off-by: Petro Bratash <petrox.bratash@intel.com> Signed-off-by: Petro Bratash <petrox.bratash@intel.com>
- What I did Following SFF-8472 to read diagnostic monitoring type register. Use that register to check if diagnostic monitoring function implemented or not. - How I did it Check the register position from SFF-8472 document. Read the register value from the EEPROM.
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?