[SNMP]: Add dependency in SNMP service to start after syncd#8860
Closed
SuvarnaMeenakshi wants to merge 1 commit intosonic-net:201811from
Closed
[SNMP]: Add dependency in SNMP service to start after syncd#8860SuvarnaMeenakshi wants to merge 1 commit intosonic-net:201811from
SuvarnaMeenakshi wants to merge 1 commit intosonic-net:201811from
Conversation
service. SNMP tries to access COUNTERS_DB, to avoid errors while accessing DB, SNMP should start after syncd. Signed-off-by: Suvarna Meenakshi <sumeenak@microsoft.com>
Collaborator
|
It's kind of partial backport of #3656. |
vivekrnv
added a commit
to vivekrnv/sonic-buildimage
that referenced
this pull request
Oct 21, 2021
Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
Contributor
Author
|
Closing this as we do not have a strong reason for this fix. |
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.
service. SNMP tries to access COUNTERS_DB, to avoid errors
while accessing DB, SNMP should start after syncd.
Signed-off-by: Suvarna Meenakshi sumeenak@microsoft.com
Why I did it
When SNMP Interface QoS counters is queried around the same time as syncd/swss restarts, the below error is seen:
This error comes only once after service restarts.
This happens because upon config reload, the order of services that comes up is:
swss
snmp
syncd
When SNMP comes up before syncd and SNMP query for QoS counters is done in parallel, then the above error is seen.
How I did it
Add dependency so that SNMP comes up after syncd comes up, which will ensure that COUNTERS_DB is populated when SNMP tries to access it.
How to verify it
Run the image after this fix, do a config reload, perform continuous query of qos counters using:
snmpwalk -v2c -c 1.3.6.1.4.1.9.9.580.1.5.5
continuous query should not generate any error in syslog.
snmp service should come up after swss and syncd services.
Checked "sudo systemctl status to check start time of each service.
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)