-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[sflow] Exception handling for if_nametoindex (#11437) #13567
[sflow] Exception handling for if_nametoindex (#11437) #13567
Conversation
|
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
6bce8c1
to
51381f6
Compare
/azp run Azure.sonic-buildimage |
Commenter does not have sufficient privileges for PR 13567 in repo sonic-net/sonic-buildimage |
1 similar comment
Commenter does not have sufficient privileges for PR 13567 in repo sonic-net/sonic-buildimage |
/azp run Azure.sonic-buildimage |
Commenter does not have sufficient privileges for PR 13567 in repo sonic-net/sonic-buildimage |
@Gokulnath-Raja , you can try "/azpw run Azure.sonic-buildimage" |
/azpw run Azure.sonic-buildimage |
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
51381f6
to
9c43b40
Compare
catch system error and log as warning level instead of error level in case interface was already deleted Signed-off-by: Gokulnath-Raja <Gokulnath_R@dell.com>
9c43b40
to
fe46c10
Compare
/AzurePipelines run EasyCLA |
Commenter does not have sufficient privileges for PR 13567 in repo sonic-net/sonic-buildimage |
@Gokulnath-Raja , please sign CLA |
@lguohan Can you please review this PR? |
do we need to pick this to 202205, 202211 older branch? |
https://msazure.visualstudio.com/One/_workitems/edit/17813211 Related work items: sonic-net#9216, sonic-net#11437, sonic-net#13507, sonic-net#13512, sonic-net#13567, sonic-net#13972, sonic-net#14351, sonic-net#14371, sonic-net#14375, sonic-net#14401, sonic-net#14407, sonic-net#14408, sonic-net#14427, sonic-net#14428, sonic-net#14439
catch system error and log as warning level instead of
error level in case interface was already deleted.
Why I did it
sflow process exited when failed to convert the interface index from interface name
How I did it
Added exception handling code and logged when OSError exception.
How to verify it
Recreated the bug scenario #11437 and ensured that sflow process not exited.
Description for the changelog
catch system error and log as warning level instead of
error level in case interface was already deleted.
Logs
steps :
syslogs :