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

[swss/syncd] remove dependency on interfaces-config.service #13084

Merged
merged 1 commit into from
Dec 26, 2022

Conversation

stepanblyschak
Copy link
Collaborator

Signed-off-by: Stepan Blyschak stepanb@nvidia.com

Why I did it

Remove dependency on interfaces-config.service to speed up boot, because interfaces-config.service takes a lot of time on boot.

How I did it

Changed service files for swss, syncd.

How to verify it

Boot and check swss/syncd start time comparing to interfaces-config

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)

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@stepanblyschak
Copy link
Collaborator Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lguohan
Copy link
Collaborator

lguohan commented Dec 20, 2022

in interfaces-config.sh file, there are some ZTP support which enable dhclient on front panel port as well. from current look, it seems it only try to generate correct /etc/network/interfaces file and restart networking service. i tend to agree that swss and syncd should not have dependency on interfaces-config.service.

@liat-grozovik liat-grozovik merged commit 661669c into sonic-net:master Dec 26, 2022
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Mar 15, 2023
…t#13084)

- Why I did it
Remove dependency on interfaces-config.service to speed up boot, because interfaces-config.service takes a lot of time on boot.

- How I did it
Changed service files for swss, syncd.

- How to verify it
Boot and check swss/syncd start time comparing to interfaces-config

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #14252

mssonicbld pushed a commit that referenced this pull request Mar 16, 2023
- Why I did it
Remove dependency on interfaces-config.service to speed up boot, because interfaces-config.service takes a lot of time on boot.

- How I did it
Changed service files for swss, syncd.

- How to verify it
Boot and check swss/syncd start time comparing to interfaces-config

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Mar 19, 2023
…t#13084)

- Why I did it
Remove dependency on interfaces-config.service to speed up boot, because interfaces-config.service takes a lot of time on boot.

- How I did it
Changed service files for swss, syncd.

- How to verify it
Boot and check swss/syncd start time comparing to interfaces-config

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202211: #14341

yxieca added a commit to yxieca/sonic-buildimage that referenced this pull request Apr 4, 2023
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 <ying.xie@microsoft.com>
yxieca added a commit that referenced this pull request 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.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
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 <ying.xie@microsoft.com>
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 <ying.xie@microsoft.com>
nazariig added a commit to nazariig/sonic-buildimage that referenced this pull request May 16, 2023
nazariig added a commit to nazariig/sonic-buildimage that referenced this pull request May 17, 2023
stepanblyschak pushed a commit to stepanblyschak/sonic-buildimage that referenced this pull request Nov 22, 2023
yxieca pushed a commit that referenced this pull request Dec 7, 2023
…13084) (#14341)" (#15094) (#17367)

This reverts commit 499f57a.

Co-authored-by: Nazarii Hnydyn <nazariig@nvidia.com>
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Dec 7, 2023
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Dec 8, 2023
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.

7 participants