-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dhcp6_relay] [counters] Counters show statistics for deleted vlans during config reload #15047
Comments
@yaqiangz Add yaqiang as well. |
Will check. |
We are working on this, ETA 6.9 |
) What I did Fix this issue: sonic-net/sonic-buildimage#15047 Show dhcp_relay ipv6 counter will display vlan which has been deleted. How I did it Remove related info in state_db while deleting a vlan How to verify it Add unit test Build utilities and run cmd to verify Signed-off-by: Yaqiang Zhu <[email protected]>
) What I did Fix this issue: sonic-net/sonic-buildimage#15047 Show dhcp_relay ipv6 counter will display vlan which has been deleted. How I did it Remove related info in state_db while deleting a vlan How to verify it Add unit test Build utilities and run cmd to verify Signed-off-by: Yaqiang Zhu <[email protected]>
) What I did Fix this issue: sonic-net/sonic-buildimage#15047 Show dhcp_relay ipv6 counter will display vlan which has been deleted. How I did it Remove related info in state_db while deleting a vlan How to verify it Add unit test Build utilities and run cmd to verify Signed-off-by: Yaqiang Zhu <[email protected]>
) What I did Fix this issue: sonic-net/sonic-buildimage#15047 Show dhcp_relay ipv6 counter will display vlan which has been deleted. How I did it Remove related info in state_db while deleting a vlan How to verify it Add unit test Build utilities and run cmd to verify Signed-off-by: Yaqiang Zhu <[email protected]>
Fixed by sonic-net/sonic-utilities#2852 |
…nic-net#2852) What I did Fix this issue: sonic-net/sonic-buildimage#15047 Show dhcp_relay ipv6 counter will display vlan which has been deleted. How I did it Remove related info in state_db while deleting a vlan How to verify it Add unit test Build utilities and run cmd to verify Signed-off-by: Yaqiang Zhu <[email protected]>
Seen again on latest labels,. This time, the counters for member interfaces of downstream Vlan's are still seen.
Related to the new interface counters feature added in dhcp6relay. Vlan counters are cleared but member interfaces are not |
Why I did it Fix issue: sonic-net/sonic-buildimage#15047 of after deleting vlan member and vlan, the counters for for vlan / vlan member are still seen. How I did it Delete related counter entry in state_db when deleting vlan and vlan members. How to verify it All UTs passed Manually test Signed-off-by: Yaqiang Zhu <[email protected]>
Why I did it Fix issue: sonic-net/sonic-buildimage#15047 of after deleting vlan member and vlan, the counters for for vlan / vlan member are still seen. How I did it Delete related counter entry in state_db when deleting vlan and vlan members. How to verify it All UTs passed Manually test Signed-off-by: Yaqiang Zhu <[email protected]>
CLI issue is fixed. Thanks for the quick response. One problem is remaining. If the config_db is updated (vlan is removed) and config reload is done, the stale entries in state_db are not deleted. Fix has to be in dhcp6relay (or container start script) to delete all the entries of the counter table during the process/container start |
@yaqiangz update_vlan_mapping So if some interfaces are not in current Vlan/Port-channel member group or not Loopback0, we will skip counter initialize job for them. It won't impact service and once the interfaces added back to Vlan/portchannel groups their counter will be right initialized. But for this cosmetic issue fix, you can add a function to go through all Ethernet interfaces, and delete "DHCPv6_COUNTER_TABLE|Ethernet*" in state_db. If want fix the issue in dhcp6_relay repo the diff may something like following void delete_counter(std::shared_ptrswss::DBConnector state_db, std::string &ifname) { relay.cpp |
Thanks @jcaiMR |
Hi @yaqiangz Any ETA for fix? |
ETA 12.29 |
Why I did it Fix issue: sonic-net/sonic-buildimage#15047 of after deleting vlan member and vlan, the counters for for vlan / vlan member are still seen. How I did it Delete related counter entry in state_db when deleting vlan and vlan members. How to verify it All UTs passed Manually test Signed-off-by: Yaqiang Zhu <[email protected]>
IPv6 fix PR (merged): sonic-net/sonic-dhcp-relay#45 IPv4 fix PR (waiting review): sonic-net/sonic-dhcpmon#14 |
[202311][counter] Clear counter table when dhcpmon init (#14) Cherry-pick from #14 Why I did it Fix issue sonic-net/sonic-buildimage#15047 dhcp counter didn't restore after config reload Work item tracking Microsoft ADO (number only): 26270786 How I did it Clear all counters when dhcpmon start Remove clear counter in initialize_counter since they are cleared in previous How to verify it Build debian packet and install in DUT do manually testing Run dhcp_relay test, all passed Signed-off-by: Yaqiang Zhu <[email protected]>
Cherry-pick from #14 Why I did it Fix issue sonic-net/sonic-buildimage#15047 dhcp counter didn't restore after config reload Work item tracking Microsoft ADO (number only): 26270786 How I did it Clear all counters when dhcpmon start Remove clear counter in initialize_counter since they are cleared in previous How to verify it Build debian packet and install in DUT do manually testing Run dhcp_relay test, all passed
Issue fixed in 202305 & 202311. @yaqiangz Will this fix (sonic-net/sonic-dhcp-relay@5ae186f) be ported back to 202205? |
++ @yxieca |
@vivekrnv This PR is to fix counter issue in IPv6 per interface counter, but IPv6 per interface counter support haven't been backport to 202205 Hi @kellyyeh Seems this PR is to update to latest and backport #17841. May I know why we abandon it? |
@yaqiangz, This is the problem i'm seeing. "If the config_db is updated (vlan is removed) and config reload is done, the stale entries in state_db are not deleted. Fix has to be in dhcp6relay (or container start script) to delete all the entries of the counter table during the process/container start" I understand that the per-interface counter fix is not present in 202205. But the other problem exists. Will this be fixed |
Hi @yaqiangz , @yxieca This issue in seen again. With this revert sonic-net/sonic-dhcp-relay@84e4419, we've also removed the changes to clear all the counters in state_db during dhcp init. Please FYI |
Confirmed that clear counters has been removed with reverting per-interface counter |
ETA 2025.1.18 |
Description
dhcpv6 show statistics for even deleted vlans
Steps to reproduce the issue:
config feature state dhcp_relay enabled
)config dhcp_relay ipv6 destination add 10 2000:100::2
)show dhcp_relay ipv6 counters
)Describe the results you received:
Describe the results you expected:
Output of
show techsupport
:sonic_dump_qa-eth-vt04-1-3700v_20230511_123606.tar.gz
The text was updated successfully, but these errors were encountered: