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
Description system_health script crashes due to missing module health_checker.
Root cause - The system_health library (in sonic-utilities) is Python3 based whereas health_checker (in sonic-buildimage) is still Python2 based:
File "/usr/local/lib/python3.7/dist-packages/show/system_health.py", line 33, in summary
from health_checker.manager import HealthCheckerManager
ModuleNotFoundError: No module named 'health_checker'
root@str-s6100-acs-4:~# show system-health summary
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/show/system_health.py", line 21, in summary
if os.environ["UTILITIES_UNIT_TESTING"] == "1":
File "/usr/lib/python3.7/os.py", line 678, in __getitem__
raise KeyError(key) from None
KeyError: 'UTILITIES_UNIT_TESTING'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/show", line 10, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/show/system_health.py", line 33, in summary
from health_checker.manager import HealthCheckerManager
ModuleNotFoundError: No module named 'health_checker'
root@str-s6100-acs-4:~#
Describe the results you expected:
show system-health summary should not crash.
The text was updated successfully, but these errors were encountered:
I already have a PR to do so, but I am waiting for Mellanox to provide a Python 3 sonic-platform package before merging it: #5886. @Junchao-Mellanox and @keboliu are working on the Python 3 sonic-platform package, ETA of later this month.
Description
system_health
script crashes due to missing modulehealth_checker
.Root cause - The
system_health
library (insonic-utilities
) is Python3 based whereashealth_checker
(insonic-buildimage
) is still Python2 based:Steps to reproduce the issue:
system-health
service starts. Butshow system-health summary
throws error.Describe the results you received:
Describe the results you expected:
show system-health summary
should not crash.The text was updated successfully, but these errors were encountered: