[VTN-115] Issue with Update operation in Flowfilter and Flowlist Keytypes. Created: 10/Feb/16  Updated: 12/Feb/16  Resolved: 12/Feb/16

Status: Resolved
Project: vtn
Component/s: ODC Driver
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Karthik Sivasamy Assignee: YOGA LAKSHMI SWETHA PAYYAVULA
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 5294

 Description   

I have faced issue in few test case scenarios while running VTN Coordinator FT scripts for Flowfilter and FLowlist Keytypes. In stable/Be code.

Below are the scenario which is in FT script.

VBRFLOWFILTER_UPDATE
1) Create VTN , VBR, VBRIFPORTMAP, Flowlist and FLowlistentry, VBRFLOWFILTER
2) Create Vbrflowfilterentry with action type "DROP"
3) Update Vbrflowfilter entry to "REDIRECT" --> Issue in Update( Due to redirect destination vnode error) returns 500 Internal server error

VTERMIFFLOWFILTER_UPDATE
1) Create VTN , VBR, VTERMIFPORTMAP, Flowlist and FLowlistentry, VTERMIFLOWFILTER
2) Create Vtermifflowfilterentry with action type "DROP"
3) Update Vtermifflowfilter entry to "REDIRECT" --> Issue in Update( due to dl_src macc address attribute issue) returns 500 Internal server error

FlowlistEntry_UPDATE
1) Create VTN , VBR, VBRIFPORTMAP, Flowlist and FLowlistentry, VBRFLOWFILTER
2) Create Vbrflowfilterentry with action type "DROP"
3) Update FLOWLISTENTRY for SrcIp and DstIp with prefix length attributes --> Returns with 400 error code (Due to improper filling of source ip and network attributes in the Update method)



 Comments   
Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 12/Feb/16 ]

VBR Flowfitler update:

curl -v --user admin:adminpass -X PUT -H 'content-type: application/json' -d '{"flowfilterentry": {"seqnum": "233", "fl_name": "flowlist1", "action_type":"redirect", "priority":"3", "dscp":"55", "redirectdst":

{"vnode_name":"vBridge2", "if_name":"if1", "direction":"in", "macsrcaddr":"f0f1.f2f3.f4f5"}

}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/flowfilters/in/flowfilterentries/233.json

  • About to connect() to 127.0.0.1 port 8083 (#0)
  • Trying 127.0.0.1... connected
  • Connected to 127.0.0.1 (127.0.0.1) port 8083 (#0)
  • Server auth using Basic with user 'admin'
    > PUT /vtn-webapi/vtns/vtn1/vbridges/vBridge1/flowfilters/in/flowfilterentries/233.json HTTP/1.1
    > Authorization: Basic YWRtaW46YWRtaW5wYXNz
    > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
    > Host: 127.0.0.1:8083
    > Accept: /
    > content-type: application/json
    > Content-Length: 227
    >
    < HTTP/1.1 204 No Content
    < Server: Apache-Coyote/1.1
    < Content-Type: application/json;charset=UTF-8
    < Content-Length: 79
    < Date: Fri, 12 Feb 2016 16:53:25 GMT
    <
  • Connection #0 to host 127.0.0.1 left intact
  • Closing connection #0

FLOWLIST Update:

[root@ODC-LOCAL coordinator]# curl -v --user admin:adminpass -H 'content-type: application/json' -X PUT -d '{"flowlistentry": {"seqnum": "233","macethertype": "0x800","ipdstaddr": "10.0.0.1","ipdstaddrprefix": "32","ipsrcaddr": "10.0.0.2","ipsrcaddrprefix": "32","ipproto": "1"}}' http://127.0.0.1:8083/vtn-webapi/flowlists/flowlist1/flowlistentries/233.json

  • About to connect() to 127.0.0.1 port 8083 (#0)
  • Trying 127.0.0.1... connected
  • Connected to 127.0.0.1 (127.0.0.1) port 8083 (#0)
  • Server auth using Basic with user 'admin'
    > PUT /vtn-webapi/flowlists/flowlist1/flowlistentries/233.json HTTP/1.1
    > Authorization: Basic YWRtaW46YWRtaW5wYXNz
    > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
    > Host: 127.0.0.1:8083
    > Accept: /
    > content-type: application/json
    > Content-Length: 171
    >
    < HTTP/1.1 204 No Content
    < Server: Apache-Coyote/1.1
    < Content-Type: application/json;charset=UTF-8
    < Date: Fri, 12 Feb 2016 16:54:42 GMT
    <
  • Connection #0 to host 127.0.0.1 left intact
  • Closing connection #0
    [root@ODC-LOCAL coordinator]#
    [root@ODC-LOCAL coordinator]# curl -v --user admin:adminpass -H 'content-type: application/json' -X GET http://127.0.0.1:8083/vtn-webapi/flowlists/flowlist1/flowlistentries/233.json * About to connect() to 127.0.0.1 port 8083 (#0)
  • Trying 127.0.0.1... connected
  • Connected to 127.0.0.1 (127.0.0.1) port 8083 (#0)
  • Server auth using Basic with user 'admin'
    > GET /vtn-webapi/flowlists/flowlist1/flowlistentries/233.json HTTP/1.1
    > Authorization: Basic YWRtaW46YWRtaW5wYXNz
    > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
    > Host: 127.0.0.1:8083
    > Accept: /
    > content-type: application/json
    >
    < HTTP/1.1 200 OK
    < Server: Apache-Coyote/1.1
    < Content-Type: application/json;charset=UTF-8
    < Content-Length: 163
    < Date: Fri, 12 Feb 2016 16:55:24 GMT
    <
  • Connection #0 to host 127.0.0.1 left intact
  • Closing connection #0
    {"flowlistentry":{"ipproto":"1","ipdstaddrprefix":"32","ipsrcaddr":"10.0.0.2","ipsrcaddrprefix":"32","ipdstaddr":"10.0.0.1","seqnum":"233","macethertype":"0x800"}}[root@ODC-LOCAL coordinator]

VTERMIF update:

curl -v --user admin:adminpass -X PUT -H 'content-type: application/json' -d '{"flowfilterentry": {"seqnum": "233", "fl_name": "flowlist1", "action_type":"redirect", "priority":"3", "dscp":"55", "redirectdst":

{"vnode_name":"vBridge1", "if_name":"if1", "direction":"in", "macsrcaddr":"f0f1.f2f3.f4f5"}

}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vterminals/vterm1/interfaces/if2/flowfilters/in/flowfilterentries/233.json

  • About to connect() to 127.0.0.1 port 8083 (#0)
  • Trying 127.0.0.1... connected
  • Connected to 127.0.0.1 (127.0.0.1) port 8083 (#0)
  • Server auth using Basic with user 'admin'
    > PUT /vtn-webapi/vtns/vtn1/vterminals/vterm1/interfaces/if2/flowfilters/in/flowfilterentries/233.json HTTP/1.1
    > Authorization: Basic YWRtaW46YWRtaW5wYXNz
    > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
    > Host: 127.0.0.1:8083
    > Accept: /
    > content-type: application/json
    > Content-Length: 114
    >
    < HTTP/1.1 204 No Content
    < Server: Apache-Coyote/1.1
    < Content-Type: application/json;charset=UTF-8
    < Date: Fri, 12 Feb 2016 16:52:20 GMT
    <
  • Connection #0 to host 127.0.0.1 left intact
  • Closing connection #
Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 12/Feb/16 ]

PFB the patch for this bug in:

stabl/beryllium:

https://git.opendaylight.org/gerrit/#/c/34385/

Master:

https://git.opendaylight.org/gerrit/#/c/34457/

Generated at Wed Feb 07 20:48:04 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.