Open dellwuchuan opened 2 years ago
https://github.com/Azure/sonic-buildimage/blob/master/dockers/docker-sflow/port_index_mapper.py#L48 need be improved to handle this situation.
@jeff-yin
Another error log in the same test and same module:
ERR sflow#port_index_mapper:
@venkatmahalingam could you please update when this issue can be fixed for 202211 and 202205?
@padmanarayana Please comment on this issue. @jeff-yin FYI.
@Gokulnath-Raja is working on this issue.
@Gokulnath-Raja is working on this issue.
Raised pull request https://github.com/sonic-net/sonic-buildimage/pull/13567
Description
When I enable SFLOW configuration as background configuration which is existing with other configuration, such as vlan and port. Vlan deletion could trigger sflow error log - ERR sflow#port_index_mapper: no interface with this name
One of my colleague had some investigation on this issue, I hope it could provide some advantage. _Failing at this line https://github.com/Azure/sonic-buildimage/blob/master/dockers/docker-sflow/port_index_mapper.py#L48 Method call to "socket" python library which means the given interface doesn't exist when this call is made
Based on the syslog this failed directly after the following command was run:
sudo config vlan del 4094 Its likely that the host interface is removed before sflow processes the removal.
This should be resolved in sflow to make it tolerant of this particular deletion flow._
Steps to reproduce the issue:
sudo config feature state sflow enabled sudo config sflow enable sudo config sflow collector add collector0 50.0.0.2 --port 6343 --vrf default sudo config sflow interface disable all sudo config sflow interface enable Ethernet0 sudo config sflow interface enable Ethernet28
Describe the results you received:
In the system log of sonic switch, one sflow error log could be catched: ERR sflow#port_index_mapper: no interface with this name
Describe the results you expected:
There should be no sflow error log
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):