[VTN-108] Delete portmap failed (i.e.,) delete portmap alone which is configured in vbridge interfaces Created: 03/Feb/16  Updated: 19/Oct/17  Resolved: 10/Feb/16

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

Type: Bug
Reporter: Karthik Sivasamy Assignee: Unassigned
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: 5204

 Description   

When i delete portmap which is created under vbridge interface, it throws Internal ServerError. Used lateest Stable/Be branch

Steps which i followed to delete portmap.

1) Create VTN, VBR
2) Create Vbridge Interface
3) Create vbr interface Portmap
$) Failed - Delete portmap --> Throws Internal Server Error.



 Comments   
Comment by Karthik Sivasamy [ 08/Feb/16 ]

Fix is not yet merged to Master, it is only merged in stable/beryllium. When it is merged into master branch, will verify and close the Bug.

Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 10/Feb/16 ]

The response is:
Creating the pormap:
curl -v --user admin:adminpass -H 'content-type: application/json' -X PUT -d '{"portmap":{"logical_port_id": "PP-OF:openflow:3-s3-eth3"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces/if1/portmap.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/interfaces/if1/portmap.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: 59
    >
    < HTTP/1.1 204 No Content
    < Server: Apache-Coyote/1.1
    < Content-Type: application/json;charset=UTF-8
    < Date: Wed, 10 Feb 2016 12:44:40 GMT
    <
  • Connection #0 to host 127.0.0.1 left intact
  • Closing connection #0
    [root@ODC-LOCAL odcdriver]#

Deleting the created portmap:
curl -v --user admin:adminpass -H 'content-type: application/json' -X DELETE http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces/if1/portmap.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'
    > DELETE /vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces/if1/portmap.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 204 No Content
    < Server: Apache-Coyote/1.1
    < Content-Type: application/json;charset=UTF-8
    < Date: Wed, 10 Feb 2016 12:45:05 GMT
    <
  • Connection #0 to host 127.0.0.1 left intact
  • Closing connection #0
Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 10/Feb/16 ]

PFB the patch for this bug in stable/beryllium:

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

In Master branch:

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

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