[VTN-161] Portmap Creation fails when Logical port-id is greater than 9 Created: 28/Jun/17  Updated: 19/Oct/17  Resolved: 24/Aug/17

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

Type: Bug
Reporter: YOGA LAKSHMI SWETHA PAYYAVULA 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: 8761

 Description   

Portmap creation in VTN coordinator fails when the logical port-id value is greater than 9.

Steps to reproduce the bug :

  1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"controller": {"controller_id": "odc1", "ipaddr":"127.0.0.1", "type": "odc", "version": "1.0", "auditstatus":"enable"}}' http://127.0.0.1:8083/vtn-webapi/controllers
  1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"vtn" : {"vtn_name":"vtn1","description":"test VTN" }}' http://127.0.0.1:8083/vtn-webapi/vtns
  1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"vbridge" : {"vbr_name":"vbr1","controller_id":"odc1","domain_id":"(DEFAULT)" }}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges
  1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"interface": {"if_name": "if1","description": "if1_desc"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vbr1/interfaces
  1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"interface": {"if_name": "if2","description": "if2_desc"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vbr1/interfaces
  1. curl -v --user admin:adminpass -H 'content-type: application/json' -X PUT -d '{"portmap":{"logical_port_id": "PP-OF:openflow:72621089949254-veth1_ovs"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vbr1/interfaces/if1/portmap

Error Returned - 500 internal server error

Coordinator LOGS:

2017-06-22 11:40:07.706013: [18548]: DEBUG: restjsonutil: http://10.106.138.107:8181/restconf/operations/vtn-vinterface:update-vinterface Url formed
2017-06-22 11:40:07.706025: [18548]: DEBUG: restjsonutil: HTTP_METHOD_POST
2017-06-22 11:40:07.706040: [18548]: DEBUG: restjsonutil: Request Body : { "input":

{ "update-mode": "UPDATE", "operation": "ADD", "tenant-name": "vtn1", "bridge-name": "vBridge1", "description": "if_desc1", "enabled": true, "interface-name": "if1" }

}
2017-06-22 11:40:07.706049: [18548]: INFO: restjsonutil: requestbody : { "input":

{ "update-mode": "UPDATE", "operation": "ADD", "tenant-name": "vtn1", "bridge-name": "vBridge1", "description": "if_desc1", "enabled": true, "interface-name": "if1" }

}
2017-06-22 11:40:07.714891: [18548]: DEBUG: restjsonutil: Allocates Memory ............
2017-06-22 11:40:07.714914: [18548]: DEBUG: restjsonutil: Reallocate Memory...............
2017-06-22 11:40:07.715086: [18548]: DEBUG: odcdriver: logical port received : PP-openflow:14-s14-eth1
2017-06-22 11:40:07.715107: [18548]: INFO: odcdriver: switch_base:openflow
2017-06-22 11:40:07.715116: [18548]: DEBUG: odcdriver: Switch id in port map openflow:14
2017-06-22 11:40:07.715128: [18548]: DEBUG: odcdriver: Valid logical_port id
2017-06-22 11:40:07.715152: [18548]: DEBUG: odcdriver: VALUE RECEIVED for LOGICAL PORT 1
2017-06-22 11:40:07.715161: [18548]: DEBUG: odcdriver: logical_port_id is PP-openflow:14-s14-eth1
2017-06-22 11:40:07.715183: [18548]: DEBUG: odcdriver: port name : s14-eth1
2017-06-22 11:40:07.715192: [18548]: DEBUG: odcdriver: switch id : openflow:e
2017-06-22 11:40:07.715249: [18548]: DEBUG: restjsonutil: User name and password is taken from conf file
2017-06-22 11:40:07.715328: [18548]: DEBUG: restjsonutil: http://10.106.138.107:8181/restconf/operations/vtn-port-map:set-port-map Url formed
2017-06-22 11:40:07.715419: [18548]: DEBUG: restjsonutil: HTTP_METHOD_POST
2017-06-22 11:40:07.715438: [18548]: DEBUG: restjsonutil: Request Body : { "input":

{ "tenant-name": "vtn1", "bridge-name": "vBridge1", "interface-name": "if1", "node": "openflow:e", "port-name": "s14-eth1" }

}
2017-06-22 11:40:07.715447: [18548]: INFO: restjsonutil: requestbody : { "input":

{ "tenant-name": "vtn1", "bridge-name": "vBridge1", "interface-name": "if1", "node": "openflow:e", "port-name": "s14-eth1" }

}
2017-06-22 11:40:07.729670: [18548]: DEBUG: restjsonutil: Allocates Memory ............
2017-06-22 11:40:07.729887: [18548]: ERROR: odcdriver: put is not success , resp_code 400
2017-06-22 11:40:07.730022: [18548]: ERROR: odcdriver: Vbr_if_portmap Update Failed
2017-06-22 11:40:07.730053: [18548]: DEBUG: vtndrvintf: deleted config_cmd_ptr
2017-06-22 11:40:07.730084: [18548]: DEBUG: vtndrvintf: 25,execute_cmd not success



 Comments   
Comment by Venkatrangan Govindarajan [ 19/Jul/17 ]

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

Comment by Satoshi Hieda [ 23/Aug/17 ]

(In reply to Venkatrangan Govindarajan from comment #1)
> https://git.opendaylight.org/gerrit/#/c/60261/

The URL is a patch for Karaf4 integration.
Is this correct?

Comment by Venkatrangan Govindarajan [ 24/Aug/17 ]

(In reply to Satoshi Hieda from comment #2)
> (In reply to Venkatrangan Govindarajan from comment #1)
> > https://git.opendaylight.org/gerrit/#/c/60261/
>
> The URL is a patch for Karaf4 integration.
> Is this correct?

Hieda-San,

Sorry this is the patch
https://git.opendaylight.org/gerrit/#/c/60330/

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