[OPNFLWPLUG-37] Unable to execute some actions Created: 20/Jan/14 Updated: 27/Sep/21 Due: 31/Mar/14 Resolved: 24/Mar/14 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Praveen Darshanam | Assignee: | Gaurav Bhagwani |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| Attachments: |
|
| External issue ID: | 327 |
| Description |
|
Was able to PUT/GET successfuly (seeing 200 OK) the xml file for push-mpls-action (and set-dl-src-action, set-dl-dst-action, set-vlan-id-action). But we are unable to see flows on the switch. Using below XML: Please let us know if you need more information. |
| Comments |
| Comment by Gaurav Bhagwani [ 21/Jan/14 ] |
|
I am not hitting the issue with Ovs and latest controller code Put Input : <?xml version="1.0" encoding="UTF-8" standalone="no"?> Status : 200 Ok On Ovs Switch : mininet@mininet-vm:~$ sudo ovs-ofctl -O openflow13 dump-flows s1 cookie=0x379, duration=10.587s, table=2, n_packets=0, n_bytes=0, idle_timeout=3400, hard_timeout=1200, send_flow_rem priority=8,udp,in_port=0,dl_src=00:00:00:11:23:ae,dl_dst=20:14:29:01:19:61,nw_src=19.0.0.0/10,nw_dst=172.168.0.0/18,nw_tos=32,nw_ecn=3,tp_src=25364,tp_dst=8080 actions=push_mpls:0x8848 On Cpqd Switch : root@ubuntu:/cpqd/ofsoftswitch13# sudo dpctl tcp:127.0.0.1:6681 stats-flow SENDING: RECEIVED: ", dur_s="12", dur_ns="893000", prio="8", idle_to="3400", hard_to="1200", cookie="0x379", pkt_cnt="0", byte_cnt="0", insts=[apply{acts=[mpls_psh {eth="0x8848"}]}]} |
| Comment by Praveen Darshanam [ 22/Jan/14 ] |
|
Gaurav, we are blocked with testing Actions, set-field because of flow entries not being pushed to OVSK switch. We are using following versions Is it possible to fix the issue for Mininet 2.0.0 with OVS 1.10.0 as we are facing lots of issues installing/configuring Mininet 2.1.0 with OVS 2.0.0. |
| Comment by Krishnan Iyer [ 22/Jan/14 ] |
|
Attachment f113.xml has been added with description: set-nw-ttl test-case |
| Comment by Krishnan Iyer [ 22/Jan/14 ] |
|
Attachment f120.xml has been added with description: set-field-tcp-source-port test-case |
| Comment by Krishnan Iyer [ 22/Jan/14 ] |
|
Version Info: krish@krish-Ubuntu32:~$ ssh mininet@192.168.56.105 -X
mininet@mininet-vm:~$ mn --version mininet@mininet-vm:~$ ovs-ofctl -V mininet@mininet-vm:~$ uname -a Initially, we thought it was an environment issue when you mentioned that it worked for you. Scenario: |
| Comment by Krishnan Iyer [ 22/Jan/14 ] |
|
URL: 192.168.56.101:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/256 The flows and table IDs change as per the XMLs. Plugin Version: updates in test scripts Change-Id: I6931f6449370f65df9a081e3089f9f8d0c0e20e8 |
| Comment by Gaurav Bhagwani [ 23/Jan/14 ] |
|
I have the following observation on that : 1) I tested with the xml provided in the bug, on the OVS Switch, it throws bad action error from switch Input: Error : 2014-01-23 16:49:02.268 IST [pool-29-thread-3] ERROR o.o.o.o.m.c.t.ErrorTranslator - Error Message received: type=2[BADACTION], code=0[ H♦░ ☻ ☺ ☺ yÇ 09[04 0e 00 c0 00 00 03 69 00 00 00 00 00 00 00 65 00 00 00 00 00 00 00 ff 02 00 0d 48 04 b0 00 02 ff ff ff ff ff ff ff ff ff ff ff ff 00 01 00 00 00 01 00 79 80 00 04 08 00 00 00 00 00 00 30 39 ] 2014-01-23 16:49:02.273 IST [md-sal-binding-notification-2] INFO o.o.c.sal.binding.impl.NotifyTask - 2) I tried pushing flows through OpenflowpluginTestCommandProvider available at plugin , it has f37 as testcase for set_nwttl Input : addMDFlow openflow: <dpid> f37 Error : H♦░ ☻ ☺ ☺ yÇ 09[04 0e 00 c0 00 00 03 69 00 00 00 00 00 00 00 65 00 00 00 00 00 00 00 ff 02 00 0d 48 04 b0 00 02 ff ff ff ff ff ff ff ff ff ff ff ff 00 01 00 00 00 01 00 79 80 00 04 08 00 00 00 00 00 00 30 39 ] 2014-01-23 16:49:02.273 IST [md-sal-binding-notification-2] INFO o.o.c.sal.binding.impl.NotifyTask - 3) I tried both the above senerio on cpqd and it works fine Input1: <above xml> Input2: addMDFlow openflow:1 f37 Output1: stat_repl{type="flow", flags="0x0", stats=[{table="2", match="oxm {metadata="0x3039", eth_type="0x86dd", ip_dscp="60", ip_ecn="3", nw_src_ipv6="1234:5678:9abc:def0:fdcd:a987:6543:210f", nw_src_ipv6_mask="ffff:ffff:ffff:ffff:fff0::", nw_dst_ipv6="fe80:2acf:e9ff:fe21::6431", nw_dst_ipv6_mask="ffff:ffff:ffff:ffff:ffff:fffc::", ip_proto="6", tcp_src="183", tcp_dst="8080"}", dur_s="6", dur_ns="275000", prio="2", idle_to="3400", hard_to="1200", cookie="0x65", pkt_cnt="0", byte_cnt="0", insts=[apply{acts=[nw_ttl {ttl="1"}]}]}]}Output2 : stat_repl{type="flow", flags="0x0", stats=[{table="2", match="oxm{eth_type="0x800", ipv4_dst="10.0.0.1", ipv4_dst_mask="255.255.255.0"}", dur_s="3", dur_ns="531000", prio="2", idle_to="0", hard_to="0", cookie="0xa", pkt_cnt="0", byte_cnt="0", insts=[apply{acts=[nw_ttl{ttl="1"} ]}]}]} 4) I also tried from Ovs command line giving below command, but it gives Unknown action : nw_ttl mininet@mininet-vm:~$ sudo ovs-ofctl -O Openflow13 add-flow s1 in_port=1,actions=nw_ttl:2,output:2 With the above observation seems like Ovs has the issue with the particular action |
| Comment by Ed Warnicke [ 23/Jan/14 ] |
|
I was able to run GET http://localhost:18080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/248 with body <?xml version="1.0" encoding="UTF-8" standalone="no"?> and got the flow on the switch below (this is using OVS2 and mininet2.1) vagrant@vagrant-ubuntu-trusty-64:~/git/controller$ sudo ovs-ofctl -O OpenFlow13 dump-flows s1 |
| Comment by Praveen Darshanam [ 23/Jan/14 ] |
|
HI Ed, We were also able to run push-mpls-action successfully but other actions like set-nw-ttl fails. Best Regards, |
| Comment by Krishnan Iyer [ 23/Jan/14 ] |
|
Ed/Prasanna, |
| Comment by Gaurav Bhagwani [ 24/Jan/14 ] |
|
Regarding testing setField - tcp source , It works fine for me on the Ovs -switch Input : Output on switch : mininet@mininet-vm:~$ sudo ovs-ofctl -O Openflow13 dump-flows s1 OFPST_FLOW reply (OF1.3) (xid=0x2): cookie=0x65, duration=5.158s, table=2, n_packets=0, n_bytes=0, idle_timeout=3400, hard_timeout=1200, send_flow_rem priority=2,tcp6,metadata=0x3039,ipv6_src=1234:5678:9abc:def0:fdc0::/76,ipv6_dst=fe80:2acf:e9ff:fe21::/94,nw_ecn=3,tp_src=183,tp_dst=8080 actions=set_field:2059->tcp_src |
| Comment by Krishnan Iyer [ 24/Jan/14 ] |
|
Hi Gaurav, |
| Comment by Krishnan Iyer [ 24/Jan/14 ] |
|
Gaurav, |
| Comment by Abhijit Kumbhare [ 20/Mar/14 ] |
|
Gaurav, Any update? Thanks, |
| Comment by Gaurav Bhagwani [ 20/Mar/14 ] |
|
Hi Abhijit, I have updated above my observations on the particular bug |
| Comment by Abhijit Kumbhare [ 24/Mar/14 ] |
|
This was fixed in the Hydrogen release itself. |
| Comment by Praveen Darshanam [ 24/Mar/14 ] |
|
There are couple of fields which which working fine and most of the fields don't work. |