Creating DVR interface fails

Bug #1804672 reported by Maciej Jagiello
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
In Progress
Undecided
Maciej Jagiello
OpenContrail
New
Undecided
Maciej Jagiello

Bug Description

When creating a port in vnc_openstack:

/neutron/port

{
   "data":{
      "fields":null,
      "resource":{
         "status":"DOWN",
         "binding:host_id":"",
         "description":"",
         "tags":[

         ],
         "extra_dhcp_opts":[

         ],
         "updated_at":"2018-11-22T09:56:27Z",
         "device_owner":"network:router_interface_distributed",
         "revision_number":1,
         "port_security_enabled":false,
         "binding:profile":{

         },
         "fixed_ips":[
            {
               "subnet_id":"7da0cb43-cbb8-4476-9e87-b051149eb59c",
               "ip_address":"60.60.60.1"
            }
         ],
         "id":"fba888a2-bb07-40ae-b2af-e425b625170c",
         "security_groups":[

         ],
         "device_id":"cfefc352-1eb9-47b2-aa03-ef06ec1007c6",
         "name":"",
         "admin_state_up":true,
         "network_id":"bdc31416-53f3-4c69-abe1-048363f99551",
         "tenant_id":"f6f0b7c80ee44f369ee69086e0cf66f0",
         "binding:vif_details":{

         },
         "binding:vnic_type":"normal",
         "binding:vif_type":"distributed",
         "mac_address":"fa:16:3e:24:c2:da",
         "project_id":"f6f0b7c80ee44f369ee69086e0cf66f0",
         "created_at":"2018-11-22T09:56:27Z"
      },
      "filters":null
   },
   "context":{
      "user_id":"3f38924c7cd8447cae78a9badb366b9e",
      "roles":[
         "admin",
         "reader",
         "member"
      ],
      "tenant_id":"f6f0b7c80ee44f369ee69086e0cf66f0",
      "is_admin":true,
      "operation":"CREATE",
      "type":"port",
      "tenant":"f6f0b7c80ee44f369ee69086e0cf66f0"
   }
}

It raises the exception, because it tries to associate virtual machine to the port.

{
   "msg":"Unknown id: Error: oper 2 url /virtual-machine/cfefc352-1eb9-47b2-aa03-ef06ec1007c6 body {'exclude_back_refs': True, 'exclude_children': True, 'exclude_hrefs': True} response No virtual-machine object found for id cfefc352-1eb9-47b2-aa03-ef06ec1007c6",
   "exception":"NotFound"
}

Changed in opencontrail:
assignee: nobody → Maciej Jagiello (maciej.jagiello)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/47807
Submitter: Maciej Jagiello (<email address hidden>)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.