port created with vnc api is not updated with neutron
version
----------
queens-5.0-156
test script
-----------
self.vn_obj = self.vnc_api_h.virtual_network_read(id=self.vn_id)
if self.api_type == 'neutron':
self._neutron_create_port()
else:
self._contrail_create_port()
self.created = True
try:
self.neutron_handle = self.get_neutron_handle()
self.obj = self.neutron_handle.get_port(self.uuid) >>>> This handle is empty.
self.mac_address = self.obj['mac_address']
except Exception as e:
pass
self.logger.debug('Created port %s' % (self.uuid))
self.read()
{'_cleanups': <fixtures.callmany.CallMany object at 0x7f41aa7c3fd0>,
'_detail_sources': [],
'_details': {},
'_orch': <openstack.OpenstackOrchestrator object at 0x7f41c8046d90>,
'api_server_port': '8082',
'api_type': 'neutron',
'auth_client': <openstack.OpenstackAuth object at 0x7f41c80ccb90>,
'auth_port': '5000',
'auth_server_ip': '10.204.216.141',
'auth_url': 'http://10.204.216.141:5000/v3',
'authn_url': '/v3/auth/tokens',
'binding_profile': None,
'cacert': None,
'certfile': None,
'cfgm_ip': '10.204.216.107',
'connections': <common.connections.ContrailConnections instance at 0x7f41c803a908>,
'created': True,
'domain': 'default-domain',
'extra_dhcp_opts': [],
'fixed_ips': [],
'iip_objs': [<vnc_api.gen.resource_client.InstanceIp object at 0x7f41aa7c32d0>],
'inputs': <common.contrail_test_init.ContrailTestInit object at 0x7f41c8046e10>,
'insecure': True,
'keyfile': None,
'logger': <logging.Logger object at 0x7f41cc517bd0>,
'mac_address': u'02:15:e4:c7:f1:58',
'neutron_handle': <quantum_test.QuantumHelper instance at 0x7f41c803a950>,
'neutron_obj': {u'admin_state_up': True,
u'allowed_address_pairs': [],
u'binding:host_id': None,
u'binding:vif_details': {u'port_filter': True},
u'binding:vif_type': u'vrouter',
u'binding:vnic_type': u'normal',
u'device_id': u'',
u'device_owner': u'',
u'fixed_ips': [{u'ip_address': u'177.27.28.4',
u'subnet_id': u'c0b39b41-2c10-481b-8e57-34f8d8bd4a50'}],
u'id': u'15e4c7f1-5812-481d-9688-ae8309c1f29a',
u'mac_address': u'02:15:e4:c7:f1:58',
u'name': u'15e4c7f1-5812-481d-9688-ae8309c1f29a',
u'network_id': u'4f9cda6e-0897-44e0-9b2b-91e565c5dcbd',
u'port_security_enabled': True,
u'security_groups': [u'a36534eb-48c0-4afc-b855-23300def2bc5'],
u'status': u'DOWN',
u'tenant_id': u'6faf06283058459e833eb40606eef577'},
'obj': {}, <<<<<<<<<<<<<<<<<
logs
-----
tail -f /var/log/contrail/contrail-api.log
07/26/2018 09:18:03 AM [contrail-api] [WARNING]: __default__ [SYS_WARN]: VncApiError: Multiget result contains a key (5bac2200-3451-473d-b598-99defb0d5637) with an empty value. obj_uuid_table: keys ([u'a0a9d421-4f21-4e73-b0e5-2087956f8f96', u'91ad2db0-2d37-45d4-b66f-3e972666c2fe', u'5bac2200-3451-473d-b598-99defb0d5637', u'0d916a69-419a-444d-8ed9-b01a60477950', u'5ef70620-aab3-4b3f-a262-9ef75bafe90d', u'fe05c85f-f259-4c35-a7f9-f500f68cdb95', u'b0b64fb3-8d42-4a37-9d5f-2dfcd22c5751', u'82539b68-9dbc-4cd0-9864-baf3347e10c0', u'83df9f00-f99b-4b3b-9c14-ab5fe7666e36', u'13e2f9f8-2294-41d7-abd0-2d91a8d799ea', u'1954f49a-40ea-499a-86cd-4005a7144bd6', u'87ff0e45-8d62-4f6f-9b3a-0d97ab898f06', u'db372111-b85c-4ae3-9e46-7752aeddc868']), columns (None), start (backref:virtual_machine_interface:), finish (backref:virtual_machine_interface;)
07/26/2018 09:18:03 AM [contrail-api] [WARNING]: __default__ [SYS_WARN]: VncApiError: Multiget result contains a key (87ff0e45-8d62-4f6f-9b3a-0d97ab898f06) with an empty value. obj_uuid_table: keys ([u'a0a9d421-4f21-4e73-b0e5-2087956f8f96', u'91ad2db0-2d37-45d4-b66f-3e972666c2fe', u'5bac2200-3451-473d-b598-99defb0d5637', u'0d916a69-419a-444d-8ed9-b01a60477950', u'5ef70620-aab3-4b3f-a262-9ef75bafe90d', u'fe05c85f-f259-4c35-a7f9-f500f68cdb95', u'b0b64fb3-8d42-4a37-9d5f-2dfcd22c5751', u'82539b68-9dbc-4cd0-9864-baf3347e10c0', u'83df9f00-f99b-4b3b-9c14-ab5fe7666e36', u'13e2f9f8-2294-41d7-abd0-2d91a8d799ea', u'1954f49a-40ea-499a-86cd-4005a7144bd6', u'87ff0e45-8d62-4f6f-9b3a-0d97ab898f06', u'db372111-b85c-4ae3-9e46-7752aeddc868']), columns (None), start (backref:virtual_machine_interface:), finish (backref:virtual_machine_interface;)
07/26/2018 09:18:03 AM [contrail-api] [WARNING]: __default__ [SYS_WARN]: VncApiError: Multiget result contains a key (b0b64fb3-8d42-4a37-9d5f-2dfcd22c5751) with an empty value. obj_uuid_table: keys ([u'a0a9d421-4f21-4e73-b0e5-2087956f8f96', u'91ad2db0-2d37-45d4-b66f-3e972666c2fe', u'5bac2200-3451-473d-b598-99defb0d5637', u'0d916a69-419a-444d-8ed9-b01a60477950', u'5ef70620-aab3-4b3f-a262-9ef75bafe90d', u'fe05c85f-f259-4c35-a7f9-f500f68cdb95', u'b0b64fb3-8d42-4a37-9d5f-2dfcd22c5751', u'82539b68-9dbc-4cd0-9864-baf3347e10c0', u'83df9f00-f99b-4b3b-9c14-ab5fe7666e36', u'13e2f9f8-2294-41d7-abd0-2d91a8d799ea', u'1954f49a-40ea-499a-86cd-4005a7144bd6', u'87ff0e45-8d62-4f6f-9b3a-0d97ab898f06', u'db372111-b85c-4ae3-9e46-7752aeddc868']), columns (None), start (backref:virtual_machine_interface:), finish (backref:virtual_machine_interface;)
07/26/2018 09:18:03 AM [contrail-api] [WARNING]: __default__ [SYS_WARN]: VncApiError: Multiget result contains a key (0d916
Please help provide the setup access.