[LogAnalyzer] Ignore "sflowmgrd process is not running" warning in LogAnalyzer for master#2261
[LogAnalyzer] Ignore "sflowmgrd process is not running" warning in LogAnalyzer for master#2261bingwang-ms wants to merge 1 commit intosonic-net:masterfrom
Conversation
|
Is this related to this PR sonic-net/sonic-buildimage#5153 ? |
Yes. I think so. Before the monit config is fixed, we need to ignore this error. |
| # sflowmgrd is configed in Monit, but not included in current master branch image | ||
| # So a workaround is added for master branch. Once the issue is adressed, we should | ||
| # rm this patch | ||
| if "master" in duthost.os_version: |
There was a problem hiding this comment.
os_version contains 'master' is a very specific check that only works for images built by public Jenkins and/or no tag on the latest commit. not sure if we should keep it here or ignore the event in general until the fix is in?
There was a problem hiding this comment.
What about adding a negative check?
if '201911' not in duthost.os_version:
There was a problem hiding this comment.
os_version contains 'master' is a very specific check that only works for images built by public Jenkins and/or no tag on the latest commit. not sure if we should keep it here or ignore the event in general until the fix is in?
I add the check for master intendedly because I expect this patch only work for mater branch in a few days, as PR sonic-net/sonic-buildimage#5153 will address it. Will this issue exist in next 201911 build?
There was a problem hiding this comment.
If this ignore will only be needed for a few days, maybe it is better to update the common ignore file in jenkins just before running the tests?
There was a problem hiding this comment.
Oh. That's quite a creative idea. I will apply this easy patch on Jenkins now. Thanks Xin.
|
A patch is applied on Jenkins, and no need to update code. |
… advance submodule head (sonic-net#11518) sairedis: * 38c0bb1 2022-07-21 | [sairedis] Fix reopen recoding file (sonic-net#1087) (HEAD -> 202205, github/202205) [Kamil Cudnik] platform-daemon: * 17587b6 2022-07-22 | [ycabled] add secure channel support for grpc dualtor active-active connectivity (sonic-net#275) (HEAD -> 202205, github/202205) [vdahiya12] linkmgrd: * c911ec7 2022-07-21 | Avoid unnecessary error logs from `handleGetServerMacAddressNotification` (sonic-net#96) (HEAD -> 202205) [Jing Zhang] * bbae81d 2022-07-18 | Add support for reconciliation after warm restart (sonic-net#76) [Jing Zhang] utilities: * bcc1206 2022-07-20 | Change db_migrator major version on master branch from version 2 to 3 (sonic-net#2272) (HEAD -> 202205) [Vaibhav Hemant Dixit] * ad40697 2022-07-21 | Fix test for pfcwd_sw_enable in db_migrator_test (sonic-net#2253) [bingwang-ms] * 886f612 2022-07-22 | Revert "show commands for SYSTEM READY (sonic-net#1851) (sonic-net#2261)" (sonic-net#2274) (github/202205) [Ying Xie] * a6404b7 2022-07-17 | show commands for SYSTEM READY (sonic-net#1851) (sonic-net#2261) [Senthil Kumar Guruswamy] swss-common: * 509b265 2022-07-06 | Add device global table definition (sonic-net#645) (HEAD -> 202205) [tjchadaga] Signed-off-by: Ying Xie <ying.xie@microsoft.com>
Description of PR
Summary:
sflowmgrd is configured in Monit, but not included in current master branch image. As a result, there will be a warning in syslog.
To workaroud this error temporarily, this PR add a patch to ignore the pattern for master branch.
Type of change
Approach
Add a patch to ignore 'sflowmgrd' process is not running for master branch.
What is the motivation for this PR?
This PR is to ignore test errors caused by 'sflowmgrd' process is not running in syslog.
How did you do it?
Add a new pattern to ignore_list of LogAnalyzer.
How did you verify/test it?
Verified on dx010 running master branch.
Any platform specific information?
No.
Supported testbed topology if it's a new test case?
No.
Documentation
No.