Skip to content
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 state to Sysmonitor daemon #3126

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fastiuk
Copy link

@fastiuk fastiuk commented Apr 28, 2024

depends-on: sonic-net/sonic-buildimage#18817

What I did
This change implements swss's ability to report it's readines to sysmonitor

Why I did it
The motivation is to report PortInitDone to sysmonitor and not just the startup of swss

How I verified it

  • Run NOS on the box
  • Make sure swss reports good readiness state and you can see it in sysmonitor

Details if related

*/
FieldValueTuple app_state("up_status", "true");
vector<FieldValueTuple> feature_attrs = { app_state };
feature.set("swss", feature_attrs);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this done only from portsyncd?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have another requirement, so portsyncd is good enough.

@liat-grozovik
Copy link
Collaborator

@fastiuk please refer to the comment provided. also please update the PR description of what are you are trying to fix and the scope. if this is a bug to whihc branches it should go?

/*
* Notify "System ready" feature that we are ok.
*/
FieldValueTuple app_state("up_status", "true");
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is portinitdone alone considered for sysready? In case of warmboot/fastboot scenario should we consider reconciliation done as sys ready?

@dgsudharsan we don't have other requirements and portinitdone is good enough. The previous design used "boot-up" of the service as "system ready".
I am not sure about "reconciliation done". Is warmboot/fastbot not set "PortInitDone"?

*/
FieldValueTuple app_state("up_status", "true");
vector<FieldValueTuple> feature_attrs = { app_state };
feature.set("swss", feature_attrs);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have another requirement, so portsyncd is good enough.

Signed-off-by: Yevhen Fastiuk <yfastiuk@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants