[Chassis] Added multi Asics support to everflow Ipv6#22237
[Chassis] Added multi Asics support to everflow Ipv6#22237abdosi merged 3 commits intosonic-net:masterfrom
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
(cherry picked from commit 654f93c2e6adb01c785f4a18a296a67c590ea157) Signed-off-by: mtaheri <manouchehr.taheri@nokia.com>
78cc9ac to
050caff
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: mtaheri <manouchehr.taheri@nokia.com>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| "{{ table_name }}|rule_998": { | ||
| "PRIORITY": "998", | ||
| "IP_TYPE": "IP", | ||
| "{{ action }}": "test_session_1", | ||
| "DST_IPV6": "2002:0225:7c6b:a982:d48b:230e:f271:0012" | ||
| }, |
There was a problem hiding this comment.
Do you still see everflow/test_everflow_ipv6.py::TestIngressEverflowIPv6::test_ip_type_ip failing?
It seems like IP_TYPE:IP doesn't match IPv6 packets even if the DST_IPV6 matches:
(Pdb) p mirror_packet_sent
<Ether dst=9c:69:ed:ce:fa:69 src=b'fe:5c:57:27:80:00' type=IPv6 |<IPv6 tc=0 fl=0 nh=TCP hlim=64 src=2002:225:7c6b:a982:d48b:230e:f271:0 [6to4 GW: 2.37.124.107] dst=2002:225:7c6b:a982:d48b:230e:f271:12 [6to4 GW: 2.37.124.107] |<TC
P sport=2020 dport=http_alt flags=A |<Raw load='tests.everflow.test_everfl' |>>>>
There was a problem hiding this comment.
The testcase passes for us since I have a local fix.
IP_TYPE "IP" is installed but not hit in SAI causing traffic failure (sonic-buildimage issue #25281). Nokia created CS00012446460 - Nokia has suggested a fix to Broadcom.
I have this fix locally.
There was a problem hiding this comment.
What's the reason IP_TYPE=IP should be supported by the brcm SAI but IP_TYPE=ANY shouldn't be supported by the brcm SAI?
I.E. why are we changing the test to use IP_TYPE=IPV6ANY instead of having the brcm SAI support IP_TYPE=ANY?
There was a problem hiding this comment.
Both should be supported by brcm SAI. We have created CS00012446025 for ANY and CS00012446460 for IP.
Changing IP_TYPE=ANY to IP_TYPE=IPV6ANY is temporary until we have a fix from brcm.
There was a problem hiding this comment.
I agree, IP_TYPE=ANY should map to IP_TYPE=IP in SAI code and we can get the fix for this from Broadcom.
There was a problem hiding this comment.
Actually, reviewing https://github.com/opencomputeproject/SAI/blob/master/inc/saiacl.h#L39 IP_TYPE=ANY includes ARP request/response as well which may not be supported in DNX. Using IP_TYPE=IP should include both IPv4 and IPv6 packets and that seems to be broken now. And that's a pending SAI fix, according to @mannytaheri
There was a problem hiding this comment.
IOW, the test needs to be fixed not to use ANY and SAI needs to be fixed to support IP correctly
We've seen that acl rule installation can take a while as discussed in sonic-net#21988 This check_rule_active/check_rule_counters code was added in sonic-net#21384 but it never worked on DNX due to unsupported SAI calls: sonic-net/sonic-buildimage#24665 Now that we're working around this issue with: sonic-net#22237 We're starting to run into timeouts waiting for ACL rules: Failed: Acl rule counters are not ready
We've seen that acl rule installation can take a while as discussed in sonic-net#21988 This check_rule_active/check_rule_counters code was added in sonic-net#21384 but it never worked on DNX due to unsupported SAI calls: sonic-net/sonic-buildimage#24665 Now that we're working around this issue with: sonic-net#22237 We're starting to run into timeouts waiting for ACL rules: Failed: Acl rule counters are not ready Signed-off-by: Nathan Wolfe <nwolfe@arista.com>
|
Just FYI, even with these changes I found tests would sporadically fail with |
arista-nwolfe
left a comment
There was a problem hiding this comment.
@mannytaheri are you seeing test_everflow_ipv6.py pass on multi-asic systems with this change?
I'm still seeing all the tests fail with Did not receive expected packet on any of ports and when I look into the state I see all the rules are returning N/A in the counter output:
> aclshow -a
RULE NAME TABLE NAME PRIO PACKETS COUNT BYTES COUNT
----------- ------------ ------ --------------- -------------
RULE_1 EVERFLOWV6 9999 N/A N/A
RULE_2 EVERFLOWV6 9998 N/A N/A
RULE_3 EVERFLOWV6 9997 N/A N/A
RULE_4 EVERFLOWV6 9996 N/A N/A
RULE_5 EVERFLOWV6 9995 N/A N/A
RULE_6 EVERFLOWV6 9994 N/A N/A
RULE_7 EVERFLOWV6 9993 N/A N/A
RULE_8 EVERFLOWV6 9992 N/A N/A
RULE_9 EVERFLOWV6 9991 N/A N/A
RULE_10 EVERFLOWV6 9990 N/A N/A
RULE_11 EVERFLOWV6 9989 N/A N/A
RULE_12 EVERFLOWV6 9988 N/A N/A
RULE_13 EVERFLOWV6 9987 N/A N/A
RULE_14 EVERFLOWV6 9986 N/A N/A
RULE_15 EVERFLOWV6 9985 N/A N/A
RULE_16 EVERFLOWV6 9984 N/A N/A
RULE_17 EVERFLOWV6 9983 N/A N/A
RULE_18 EVERFLOWV6 9982 N/A N/A
RULE_20 EVERFLOWV6 9980 N/A N/A
RULE_21 EVERFLOWV6 9979 N/A N/A
RULE_22 EVERFLOWV6 9978 N/A N/A
RULE_23 EVERFLOWV6 9977 N/A N/A
RULE_24 EVERFLOWV6 9976 N/A N/A
RULE_25 EVERFLOWV6 9975 N/A N/A
RULE_26 EVERFLOWV6 9974 N/A N/A
rule_999 EVERFLOWV6 999 N/A N/A
rule_998 EVERFLOWV6 998 N/A N/A
rule_997 EVERFLOWV6 997 N/A N/A
Despite all rules showing as active in show acl rule
|
@arista-nwolfe yes, they all pass for me on multi-asic systems with the change. |
…for IP_TYPE: ANY Signed-off-by: mtaheri <manouchehr.taheri@nokia.com>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
* Increase timeout for check_rule_active from 60s to 120s We've seen that acl rule installation can take a while as discussed in #21988 This check_rule_active/check_rule_counters code was added in #21384 but it never worked on DNX due to unsupported SAI calls: sonic-net/sonic-buildimage#24665 Now that we're working around this issue with: #22237 We're starting to run into timeouts waiting for ACL rules: Failed: Acl rule counters are not ready Signed-off-by: Nathan Wolfe <nwolfe@arista.com> * Bump up from 120s to 150s as timeouts are still seen Signed-off-by: Nathan Wolfe <nwolfe@arista.com> --------- Signed-off-by: Nathan Wolfe <nwolfe@arista.com>
This is a fix for sonic-mgmt issue sonic-net#21702 (All everflow/test_everflow_ipv6.py are erroring out) This was caused by PR 21384 (Add Support for Egress V6 Testing) Signed-off-by: mtaheri <manouchehr.taheri@nokia.com> Signed-off-by: Zhuohui Tan <zhuohui.tan@amd.com>
…22260) * Increase timeout for check_rule_active from 60s to 120s We've seen that acl rule installation can take a while as discussed in sonic-net#21988 This check_rule_active/check_rule_counters code was added in sonic-net#21384 but it never worked on DNX due to unsupported SAI calls: sonic-net/sonic-buildimage#24665 Now that we're working around this issue with: sonic-net#22237 We're starting to run into timeouts waiting for ACL rules: Failed: Acl rule counters are not ready Signed-off-by: Nathan Wolfe <nwolfe@arista.com> * Bump up from 120s to 150s as timeouts are still seen Signed-off-by: Nathan Wolfe <nwolfe@arista.com> --------- Signed-off-by: Nathan Wolfe <nwolfe@arista.com> Signed-off-by: Zhuohui Tan <zhuohui.tan@amd.com>
This is a fix for sonic-mgmt issue sonic-net#21702 (All everflow/test_everflow_ipv6.py are erroring out) This was caused by PR 21384 (Add Support for Egress V6 Testing) Signed-off-by: mtaheri <manouchehr.taheri@nokia.com> Signed-off-by: Mihut Aronovici <aronovic@cisco.com>
…22260) * Increase timeout for check_rule_active from 60s to 120s We've seen that acl rule installation can take a while as discussed in sonic-net#21988 This check_rule_active/check_rule_counters code was added in sonic-net#21384 but it never worked on DNX due to unsupported SAI calls: sonic-net/sonic-buildimage#24665 Now that we're working around this issue with: sonic-net#22237 We're starting to run into timeouts waiting for ACL rules: Failed: Acl rule counters are not ready Signed-off-by: Nathan Wolfe <nwolfe@arista.com> * Bump up from 120s to 150s as timeouts are still seen Signed-off-by: Nathan Wolfe <nwolfe@arista.com> --------- Signed-off-by: Nathan Wolfe <nwolfe@arista.com> Signed-off-by: Mihut Aronovici <aronovic@cisco.com>
Double commit: sonic-net#22237 During ZTP, the process creates temporary CONFIG_DB settings and if yang validation is enabled, these settings can cause failures. Lets add a YANG model and tests so these won't fail even though these are temporary settings. Failure might look like the below... [342113.096731] sonic-ztp[789615]: main() [342113.096785] sonic-ztp[789615]: File "/usr/local/bin/config_validator.py", line 40, in main 2025 Mar 11 15:43:01.942688 ztp-dut2 INFO sonic-ztp[789615]: main() [342113.096855] sonic-ztp[789615]: raise Exception("Tables without yang models: " + str(yang_parser.tablesWithOutYang)) 2025 Mar 11 15:43:01.942742 ztp-dut2 INFO sonic-ztp[789615]: File "/usr/local/bin/config_validator.py", line 40, in main [342113.096926] sonic-ztp[789615]: Exception: Tables without yang models: {'ZTP': {'mode': {'inband': 'true', 'ipv4': 'true', 'ipv6': 'true', 'out-of-band': 'true', 'product-name': '9716-32D-O-AC-AB-F-US', 'profile': 'active', 'serial-no': '971632D2451040'}}} 2025 Mar 11 15:43:01.942811 ztp-dut2 INFO sonic-ztp[789615]: raise Exception("Tables without yang models: " + str(yang_parser.tablesWithOutYang)) 2025 Mar 11 15:43:01.942882 ztp-dut2 INFO sonic-ztp[789615]: Exception: Tables without yang models: {'ZTP': {'mode': {'inband': 'true', 'ipv4': 'true', 'ipv6': 'true', 'out-of-band': 'true', 'product-name': '9716-32D-O-AC-AB-F-US', 'profile': 'active', 'serial-no': '971632D2451040'}}} 2025 Mar 11 15:43:01.967529 ztp-dut2 INFO sonic-ztp[788029]: sonic_yang(6):Note: Below table(s) have no YANG models: ZTP Why I did it Work item tracking Signed-off-by: rishi rewadkar <rrewadka@cisco.com>
This is a fix for sonic-mgmt issue sonic-net#21702 (All everflow/test_everflow_ipv6.py are erroring out) This was caused by PR 21384 (Add Support for Egress V6 Testing) Signed-off-by: mtaheri <manouchehr.taheri@nokia.com> Signed-off-by: Ravali Yeluri (WIPRO LIMITED) <v-ryeluri@microsoft.com>
…22260) * Increase timeout for check_rule_active from 60s to 120s We've seen that acl rule installation can take a while as discussed in sonic-net#21988 This check_rule_active/check_rule_counters code was added in sonic-net#21384 but it never worked on DNX due to unsupported SAI calls: sonic-net/sonic-buildimage#24665 Now that we're working around this issue with: sonic-net#22237 We're starting to run into timeouts waiting for ACL rules: Failed: Acl rule counters are not ready Signed-off-by: Nathan Wolfe <nwolfe@arista.com> * Bump up from 120s to 150s as timeouts are still seen Signed-off-by: Nathan Wolfe <nwolfe@arista.com> --------- Signed-off-by: Nathan Wolfe <nwolfe@arista.com> Signed-off-by: Ravali Yeluri (WIPRO LIMITED) <v-ryeluri@microsoft.com>
This is a fix for sonic-mgmt issue sonic-net#21702 (All everflow/test_everflow_ipv6.py are erroring out) This was caused by PR 21384 (Add Support for Egress V6 Testing) Signed-off-by: mtaheri <manouchehr.taheri@nokia.com> Signed-off-by: Abhishek <abhishek@nexthop.ai>
…22260) * Increase timeout for check_rule_active from 60s to 120s We've seen that acl rule installation can take a while as discussed in sonic-net#21988 This check_rule_active/check_rule_counters code was added in sonic-net#21384 but it never worked on DNX due to unsupported SAI calls: sonic-net/sonic-buildimage#24665 Now that we're working around this issue with: sonic-net#22237 We're starting to run into timeouts waiting for ACL rules: Failed: Acl rule counters are not ready Signed-off-by: Nathan Wolfe <nwolfe@arista.com> * Bump up from 120s to 150s as timeouts are still seen Signed-off-by: Nathan Wolfe <nwolfe@arista.com> --------- Signed-off-by: Nathan Wolfe <nwolfe@arista.com> Signed-off-by: Abhishek <abhishek@nexthop.ai>
This is a fix for sonic-mgmt issue sonic-net#21702 (All everflow/test_everflow_ipv6.py are erroring out) This was caused by PR 21384 (Add Support for Egress V6 Testing) Signed-off-by: mtaheri <manouchehr.taheri@nokia.com> Signed-off-by: Venkata Gouri Rajesh Etla <vrajeshe@cisco.com>
…22260) * Increase timeout for check_rule_active from 60s to 120s We've seen that acl rule installation can take a while as discussed in sonic-net#21988 This check_rule_active/check_rule_counters code was added in sonic-net#21384 but it never worked on DNX due to unsupported SAI calls: sonic-net/sonic-buildimage#24665 Now that we're working around this issue with: sonic-net#22237 We're starting to run into timeouts waiting for ACL rules: Failed: Acl rule counters are not ready Signed-off-by: Nathan Wolfe <nwolfe@arista.com> * Bump up from 120s to 150s as timeouts are still seen Signed-off-by: Nathan Wolfe <nwolfe@arista.com> --------- Signed-off-by: Nathan Wolfe <nwolfe@arista.com> Signed-off-by: Venkata Gouri Rajesh Etla <vrajeshe@cisco.com>
Description of PR
This is a fix for sonic-mgmt issue #21702 (All everflow/test_everflow_ipv6.py are erroring out)
This was caused by PR 21384 (Add Support for Egress V6 Testing)
Everflow issues:
Summary:
Fixes # (issue)
sonic-mgmt issue #21702
Type of change
Back port request
Approach
What is the motivation for this PR?
To Fix
How did you do it?
Added multi Asics support
How did you verify/test it?
Ran the entire everflow suites on multi Asics chassis
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation