Upgrading hsflowd version from 2.0.45 to 2.0.51-26 to address for [sf…#15362
Conversation
|
@Gokulnath-Raja Please ensure all the existing sonic-mgmt Sflow tests pass with this upgrade. |
|
@Gokulnath-Raja Please also sync to latest master to resolve the conflicts. |
1161a28 to
2df0409
Compare
Done |
Validated sFlow functionality attached sample logs |
…low]ERR sflow#hsflowd: device Loopback0 Get SIOCGIFFLAGS failed : No such device sonic-net#13407 Signed-off-by: Gokulnath-Raja <[email protected]> Co-authored-by: mohanapriya-meganathan <[email protected]>
|
@Gokulnath-Raja Thanks. Did we qualify with sonic-mgmt sflow test suite? It would cover different test scenarios and not basic sanity test. |
Could not find any sonic-mgmt sflow test suite... We have done following testing,
|
Hi @Gokulnath-Raja We do have sonic-mgmt test in sflow https://github.com/sonic-net/sonic-mgmt/blob/master/tests/sflow/test_sflow.py |
|
Hi @Gokulnath-Raja Any update here? |
We are working on building test topology and test server to run the mgmt test_sflow, will keep you updated. |
@dgsudharsan , We ran the script and found one failure. When we are deleting the agent-id, hsflowd is referring for the eth0 interface and expecting samples in that interface. (This is with the updated hsflowd , When you start hsflowd with no explicit agent-id configured, it will run an "election" to decide which IP address to adopt.). We are debugging further. |
|
@Gokulnath-Raja Please compile with flag ENABLE_SFLOW_DROPMON=y and make sure compilation passes. Recent sflow upgrade to 2.0.45-1 broke the build and I have notified the PR owners about it. |
@dgsudharsan getting below dropman patch issues |
@dgsudharsan did following changes and successfully compile with flag ENABLE_SFLOW_DROPMON=y |
|
@Gokulnath-Raja Please check this PR #15948. Once its merged, you can resync your PR and verify if it compiles fine. |
|
@Gokulnath-Raja Can you please resync your changes to latest master as #15948 is merged? |
|
@Gokulnath-Raja Can you please update the status of sonic-mgmt sflow tests? |
@dgsudharsan we found the RCA and fixed the same... Running tests now will update the PR |
@dgsudharsan we have raise PR for sonic-mgmt test for sflow sonic-net/sonic-mgmt#9766 kindly approve the same |
…low]ERR sflow#hsflowd: device Loopback0 Get SIOCGIFFLAGS failed : No such device sonic-net#13407 (sonic-net#15362) Signed-off-by: Gokulnath-Raja <[email protected]> Co-authored-by: mohanapriya-meganathan <[email protected]>
…low]ERR sflow#hsflowd: device Loopback0 Get SIOCGIFFLAGS failed : No such device sonic-net#13407 (sonic-net#15362) Signed-off-by: Gokulnath-Raja <[email protected]> Co-authored-by: mohanapriya-meganathan <[email protected]>
|
@Gokulnath-Raja PR conflicts with 202211 branch |
|
Cherry-pick PR to 202305: #16615 |
…low]ERR sflow#hsflowd: device Loopback0 Get SIOCGIFFLAGS failed : No such device #13407 (#15362) Signed-off-by: Gokulnath-Raja <[email protected]> Co-authored-by: mohanapriya-meganathan <[email protected]>
Why I did it
Below error log is seen sometimes when services startup.
ERR sflow#hsflowd: device Loopback0 Get SIOCGIFFLAGS failed : No such device
How I did it
latest changes to hsflowd will avoid this race (e.g. the release tagged as v2.0.51-26). The new start up sequence waits first for the redis connections to come up, then waits for the redis to indicate SYSTEM_READY|SYSTEM_STATE Status=Up, and only then does it read the interfaces from Linux.
How to verify it
Post upgrade to latest version of hsflowd, manually verifying the sflow functionalities such as counter/flow samples.
UT is inprogres.
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)