[VTN-107] VTN portmap creation failed with vlan-id Created: 02/Feb/16  Updated: 10/Feb/16  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: 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: 5189

 Description   

When i configure portmapping with vlan-id under vbridge interface, creation throws error [500 'internal server error'].

Steps followed:
1) Create VTN, VBR
2) Create VBRIF
3) Failed - Create PORTMAP with vlan-id as below

http://127.0.0.1:8083/vtn-webapi/vtns/vtnone/vbridges/vbrone/interfaces/vbrifone/portmap.json {"portmap": {"logical_port_id": "PP-openflow:3-s3-eth1", "tagged": "true", "vlan_id": "1"}}

Portmap creation failed. Throws 500 internal error.

Please find logs below,

2016-02-03 00:03:05.959280: [16215]: DEBUG: vtndrvintf: 25,keytype
2016-02-03 00:03:05.959288: [16215]: DEBUG: odcdriver: UNC_KT_VBRIF key type received
2016-02-03 00:03:05.959295: [16215]: DEBUG: vtndrvintf: keytype:25, config_operation:3
2016-02-03 00:03:05.959301: [16215]: DEBUG: vtndrvintf: execute_cmd: Translate Update Command string
2016-02-03 00:03:05.959311: [16215]: INFO: odcdriver: vbr des : first vbrif for vbrone
2016-02-03 00:03:05.959317: [16215]: DEBUG: odcdriver: settting vbrif admi_status default value as true
2016-02-03 00:03:05.959350: [16215]: DEBUG: restjsonutil: User name and password is taken from controller pointer
2016-02-03 00:03:05.959377: [16215]: DEBUG: restjsonutil: http://10.106.138.124:8181/restconf/operations/vtn-vinterface:update-vinterface Url formed
2016-02-03 00:03:05.959386: [16215]: DEBUG: restjsonutil: HTTP_METHOD_POST
2016-02-03 00:03:05.959396: [16215]: DEBUG: restjsonutil: Request Body : { "input":

{ "update-mode": "UPDATE", "operation": "ADD", "tenant-name": "vtnone", "bridge -name": "vbrone", "description": "first vbrif for vbrone", "enabled": true, "interface-name": "vbrifone" }

}
2016-02-03 00:03:05.959403: [16215]: INFO: restjsonutil: requestbody : { "input":

{ "update-mode": "UPDATE", "operation": "ADD", "tenant-name": "vtnone", "bridge-na me": "vbrone", "description": "first vbrif for vbrone", "enabled": true, "interface-name": "vbrifone" }

}
2016-02-03 00:03:05.971098: [16215]: DEBUG: restjsonutil: Allocates Memory ............
2016-02-03 00:03:05.971138: [16215]: DEBUG: restjsonutil: Reallocate Memory...............
2016-02-03 00:03:05.971716: [16215]: DEBUG: odcdriver: logical port received : PP-openflow:3-s3-eth1
2016-02-03 00:03:05.971733: [16215]: INFO: odcdriver: switch_base:openflow
2016-02-03 00:03:05.971740: [16215]: DEBUG: odcdriver: Switch id in port map openflow:3
2016-02-03 00:03:05.971746: [16215]: DEBUG: odcdriver: Valid logical_port id
2016-02-03 00:03:05.971755: [16215]: DEBUG: odcdriver: VALUE RECEIVED for LOGICAL PORT 1
2016-02-03 00:03:05.971762: [16215]: DEBUG: odcdriver: logical_port_id is PP-openflow:3-s3-eth1
2016-02-03 00:03:05.971780: [16215]: DEBUG: odcdriver: port name : s3-eth1
2016-02-03 00:03:05.971787: [16215]: DEBUG: odcdriver: switch id : openflow:3
2016-02-03 00:03:05.971814: [16215]: DEBUG: restjsonutil: User name and password is taken from controller pointer
2016-02-03 00:03:05.971836: [16215]: DEBUG: restjsonutil: http://10.106.138.124:8181/restconf/operations/vtn-port-map:set-port-map Url formed
2016-02-03 00:03:05.971845: [16215]: DEBUG: restjsonutil: HTTP_METHOD_POST
2016-02-03 00:03:05.971853: [16215]: DEBUG: restjsonutil: Request Body : { "input":

{ "tenant-name": "vtnone", "bridge-name": "vbrone", "interface-name": "vbrifone ", "node": "openflow:3", "port-name": "s3-eth1", "vlan": 1 }

}
2016-02-03 00:03:05.971860: [16215]: INFO: restjsonutil: requestbody : { "input":

{ "tenant-name": "vtnone", "bridge-name": "vbrone", "interface-name": "vbrifone", "node": "openflow:3", "port-name": "s3-eth1", "vlan": 1 }

}
2016-02-03 00:03:05.983076: [16215]: DEBUG: restjsonutil: Allocates Memory ............
2016-02-03 00:03:05.983822: [16215]: DEBUG: restjsonutil: Reallocate Memory...............
2016-02-03 00:03:05.983878: [16215]: ERROR: odcdriver: put is not success , resp_code 400
2016-02-03 00:03:05.983959: [16215]: ERROR: odcdriver: Vbr_if_portmap Update Failed
2016-02-03 00:03:05.984047: [16215]: DEBUG: vtndrvintf: deleted config_cmd_ptr
2016-02-03 00:03:05.984060: [16215]: DEBUG: vtndrvintf: 25,execute_cmd not success
2016-02-03 00:03:05.984074: [16215]: DEBUG: tclib: TcLibWriteControllerInfo 450 Write controller info involved for controller_id controller1
2016-02-03 00:03:05.984094: [16215]: INFO: tclib: TcLibWriteKeyValueDataInfo 683 write data succcess keytype 25 ctrlid controller1
2016-02-03 00:03:05.984103: [16215]: ERROR: vtndrvintf: VOTE Failure in driver, ret 1
2016-02-03 00:03:05.984109: [16215]: DEBUG: vtndrvintf: Exiting HandleCommitVoteRequest
2016-02-03 00:03:05.984131: [16215]: DEBUG: vtndrvintf: ~ControllerFwUtil--oper_type:4
2016-02-03 00:03:05.984138: [16215]: DEBUG: vtndrvintf: Write completed set write_in_progress_ FALSE



 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 for Portmapping with vlan-id is:

curl -v -X POST -H 'content-type: application/json' -H 'username: admin' -H 'password: adminpass' -d '{"portmap": {"logical_port_id": "PP-openflow:3-s3-eth1", "tagged": "true", "vlan_id": "1"}}' 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)
    > POST /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: 57
    >
    < HTTP/1.1 201 Created
    < Server: Apache-Coyote/1.1
    < Content-Type: application/json;charset=UTF-8
    < Content-Length: 0
    < Date: Wed, 10 Feb 2016 09:55:56 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 link for this patch in stable/beryllium:

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

In the Master branch:

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

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