sonic-net / sonic-buildimage

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

[ sFlow ] Failed to enable unit #9150

Open SavchukRomanLv opened 2 years ago

SavchukRomanLv commented 2 years ago

Description

Issue have been found during execution sflow test suite from sonic-mgmt - all cases failed.

Steps to reproduce the issue:

Execute command in DUT cli: sudo config sflow enable

Describe the results you received:

sFlow can not start during error: Failed to enable unit: Unit file /etc/systemd/system/sflow.service is masked.

Describe the results you expected:

sFlow service started

Output of show version:

`SONiC Software Version: SONiC.master.46262-dirty-20211026.173812 Distribution: Debian 10.11 Kernel: 4.19.0-12-2-amd64 Build commit: b0c73d9a7 Build date: Tue Oct 26 17:47:44 UTC 2021 Built by: AzDevOps@sonic-build-workers-000TZT

Platform: x86_64-accton_wedge100bf_32x-r0 HwSKU: montara ASIC: barefoot ASIC Count: 1`

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

zhangyanzhao commented 2 years ago

@SavchukRomanLv have you enabled the sflow config before you run the command? That possibly helps, can you double check?

AlanYoush commented 1 month ago

I think you can check whether sflow feature is enabled in config_db.json, such as: "sflow": { "state" : "enabled" }