Skip to content
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

switch DumpFlowStats error: Unsupported match field #84

Open
gotostack opened this issue Nov 11, 2024 · 0 comments
Open

switch DumpFlowStats error: Unsupported match field #84

gotostack opened this issue Nov 11, 2024 · 0 comments

Comments

@gotostack
Copy link

gotostack commented Nov 11, 2024

We have these OVS flows:

 cookie=0x0, duration=201.184s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=200,ip,in_port=9,dl_vlan=273,dl_dst=fa:16:3e:01:dd:2c,nw_src=169.254.169.254 actions=pop_vlan,output:119
 cookie=0x0, duration=201.184s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=200,ip,in_port=9,dl_vlan=273,dl_dst=fa:16:3e:53:93:6c,nw_src=169.254.169.254 actions=pop_vlan,output:30
 cookie=0x0, duration=201.184s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=200,ip,in_port=9,dl_vlan=273,dl_dst=fa:16:3e:1d:ad:66,nw_src=169.254.169.254 actions=pop_vlan,output:35
 cookie=0x0, duration=201.183s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=100,arp,dl_vlan=273,arp_tpa=10.20.20.113 actions=pop_vlan,output:113
 cookie=0x0, duration=201.183s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=100,arp,dl_vlan=273,arp_tpa=10.10.10.108 actions=pop_vlan,output:26
 cookie=0x0, duration=201.183s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=100,arp,dl_vlan=272,arp_tpa=10.30.30.133 actions=pop_vlan,output:35
 cookie=0x0, duration=201.183s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=100,icmp6,dl_vlan=273,dl_dst=fa:16:3e:3d:bd:61,icmp_type=133 actions=pop_vlan,output:17
 cookie=0x0, duration=201.183s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=100,icmp6,dl_vlan=273,dl_dst=fa:16:3e:3d:bd:61,icmp_type=134 actions=pop_vlan,output:17
 cookie=0x0, duration=201.183s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=100,icmp6,dl_vlan=273,dl_dst=fa:16:3e:3d:bd:61,icmp_type=136 actions=pop_vlan,output:17
 cookie=0x0, duration=201.183s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=100,icmp6,dl_vlan=273,dl_dst=fa:16:3e:3d:bd:61,icmp_type=137 actions=pop_vlan,output:17
 cookie=0x0, duration=201.182s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=100,icmp6,dl_vlan=273,icmp_type=135,nd_target=2024:329:1111::1ab actions=pop_vlan,output:115
 cookie=0x0, duration=201.182s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=100,icmp6,dl_vlan=273,icmp_type=135,nd_target=fe80::302:3ff:fe04:506 actions=pop_vlan,output:33
 cookie=0x0, duration=201.182s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=100,icmp6,dl_vlan=273,icmp_type=135,nd_target=1111:2222::295 actions=pop_vlan,output:31
 cookie=0x0, duration=201.182s, table=0, n_packets=0, n_bytes=0, idle_age=201, priority=100,icmp6,dl_vlan=273,icmp_type=135,nd_target=fe80::f816:3eff:fe35:9748 actions=pop_vlan,output:18

When call OFSwitch.DumpFlowStats we get errors like this:

E1111 17:53:52.088468   11670 match.go:188] "Failed to decode MatchField" err="Unsupported match field: 31 in class: 64022" data="\x93l\x80\x00\n\x02\b\x00\x80\x00\f\x02\x11\x11\x80\x00\x16\x04\xa9\xfe\xa9\xfe\x00\x00...

E1111 17:53:52.088526   11670 match.go:95] "Failed to unmarshal MatchField" err="Unsupported match field: 31 in class: 64022" data="\xfa\x16>S\x93l\x80\x00\n\x02\b\x00\x80\x00\f\x02\x11\x11\x80\x00\x16\x04\xa9\xfe\xa9...

E1111 17:53:52.088561   11670 multipart.go:2176] "Failed to unmarshal FlowDesc's Match" err="Unsupported match field: 31 in class: 64022" data="\x80\x00\x06\x06\xfa\x16>S\x93l\x80\x00\n\x02\b\x00\x80\x00\f\x02\x11\x11...

E1111 17:53:52.088595   11670 multipart.go:287] "Failed to unmarshal MultipartReply's Body" err="Unsupported match field: 31 in class: 64022" data="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00*\x80\x00...

E1111 17:53:52.088631   11670 stream.go:44] "Failed to parse received message" err="Unsupported match field: 31 in class: 64022" bytes="\x06\x13\bh\x00\x00\x00\x93\x00\x01\x00\x00\x00\x00\x00\x00\x00\xa0\x00\x00\x00\x00...

After remove the dl_vlan match and pop_vlan action, the OFSwitch.DumpFlowStats works fine.
Then we also tried to change the match filed dl_vlan to vlan_vid/vlan_tci, but not work.

Has anyone experienced the same problem? How was it resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant