-
Notifications
You must be signed in to change notification settings - Fork 148
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
[System ready] Report ready status to Sysmonitor daemon #481
base: master
Are you sure you want to change the base?
Conversation
@fastiuk please update the details in the PR:-
|
06f19ac
to
610bcdc
Compare
610bcdc
to
893d1c7
Compare
# If we were here and now retry_eeprom_set is empty, then we can state | ||
# that all SFPs accessible | ||
if not self.retry_eeprom_set: | ||
notify_system_ready() |
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.
Why do you correlate ready of syseeprom with pmon ready? There are many other initializations done in pmon like sfp, thermal etc. Shouldn't you set pmon status ready only after all these tasks are done?
@dgsudharsan I am not sure honestly. We had an internal requirement to declare ready status once all SFPs are accessible, so I did it exactly like that.
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.
@keboliu @Junchao-Mellanox Can you please comment on this?
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.
i agree with @dgsudharsan , this is not the place to notify system ready. It is complicated to understand when SFP has been initialized. So I would prefer doing it simple.
My proposal:
- set system not ready at line
sonic-platform-daemons/sonic-xcvrd/xcvrd/xcvrd.py
Line 2569 in 9ffce20
self.log_error("Exiting main loop as child thread raised exception!") sonic-platform-daemons/sonic-xcvrd/xcvrd/xcvrd.py
Line 2597 in 9ffce20
sys.exit(SFP_SYSTEM_ERROR) - set system ready before line
sonic-platform-daemons/sonic-xcvrd/xcvrd/xcvrd.py
Line 2554 in 9ffce20
self.stop_event.wait()
Signed-off-by: Yevhen Fastiuk <yfastiuk@nvidia.com>
Signed-off-by: Yevhen Fastiuk <yfastiuk@nvidia.com>
893d1c7
to
c95de0e
Compare
depends-on: sonic-net/sonic-buildimage#18817
Description
This change implements pmon's ability to report it's readines to sysmonitor
Motivation and Context
The motivation is to report the readiness of all SFPs to sysmonitor and not just the startup of pmon
How Has This Been Tested?
sysmonitor
Additional Information (Optional)