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

[teamd service] teamd service should start after syncd #2724

Merged
merged 2 commits into from
Apr 1, 2019

Conversation

yxieca
Copy link
Contributor

@yxieca yxieca commented Apr 1, 2019

- What I did

  • Let teamd service starting after syncd. Teamd has some dependencies on syncd:
  1. teamd requires netdevs created by syncd. (this change doesn't guarantee satisfying this dependency, listing here for completeness).
  2. teamd and swss shares a same table in app_db, swss script clears the table upon cold start and teamd would populate this table. Letting teamd starting after syncd (which is after swss) would avoid teamd coming up first, started to populate the table, then cleared by swss service script.

- How to verify it
Have tested this change with recent continuous warm reboot tests, and some nightly tests.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
@@ -2,6 +2,7 @@
Description=TEAMD container
Requires=updategraph.service
After=updategraph.service
After=syncd.service
Copy link
Contributor

@jleveque jleveque Apr 1, 2019

Choose a reason for hiding this comment

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

FYI, you can combine them into one line, i.e., After=updategraph.service syncd.service.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Changed.

@jipanyang
Copy link
Collaborator

The change looks good to me, but I'm not sure whether it could guarantee this: "teamd requires netdevs created by syncd". Having syncd started before teamd doesn't mean all netdev would be ready when teamd nees them.

@yxieca
Copy link
Contributor Author

yxieca commented Apr 1, 2019

No, the change doesn't guarantee netdev being created. I just want to state all the dependencies I know.

@jipanyang
Copy link
Collaborator

The change looks good to me, but I'm not sure whether it could guarantee this: "teamd requires netdevs created by syncd". Having syncd started before teamd doesn't mean all netdev would be ready when teamd nees them.

Ok, putting the statement here make people think that the change also addresses that issue.

@lguohan
Copy link
Collaborator

lguohan commented Apr 1, 2019

how is this related this PR?

#2626

@yxieca
Copy link
Contributor Author

yxieca commented Apr 1, 2019

@lguohan this change is intended to replace #2626

@yxieca yxieca merged commit 0d1efb1 into sonic-net:master Apr 1, 2019
@yxieca yxieca deleted the service branch April 1, 2019 22:40
yxieca added a commit that referenced this pull request Apr 1, 2019
* [teamd service] teamd service should start after syncd

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

* combine after lines
yxieca added a commit that referenced this pull request Apr 3, 2019
yxieca added a commit that referenced this pull request Apr 3, 2019
yxieca added a commit that referenced this pull request Apr 4, 2019
tiantianlv pushed a commit to SONIC-DEV/sonic-buildimage that referenced this pull request Apr 10, 2019
* [teamd service] teamd service should start after syncd

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

* combine after lines
tiantianlv pushed a commit to SONIC-DEV/sonic-buildimage that referenced this pull request Apr 10, 2019
tiantianlv pushed a commit to SONIC-DEV/sonic-buildimage that referenced this pull request Apr 10, 2019
* [teamd service] teamd service should start after syncd

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

* combine after lines
tiantianlv pushed a commit to SONIC-DEV/sonic-buildimage that referenced this pull request Apr 10, 2019
tiantianlv pushed a commit to SONIC-DEV/sonic-buildimage that referenced this pull request Apr 10, 2019
* [teamd service] teamd service should start after syncd

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

* combine after lines
tiantianlv pushed a commit to SONIC-DEV/sonic-buildimage that referenced this pull request Apr 10, 2019
dprital added a commit to dprital/sonic-buildimage that referenced this pull request Mar 10, 2023
Update sonic-utilities submodule pointer to include the following:
* 6f05f7ed [202205] Remove timer from FAST_REBOOT STATE_DB entry and use finalizer ([sonic-net#2724](sonic-net/sonic-utilities#2724))

Signed-off-by: dprital <drorp@nvidia.com>
prsunny added a commit that referenced this pull request Apr 8, 2023
Update swss commits:
c161027 - 2023-04-07 : [202012] overlay_dmac change in Vnet configuration. (#2724) [siqbal1986]
50be4e3 - 2023-04-05 : [202012][mux]: Implement rollback for failed mux switchovers (#2716) [Lawrence Lee]
637e4c7 - 2023-03-30 : [202012] Fix orchagent missing request when logrotate happens (#2718) [Prince Sunny]
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.

4 participants