Uploaded image for project: 'CORD'
  1. CORD
  2. CORD-2292

Can't modify UNI after pushing via REST API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: Chameleon, XOS
    • Labels:
    • Story Points:
      2
    • Sprint:
      SC Sprint #3 - ECORD Migration
    • Epic Link:

      Description

      After I push a UNI through a post request to
      xosapi/vnaas/usernetworkinterfaces/
      I try to modify it and I get the following error the error posted below.

      An example of the UNI son body that gets posted is:

      {"tenant":"10.90.1.30-cord-onos","name":"UNI:domain:10.90.1.30-cord-onos/1","latlng":"[12, 12]","cpe_id":"domain:10.90.1.30-cord-onos/1"}

      The error I encounter
      vendor.js:96 [XosCrud] Error while saving: Resource {policed: null, backend_need_delete_policy: false, backend_register: "{}", backend_status: "Provisioning in progress", id: 19, …}$$hashKey: "object:191"$resolved: truebackend_code: 0backend_need_delete: falsebackend_need_delete_policy: falsebackend_need_reap: falsebackend_register: "{}"backend_status: "Provisioning in progress"class_names: "UserNetworkInterface,XOSBase,Model,PlModelMixIn,object"cpe_id: "domain:10.90.1.30-cord-onos/2"deleted: falseeline_start: falseenacted: nullid: 19latlng: "[1,1]"lazy_blocked: falseleaf_model_name: "UserNetworkInterface"name: "UNI:domain:10.90.1.30-cord-onos/1"no_policy: falseno_sync: falsepoliced: nullpolicy_code: 0policy_status: "Policy in process"tenant: "10.90.1.30-cord-onos"updated: 1511367276.417write_protect: false_proto: Object$delete: ƒ (params,success,error)$get: ƒ (params,success,error)$query: ƒ (params,success,error)$remove: ƒ (params,success,error)$save: ƒ ()$update: ƒ (params,success,error)toJSON: ƒ ()constructor: ƒ Resource(value)proto: constructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()arguments: (...)caller: (...)length: 0name: "toString"proto: ƒ ()apply: ƒ apply()arguments: (...)bind: ƒ bind()call: ƒ call()caller: (...)constructor: ƒ Function()length: 0name: ""toString: ƒ toString()Symbol(Symbol.hasInstance): ƒ [Symbol.hasInstance]()get arguments: ƒ ()set arguments: ƒ ()get caller: ƒ ()set caller: ƒ ()proto: Object[[FunctionLocation]]: <unknown>[[Scopes]]: Scopes[0][[Scopes]]: Scopes[0]valueOf: ƒ valueOf()defineGetter: ƒ __defineGetter()defineSetter: ƒ __defineSetter()lookupGetter: ƒ __lookupGetter()lookupSetter: ƒ __lookupSetter()get __proto: ƒ __proto()set __proto: ƒ __proto_() <html><head><title>web.Server Traceback (most recent call last)</title></head><body><b>web.Server Traceback (most recent call last):</b>
      <div>
      <style type="text/css">
      div.error

      { color: red; font-family: Verdana, Arial, helvetica, sans-serif; font-weight: bold; }

      div

      { font-family: Verdana, Arial, helvetica, sans-serif; }

      div.stackTrace {
      }
      div.frame

      { padding: 1em; background: white; border-bottom: thin black dashed; }

      div.frame:first-child

      { padding: 1em; background: white; border-top: thin black dashed; border-bottom: thin black dashed; }

      div.location {
      }
      span.function

      { font-weight: bold; font-family: "Courier New", courier, monospace; }

      div.snippet

      { margin-bottom: 0.5em; margin-left: 1em; background: #FFFFDD; }

      div.snippetHighlightLine

      { color: red; }

      span.code

      { font-family: "Courier New", courier, monospace; }

      </style>
      <div class="error">
      <span>google.protobuf.json_format.ParseError</span>: <span>Message type "xos.UserNetworkInterface" has no field named "eline_start".</span>
      </div>
      <div class="stackTrace">
      <div class="frame">
      <div class="location">
      <span>/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py</span>:<span>1299</span> in
      <span class="function">_inlineCallbacks</span>
      </div>
      <div class="snippet">
      <div class="snippetLine">
      <span class="lineno">1298</span>
      <code class="code">            else:</code>
      </div><div class="snippetHighlightLine">
      <span class="lineno">1299</span>
      <code class="code">                result = g.send(result)</code>
      </div><div class="snippetLine">
      <span class="lineno">1300</span>
      <code class="code">        except StopIteration as e:</code>
      </div>
      </div>
      </div><div class="frame">
      <div class="location">
      <span>/tmp/chameleon/xos_gw.py</span>:<span>7781</span> in
      <span class="function">xos_UpdateUserNetworkInterface</span>
      </div>
      <div class="snippet">
      <div class="snippetLine">
      <span class="lineno">7780</span>
      <code class="code">        try:</code>
      </div><div class="snippetHighlightLine">
      <span class="lineno">7781</span>
      <code class="code">            req = ParseDict(data, xos_pb2.UserNetworkInterface())</code>
      </div><div class="snippetLine">
      <span class="lineno">7782</span>
      <code class="code">        except Exception, e:</code>
      </div>
      </div>
      </div><div class="frame">
      <div class="location">
      <span>/usr/local/lib/python2.7/dist-packages/google/protobuf/json_format.py</span>:<span>384</span> in
      <span class="function">ParseDict</span>
      </div>
      <div class="snippet">
      <div class="snippetLine">
      <span class="lineno">383</span>
      <code class="code">  parser = _Parser(ignore_unknown_fields)</code>
      </div><div class="snippetHighlightLine">
      <span class="lineno">384</span>
      <code class="code">  parser.ConvertMessage(js_dict, message)</code>
      </div><div class="snippetLine">
      <span class="lineno">385</span>
      <code class="code">  return message</code>
      </div>
      </div>
      </div><div class="frame">
      <div class="location">
      <span>/usr/local/lib/python2.7/dist-packages/google/protobuf/json_format.py</span>:<span>415</span> in
      <span class="function">ConvertMessage</span>
      </div>
      <div class="snippet">
      <div class="snippetLine">
      <span class="lineno">414</span>
      <code class="code">    else:</code>
      </div><div class="snippetHighlightLine">
      <span class="lineno">415</span>
      <code class="code">      self._ConvertFieldValuePair(value, message)</code>
      </div><div class="snippetLine">
      <span class="lineno">416</span>
      <code class="code"></code>
      </div>
      </div>
      </div><div class="frame">
      <div class="location">
      <span>/usr/local/lib/python2.7/dist-packages/google/protobuf/json_format.py</span>:<span>503</span> in
      <span class="function">_ConvertFieldValuePair</span>
      </div>
      <div class="snippet">
      <div class="snippetLine">
      <span class="lineno">502</span>
      <code class="code">        else:</code>
      </div><div class="snippetHighlightLine">
      <span class="lineno">503</span>
      <code class="code">          raise ParseError(str(e))</code>
      </div><div class="snippetLine">
      <span class="lineno">504</span>
      <code class="code">      except ValueError as e:</code>
      </div>
      </div>
      </div>
      </div>
      <div class="error">
      <span>google.protobuf.json_format.ParseError</span>: <span>Message type "xos.UserNetworkInterface" has no field named "eline_start".</span>
      </div>
      </div>

        Attachments

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

          Activity

            People

            Assignee:
            teone Matteo Scandolo
            Reporter:
            andrea Andrea Campanella
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews