Can not create two ports with identical name

Bug #1611441 reported by Antoine Eiche
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
In Progress
Undecided
Unassigned
OpenContrail
New
Undecided
Unassigned

Bug Description

If a tenant create two port with the same name, the second creation fails. We get the following TB:

neutron neutron.api.v2.resource [req-8f0e9244-3df0-499b-9ae9-0187feb2ea82 None] create failed
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource Traceback (most recent call last):
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource File "/usr/share/python/neutron/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 87, in resource
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource result = method(request=request, **args)
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource File "/usr/share/python/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 448, in create
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource obj = obj_creator(request.context, **kwargs)
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource File "/usr/share/python/neutron/lib/python2.7/site-packages/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin_base.py", line 462, in create_port
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource port = self._create_resource('port', context, port)
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource File "/usr/share/python/neutron/lib/python2.7/site-packages/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin_v3.py", line 193, in _create_resource
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource self._get_context_dict(context), res_data[res_type])
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource File "/usr/share/python/neutron/lib/python2.7/site-packages/neutron_plugin_contrail/plugins/opencontrail/vnc_client/vmi_res_handler.py", line 742, in resource_create
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource port_id = self._resource_create(vmi_obj)
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource File "/usr/share/python/neutron/lib/python2.7/site-packages/neutron_plugin_contrail/plugins/opencontrail/vnc_client/contrail_res_handler.py", line 113, in _resource_create
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource raise e
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource RefsExistError: ['default-domain',
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource 'COMPUTE1',
2016-08-09 13:04:05.306 15200 TRACE neutron.api.v2.resource 'master'] already exists with uuid: 6ebe9435-8309-43bc-82f5-f528ac6ebe12

Tags: neutronapi
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/23107
Submitter: Antoine Eiche (<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.