Make swssconfig status FATAL when it fails#1009
Merged
lguohan merged 3 commits intosonic-net:masterfrom Oct 4, 2017
qiluo-msft:qiluo/supervisorfatal
Merged
Make swssconfig status FATAL when it fails#1009lguohan merged 3 commits intosonic-net:masterfrom qiluo-msft:qiluo/supervisorfatal
lguohan merged 3 commits intosonic-net:masterfrom
qiluo-msft:qiluo/supervisorfatal
Conversation
…e status will become FATAL instead of EXITED if failure happens Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
stcheng
reviewed
Oct 3, 2017
| SWSSCONFIG_ARGS+="td2.32ports.buffers.json td2.32ports.qos.json " | ||
| elif [[ "$HWSKU" == "ACS-MSN27"* ]]; then | ||
| sonic-cfggen -m /etc/sonic/minigraph.xml -t /usr/share/sonic/templates/msn27xx.32ports.buffers.json.j2 > /etc/swss/config.d/msn27xx.32ports.buffers.json | ||
| sonic-cfggen -m /etc/sonic/minigraph.xml -t /usr/share/sonic/templates/msn27xx.32ports.buffers.json.j2 > /etc/swss/config.d/msn27xx.32ports.buffers.json || exit 1 |
Contributor
There was a problem hiding this comment.
what about set -e for this script?
Collaborator
Author
There was a problem hiding this comment.
The swssconfig.sh could be improved in future. Currently there is no assumption that every command will success there, except the obvious line such as sonic-cfggen.
Contributor
There was a problem hiding this comment.
I didn't get why there's no assumption that every command will success? right now there're sonic-cfggen and swssconfig commands. I think both of them need to be successful after execution.
Contributor
|
What is the ultimate behavior change you're trying to achieve with this? |
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
stcheng
approved these changes
Oct 3, 2017
Contributor
stcheng
left a comment
There was a problem hiding this comment.
please also check with other reviewers
Collaborator
|
does this change the syslog message? |
Collaborator
Author
|
It only change syslog this way |
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
jleveque
approved these changes
Oct 4, 2017
lguohan
approved these changes
Oct 4, 2017
zhenggen-xu
pushed a commit
to zhenggen-xu/sonic-buildimage
that referenced
this pull request
Oct 17, 2019
* msft_github/master: [DHCP Relay]: Support Multiple VLANs (Separate DHCP Relay Agents, One Per VLAN) (sonic-net#999) [build]: sonic-utilities package depends on swsssdk; build as wheel and add build dependency (sonic-net#1011) Make swssconfig status FATAL when it fails (sonic-net#1009) [swss]: Update swss-common/sairedis/swss submodules (sonic-net#1008) [config-engine]: Fix bug multiple ports connecting to same neighbor (sonic-net#1005)
stephenxs
added a commit
to stephenxs/sonic-buildimage
that referenced
this pull request
Sep 8, 2020
Fix a typo in mellanox_buffer_migrator (sonic-net#1090) [CLI][PFCWD][Multi-ASIC] Added multi ASIC support to 'pfcwd' CLI command (sonic-net#1080) Add namespace of the process in the coredump filename. (sonic-net#1091) [setup.py] Add aliases.ini to sonic_installer package (sonic-net#1088) [pfcwd] Add single asic unit tests for show commands (sonic-net#1085) Enhance SONiC with kubernetes management commands (sonic-net#962) [counterpoll] add port buffer drop group (sonic-net#1009) [CLI][PFC] Add multi ASIC options for pfcstat and 'show pfc counters' (sonic-net#1057) Signed-off-by: Stephen Sun <stephens@nvidia.com>
volodymyrsamotiy
added a commit
to volodymyrsamotiy/sonic-buildimage
that referenced
this pull request
Sep 8, 2020
5c173f7 [counterpoll] add port buffer drop group (sonic-net#1009) 62e44d9 [CLI][PFC] Add multi ASIC options for pfcstat and 'show pfc counters' (sonic-net#1057) Signed-off-by: Volodymyr Samotiy <volodymyrs@nvidia.com>
3 tasks
stepanblyschak
pushed a commit
to stepanblyschak/sonic-buildimage
that referenced
this pull request
May 10, 2021
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com> Co-authored-by: Danny Allen <daall@microsoft.com> Co-authored-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
mssonicbld
added a commit
that referenced
this pull request
Apr 23, 2025
…omatically (#22418) #### Why I did it src/sonic-swss-common ``` * 9664fbc - (HEAD -> master, origin/master, origin/HEAD) Adding a table to store peer info if peer creation is successful (#1009) (6 hours ago) [sudarshankumar4893] ``` #### How I did it #### How to verify it #### Description for the changelog
DavidZagury
pushed a commit
to DavidZagury/sonic-buildimage
that referenced
this pull request
Apr 28, 2025
…aint in sonic-srv6.yang and add prefix match checking in bgpcfgd (sonic-net#1009) <!-- Please make sure you've read and understood our contributing guidelines: https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md failure_prs.log skip_prs.log Make sure all your commits include a signature generated with `git commit -s` ** If this is a bug fix, make sure your description includes "fixes #xxxx", or "closes #xxxx" or "resolves #xxxx" Please provide the following information: --> #### Why I did it The prefix matching constraint hit some unknown problem about libyang in testing and it prevents multiple MYSIDs being used. fix issue: #[21876](sonic-net#21867) ##### Work item tracking - Microsoft ADO **(number only)**: #### How I did it Remove the prefix matching constraint in sonic-srv6.yang and add prefix matching check in bgpcfgd/managers_srv6.py. #### How to verify it <!-- If PR needs to be backported, then the PR must be tested against the base branch and the earliest backport release branch and provide tested image version on these two branches. For example, if the PR is requested for master, 202211 and 202012, then the requester needs to provide test results on master and 202012. --> #### Which release branch to backport (provide reason below if selected) <!-- - Note we only backport fixes to a release branch, *not* features! - Please also provide a reason for the backporting below. - e.g. - [x] 202006 --> - [ ] 201811 - [ ] 201911 - [ ] 202006 - [ ] 202012 - [ ] 202106 - [ ] 202111 - [ ] 202205 - [ ] 202211 - [ ] 202305 - [x] 202412 #### Tested branch (Please provide the tested image version) <!-- - Please provide tested image version - e.g. - [x] 20201231.100 --> - [ ] <!-- image version 1 --> - [ ] <!-- image version 2 --> #### Description for the changelog <!-- Write a short (one line) summary that describes the changes in this pull request for inclusion in 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 <!-- Provide a link to config_db schema for the table for which YANG model is defined Link should point to correct section on https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md --> #### A picture of a cute animal (not mandatory but encouraged)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make supervisor controled one-shot program autorestart 0 time, so the status will become FATAL instead of EXITED if fails. 'supervisorctl status' differentiates between normal exit and failure.
It will help diagnose in running switch.
Signed-off-by: Qi Luo qiluo-msft@users.noreply.github.com
- What I did
The supervisor controlled one-shot program status will become FATAL instead of EXITED if failure happens
- How I did it
Make supervisor controled one-shot program autorestart 0 time
- How to verify it
Test in lab switch
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)