[T2 Logical Chassis] Enhanced platform_tests/test_thermal_state_db.py to handle logical chassis by skipping thermal sensors that are not part of the logical chassis#7563
[T2 Logical Chassis] Enhanced platform_tests/test_thermal_state_db.py to handle logical chassis by skipping thermal sensors that are not part of the logical chassis#7563gechiang merged 6 commits intosonic-net:masterfrom gechiang:master
Conversation
…ermal info in global state DB should not be counted in the test_thermal_global_state_db() since it is logically not part of the logical chassis that ie being run
|
The pre-commit check detected issues in the files touched by this pull request. For old issues, it is not mandatory to fix them because they were not caused by this change. It is unfair to blame Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
|
The pre-commit check detected issues in the files touched by this pull request. For old issues, it is not mandatory to fix them because they were not caused by this change. It is unfair to blame Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
|
The pre-commit check detected issues in the files touched by this pull request. For old issues, it is not mandatory to fix them because they were not caused by this change. It is unfair to blame Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
|
The pre-commit check detected issues in the files touched by this pull request. For old issues, it is not mandatory to fix them because they were not caused by this change. It is unfair to blame Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
… to handle logical chassis by skipping thermal sensors that are not part of the logical chassis (#7563) * To support Logical Chassis that has physical LC inserted but their Thermal info in global state DB should not be counted in the test_thermal_global_state_db() since it is logically not part of the logical chassis that is being run * Expanding skip_module with "thermals" that can also be specified to be skipped. * Fixed the pre-commit check flagged issues
Description of PR
To support T2 Logical chassis (classify set of LCs and SUPs as a logical chassis where not all physically inserted LCs though belong to the same physical chassis belong to the same logical chassis), this platform_tests/test_thermal_state_db.py when testing the "test_thermal_global_state_db()" it was counting all the thermal sensor info for all the physical LCs and SUP. This breaks the logical chassis testing where not all the physically inserted LCs should be used for the test.
This PR is to ensure that when it reads from the global state DB for the thermal sensor data, it will properly skip over those thermal sensors that does not belong to the logical chassis based on the new skip_module field "thermals" specified in the inventory file. This way the test will be able to handle logical chassis correctly.
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
To allow logical chassis to be tested correctly.
How did you do it?
Verified the test run on logical chassis and ensure the test is functioning correctly with this change.
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation