sonic-net / sonic-buildimage

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

[sflow] | SysUptime in exported sflow packets is resetted after disabling sflow #7445

Open Hedgehog-Guru opened 3 years ago

Hedgehog-Guru commented 3 years ago

Description

SysUptime in exported sflow packets is resetted after sflow service was restarted

Steps to reproduce the issue:

  1. Enable sflow and add some reachable collector
    config feature state sflow enabled
    config sflow enable 
    config sflow collector add NAME 1.1.1.1
  2. Check SysUptime field in exported packets
  3. Disable and again enable sflow
    config sflow disable
    config sflow enable
  4. Check SysUptime in exported packets again

Describe the results you received:

SysUptime field is resetted after sflow service was restarted

Describe the results you expected:

SysUptime is equial to host Linux uptime

Output of show version:

SONiC Software Version: SONiC.SONIC.202012.65-5bdbfcf_Internal
Distribution: Debian 10.9
Kernel: 4.19.0-12-2-amd64
Build commit: 5bdbfcfb
Build date: Fri Apr 16 07:25:51 UTC 2021
Built by: sw-r2d2-bot@r-build-sonic-ci02

Platform: x86_64-mlnx_msn4700-r0
HwSKU: ACS-MSN4700
ASIC: mellanox
ASIC Count: 1
Serial Number: MT2013X34415
Uptime: 15:49:49 up  5:24,  1 user,  load average: 1.94, 0.77, 0.72 

Output of show techsupport:

sonic_dump_r-qa-sw-eth-2044_20210420_155523.tar.gz example output.txt

anshuv-mfst commented 3 years ago

Issue Triage 4/28:

  1. Issue discussed with sflow team, Known limitation.
  2. Requires documentation for capturing this behavior - need to be included in release notes.