Skip to content

Delay mux/sflow/snmp timer after interface-config service #14506

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

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

yxieca
Copy link
Contributor

@yxieca yxieca commented Apr 4, 2023

Why I did it

All these 3 services started after swss service, which used to start after interface-config service. But #13084 remove the time constraints for swss.

After that, these 3 services has the chance of start earlier when the inteface-config service is restarting the networking service, which could cause db connect request to fail.

How I did it

Delay mux/sflow/snmp timer after the interface-config service.

How to verify it

PR test.
Config reload can repro the issue in 1-3 retries. With this change. config reload run 30+ iterations without hitting the issue.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@yxieca yxieca requested a review from lguohan as a code owner April 4, 2023 00:26
All these 3 services started after swss service, which used to start after
interface-config service. But sonic-net#13084 remove the time constraints for swss.

After that, these 3 services has the chance of start earlier when the
inteface-config service is restarting the networking service, which could
cause db connect request to fail.

Signed-off-by: Ying Xie <[email protected]>
Copy link
Contributor

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

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

LGTM

@yxieca yxieca merged commit d3f3ac6 into sonic-net:master Apr 4, 2023
@yxieca yxieca deleted the service branch April 4, 2023 23:23
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Apr 4, 2023
…14506)

Why I did it
All these 3 services started after swss service, which used to start after interface-config service. But sonic-net#13084 remove the time constraints for swss.

After that, these 3 services has the chance of start earlier when the inteface-config service is restarting the networking service, which could cause db connect request to fail.

How I did it
Delay mux/sflow/snmp timer after the interface-config service.

How to verify it
PR test.
Config reload can repro the issue in 1-3 retries. With this change. config reload run 30+ iterations without hitting the issue.

Signed-off-by: Ying Xie <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #14523

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Apr 20, 2023
…14506)

Why I did it
All these 3 services started after swss service, which used to start after interface-config service. But sonic-net#13084 remove the time constraints for swss.

After that, these 3 services has the chance of start earlier when the inteface-config service is restarting the networking service, which could cause db connect request to fail.

How I did it
Delay mux/sflow/snmp timer after the interface-config service.

How to verify it
PR test.
Config reload can repro the issue in 1-3 retries. With this change. config reload run 30+ iterations without hitting the issue.

Signed-off-by: Ying Xie <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202211: #14771

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants