sonic-net / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
722 stars 1.38k forks source link

syslogs error logs "sflowmgrd is not running" #5025

Open banagiri opened 4 years ago

banagiri commented 4 years ago

Description

monit tool is logging error logs in syslog as "sflowd is not running", which is causing the log analyzer from ptf to fail

Steps to reproduce the issue:

  1. config reload or reboot

Describe the results you received: Error logs sonic ERR monit[377]: 'sflowmgrd' process is not running

root@sonic:/home/admin# systemctl status sflow ● sflow.service    Loaded: masked (Reason: Unit sflow.service is masked.)    Active: inactive (dead) since Fri 2019-02-15 05:26:42 UTC; 10min ago Main PID: 14583 (code=exited, status=0/SUCCESS)

Describe the results you expected: No errors to be logged

Additional information you deem important (e.g. issue happens only occasionally): This relates to https://github.com/Azure/sonic-buildimage/pull/4137 https://github.com/Azure/sonic-utilities/pull/944

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```
banagiri commented 4 years ago

@jleveque @yozhao101

This can be fixed by enabling sflow service in init_cfg.json.j2. But need to know what is the reason for disabling sflow? was it causing delayed startup or any ? Why the monit script is checking for a disabled service?

yozhao101 commented 4 years ago

Why the monit script is checking for a disabled service?

The Monit to monitor the processes in sflow container is merged into repo before sflow service is disabled. Right now I am working on the solution which will not monitor the processes in the service according to whether such service is enabled or disabled in configuration file.