-
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
[vlan] multiple test cases fail #8111
Comments
We see the same issue on SONiC master - VLAN TCs are failing. This is because of IP add/remove validation added by sonic-net/sonic-utilities#1414 . The validate_ip_mask() (https://github.com/Azure/sonic-utilities/blob/888701b67fd4f1cc5b9da534a360048f93f263f4/config/main.py#L807) not just validate user-provided IP but also can modify it. E.g., As a result, Not sure what's the right way to fix this. Probably we should update Another option, just to revert original PR for now... @d-dashkov, please comment. |
@akokhan A case with IP address transformation was added to resolve this issue #6776 and validate_ip_mask() should check the mask and IPs, but additionally it turned out that ipaddress.ip_address() could correct similar cases "10.10.10.002/24" to "10.10.10.2/24 ". If this causes problems, I propose to slightly change validate_ip_mask() and return 0 instead of changing the IP. |
@d-dashkov , thanks for providing details. I believe that the function that intent to validate input parameters should not modify them. In this case, the IP addresses are used as a part of Redis keys. So, the impact can be unexpected like in case of VLAN TCs failure. So, as for me, it totally make sense to modify |
PR with the fix under review: sonic-net/sonic-utilities#1709 |
@akokhan could you share the failure messages you were seeing for the VLAN tests prior to the fix? Want to check if it has the same symptoms as the failures I am seeing. |
@theasianpianist , will do |
@akokhan I believe I am seeing the same issue that is described here and in the linked PR, as I see IPv6 addresses not being deleted after running the deletion CLI command. Thanks for your assistance on this issue. |
@theasianpianist , thank you for providing details. I see the issue with exactly the same logs. The problem is that IPv6 address was added through config_db.json as |
The text was updated successfully, but these errors were encountered: