Uploaded image for project: 'vtn'
  1. vtn
  2. VTN-161

Portmap Creation fails when Logical port-id is greater than 9

    XMLWordPrintable

Details

    • Bug
    • Status: Verified
    • Resolution: Done
    • unspecified
    • None
    • ODC Driver
    • None
    • Operating System: All
      Platform: All

    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            yogalakshmi.pa@hcl.com YOGA LAKSHMI SWETHA PAYYAVULA
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: