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

Merge swss and syncd into single service #334

Merged
merged 1 commit into from
Mar 1, 2017

Conversation

marian-pritsak
Copy link
Collaborator

Current implementation of swss and syncd causes a lot
of problems in terms of dependencies and synchronization.
Instead of handling them in separate services, we now
start and stop them both as a single entity.

Signed-off-by: marian-pritsak [email protected]

@liatgrozovik
Copy link

liatgrozovik commented Feb 24, 2017 via email


# systemd allows only one parent process within service,
# so we spawn both dockers from single bash parent
ExecStart=/bin/bash -c "/usr/bin/{{docker_container_name}}.sh start & /usr/bin/syncd.sh start"
Copy link
Collaborator

Choose a reason for hiding this comment

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

what if we do ExecStartPre=/usr/bin/syncd.sh start?

what's the difference between your current solution?

Copy link

@MaryanPritsak MaryanPritsak Feb 26, 2017

Choose a reason for hiding this comment

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

As I said in a comment, if we do syncd.sh start in ExecStartPre, systemd will wait until this process finishes and will never reach ExecStart

Copy link
Collaborator

Choose a reason for hiding this comment

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

if you start first script in background, there is no way to get error code in bad situations.


In reply to: 103107923 [](ancestors = 103107923)

Copy link
Collaborator

@lguohan lguohan Mar 1, 2017

Choose a reason for hiding this comment

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

@qiluo-msft, is there any way to resolve this? do you have any suggestion?

@lguohan
Copy link
Collaborator

lguohan commented Feb 25, 2017

what is the linux kernel course? must be very interesting. 👍

Copy link
Collaborator

@qiluo-msft qiluo-msft left a comment

Choose a reason for hiding this comment

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

As comments.

Current implementation of swss and syncd causes a lot
of problems in terms of dependencies and synchronization.
Instead of handling them in separate services, we now
start and stop them both as a single entity.

Signed-off-by: marian-pritsak <[email protected]>
@marian-pritsak
Copy link
Collaborator Author

Changed logic to return in case any of dockers exits with corresponding exit code

@qiluo-msft
Copy link
Collaborator

@marian-pritsak One more suggestion: if there are multiple iterations in the same pull request, please try your best to keep old commits that are reviewed, so all the discussion context will be kept.

@lguohan lguohan merged commit a877603 into sonic-net:master Mar 1, 2017
madhanmellanox pushed a commit to madhanmellanox/sonic-buildimage that referenced this pull request Mar 23, 2020
…platforms (sonic-net#334)

* Unified QoS config for Mellanox 27xx platforms
* Add WRED settings for lossless queues (Mellanox 27xx platforms)

Signed-off-by: Andriy Moroz <[email protected]>
lguohan pushed a commit that referenced this pull request Jun 9, 2020
7c1cce5 2020-05-27 | Fix memory leak in pyext when Selectable is returned to Python (#343)  [pavel-shirshov]
1e8b5ca 2020-04-04 | [table] add hdel operation [Guohan Lu]
50bf741 2020-03-23 | [201811][schema] Add COUNTERS_LAG_NAME_MAP table in COUNTERS_DB (#334) [Joe LeVeque]
dmytroxshevchuk pushed a commit to dmytroxshevchuk/sonic-buildimage that referenced this pull request Aug 31, 2020
* Suppress FDB events if notifier queue exceeds limit

* Revert space change

* Address review comments

* Fix a build check

* Updated comments, changed to NOTICE and log every 1000 events

* Updated dropped count using a 32 bit counter
mssonicbld added a commit that referenced this pull request Oct 7, 2023
…tomatically (#16759)

#### Why I did it
src/sonic-linux-kernel
```
* d5232ab - (HEAD -> master, origin/master, origin/HEAD) arm64: ac5: Fix watchdog timeleft (#334) (7 days ago) [pavannaregundi]
```
#### How I did it
#### How to verify it
#### Description for the changelog
mssonicbld added a commit that referenced this pull request Oct 19, 2023
…tomatically (#16654)

#### Why I did it
src/sonic-linux-kernel
```
* 9534615 - (HEAD -> 202211, origin/202211) arm64: ac5: Fix watchdog timeleft (#334) (5 days ago) [pavannaregundi]
* 70c4df8 - [marvell-arm64]: Add support for 98DX35xx and 98CX85xx platform (#311) (6 days ago) [pavannaregundi]
* aab079e - [Mellanox] Upstream kernel patches with HW-MGMT 7.0030.1011 (#327) (4 weeks ago) [Kebo Liu]
```
#### How I did it
#### How to verify it
#### Description for the changelog
shanshri pushed a commit to shanshri/sonic-buildimage-sonic-net that referenced this pull request Oct 24, 2023
Watchdog timeleft returns unexpected huge value for first read,
followed by correct expected values. Unexpected huge value reappears
after few minutes. Issue is resolved by updating the existing
hardware workaround to read WCV_HI along with WCV_LO.

Signed-off-by: Pradeep Turaga Shakthi <[email protected]>
Co-authored-by: Saikrishna Arcot <[email protected]>
mlok-nokia pushed a commit to mlok-nokia/sonic-buildimage that referenced this pull request Jun 5, 2024
[Nokia-IXR7250E][Devicedata] Update HW Lane for Inband and Rec ports …
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.

5 participants