sonic-net / sonic-buildimage

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

[ sFlow ] Failed to enable unit #9150

Open SavchukRomanLv opened 3 years ago

SavchukRomanLv commented 3 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 3 years ago

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

AlanYoush commented 5 months ago

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

johndexter1 commented 4 months ago

This was confusing for me as well. I thought sudo config sflow enable should enable sflow to work, but you need to execute sudo config feature state sflow enabled before