You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR #12572 has broken the test: test_system_health::test_external_checker
The test is adding an external checker into the next file: system_health_monitoring_config.json
And it's not loading into STATE_DB because of this mentioned PR, which doesn't allow us to run a subprocess with "shell=True" anymore.
In the result we've got the next in the DB:
redis-cli -n 6 HGETALL "SYSTEM_HEALTH_INFO"
1) "UserDefinedChecker - /usr/bin/cat /tmp/mock_valid_external_checker.txt"
2) "**Failed to get output of command \"/usr/bin/cat /tmp/mock_valid_external_checker.txt\**""
3) "summary"
4) "Not OK"
Steps to reproduce the issue:
Note: For this example was used msn4600c. Please adjust the paths below for your platform.
Create a backup file for system_health_monitoring_config.json mv -f /usr/share/sonic/device/x86_64-mlnx_msn4600c-r0/system_health_monitoring_config.json /usr/share/sonic/device/x86_64-mlnx_msn4600c-r0/system_health_monitoring_config.json.bak
Create the next files with the next contents:
vim /tmp/mock_valid_external_checker.txt
ExternalCategory
ExternalService:Service is not working
ExternalDevice:Device is broken
vim /usr/share/sonic/device/x86_64-mlnx_msn4600c-r0/system_health_monitoring_config.json
Observe the issue in STATE_DB after a few seconds:
redis-cli -n 6 HGETALL SYSTEM_HEALTH_INFO
1) "summary"
2) "Not OK"
3) "UserDefinedChecker - cat /tmp/mock_valid_external_checker.txt"
4) "Failed to get output of command \"cat /tmp/mock_valid_external_checker.txt\""
For the cleanup after that, return the original file. mv -f /usr/share/sonic/device/x86_64-mlnx_msn4600c-r0/system_health_monitoring_config.json.bak /usr/share/sonic/device/x86_64-mlnx_msn4600c-r0/system_health_monitoring_config.json
Describe the results you received:
"Failed to get output of command \"cat /tmp/mock_valid_external_checker.txt\""
Describe the results you expected:
External checker should be read from the provided mock file
Description
This PR #12572 has broken the test: test_system_health::test_external_checker
The test is adding an external checker into the next file:
system_health_monitoring_config.json
And it's not loading into STATE_DB because of this mentioned PR, which doesn't allow us to run a subprocess with "shell=True" anymore.
In the result we've got the next in the DB:
redis-cli -n 6 HGETALL "SYSTEM_HEALTH_INFO"
Steps to reproduce the issue:
Note: For this example was used msn4600c. Please adjust the paths below for your platform.
Create a backup file for system_health_monitoring_config.json
mv -f /usr/share/sonic/device/x86_64-mlnx_msn4600c-r0/system_health_monitoring_config.json /usr/share/sonic/device/x86_64-mlnx_msn4600c-r0/system_health_monitoring_config.json.bak
Create the next files with the next contents:
redis-cli -n 6 HGETALL SYSTEM_HEALTH_INFO
mv -f /usr/share/sonic/device/x86_64-mlnx_msn4600c-r0/system_health_monitoring_config.json.bak /usr/share/sonic/device/x86_64-mlnx_msn4600c-r0/system_health_monitoring_config.json
Describe the results you received:
"Failed to get output of command \"cat /tmp/mock_valid_external_checker.txt\""
Describe the results you expected:
External checker should be read from the provided mock file
Output of
show version
:Output of
show techsupport
:sonic_dump_r-tigon-21_20230118_151922.tar.gz
The text was updated successfully, but these errors were encountered: