Skip to content

make sure only syncd is match on pgrep#1708

Merged
abdosi merged 1 commit intosonic-net:masterfrom
abdosi:fix_restart_syncd
May 31, 2020
Merged

make sure only syncd is match on pgrep#1708
abdosi merged 1 commit intosonic-net:masterfrom
abdosi:fix_restart_syncd

Conversation

@abdosi
Copy link
Contributor

@abdosi abdosi commented May 29, 2020

make sure only syncd is match on pgrep. Without this even /usr/bin/syncd.sh were getting O/P of pgrep command making test case case fail as we expect no O/P once syncd is terminated.

Fix for Issue sonic-net/sonic-buildimage#4127

Fix is to use -x option of pgrep to exact match on syncd.
-x, --exact
Only match processes whose names (or command line if -f is specified) exactly match the pattern.

Verified Manually syncd process gets terminated with no core.
also run testcase "restart_syncd"

make sure only syncd is match on pgrep
@abdosi
Copy link
Contributor Author

abdosi commented May 30, 2020

@yxieca Can you please review/approve.

@lguohan
Copy link
Contributor

lguohan commented May 30, 2020

what is '-x' can you explain how you did it?

@abdosi
Copy link
Contributor Author

abdosi commented May 30, 2020

what is '-x' can you explain how you did it?

@lguohan

Fix is to use -x option of pgrep to exact match on syncd. From man pgrep
-x, --exact
Only match processes whose names (or command line if -f is specified) exactly match the pattern.

@abdosi abdosi merged commit 90351bb into sonic-net:master May 31, 2020
@abdosi abdosi deleted the fix_restart_syncd branch May 31, 2020 00:52
yxieca pushed a commit that referenced this pull request Jun 2, 2020
make sure only syncd is match on pgrep
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…et#7487)

* [202012][swss/swss-common/utilities/kernel] Update submodule

sonic-swss:
- [Monitor Vlan] Fix a typo in hostif (sonic-net#1722)
- Update pool sizes during initialization from timer only (sonic-net#1708)
- [SflowMgr] SamplingRate Update by Speed Change Added (sonic-net#1721)

sonic-swss-common:
- [swss-common] Add MUX Metrics Table (sonic-net#482)
- [azp] Purge swss before installing the newly built deb package (sonic-net#472)

sonic-utilities:
- disk_check: Check & mount RO as RW using tmpfs (sonic-net#1569)
- No more IP validation as it is more likely a URL (sonic-net#1555)
- Stop PMON docker before cold and soft reboots (sonic-net#1514)
- Add soft-reboot reboot type (sonic-net#1453)
- [acl] Use a list instead of a comma-separated string for ACL port list (sonic-net#1519)
- sonic-installer: fix py3 issues in bootloader.aboot (sonic-net#1553)
- Fix unsupported fs.squashfs extraction in sonic-installer (sonic-net#1366)
- [show][config] cli support for firmware upgrade on Y-Cable (sonic-net#1528) (sonic-net#1558)

sonic-linux-kernel:
- [Mellanox] backport kernel patches for hw-management 7.0100.2303 (sonic-net#211)

Signed-off-by: Danny Allen <[email protected]>

* Update utilities w/ build fix
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