Creating a port with a name which already present is giving internal server error

Bug #1332487 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Medium
Sachin Bansal

Bug Description

Build 1.06-49

Creating a port with a name which already present is giving internal server error

root@nodec34:~# neutron port-list |grep sample
| c40a940e-9e43-4b46-800f-4cedeb87109f | sample_port_1 | 02:c4:0a:94:0e:9e | {"subnet_id": "9f09deca-2da3-4ec4-9b85-a8dedbb545d1", "ip_address": "25.1.1.4"} |
| 7b4abe0c-4322-4c41-87a2-eb40234aa1d4 | sample_port_2 | 02:7b:4a:be:0c:43 | {"subnet_id": "9f09deca-2da3-4ec4-9b85-a8dedbb545d1", "ip_address": "25.1.1.5"} |
root@nodec34:~#

root@nodec34:~# neutron port-create --name sample_port_1 c20ab2eb-05ce-4aab-9a5a-8f771ba97168
Request Failed: internal server error while processing your request.
root@nodec34:~# tail /var/log/neutron/server.log
RefsExistError: [u'default-domain', u'project1', u'sample_port_1'] already exists with uuid: c40a940e-9e43-4b46-800f-4cedeb87109f
2014-06-20 16:21:04.926 ERROR [neutron.api.v2.resource] create failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 84, in resource
    result = method(request=request, **args)
  File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 405, in create
    obj = obj_creator(request.context, **kwargs)
  File "/usr/lib/python2.7/dist-packages/neutron_plugin_contrail/plugins/opencontrail/contrailplugin.py", line 970, in create_port
    raise e
RefsExistError: [u'default-domain', u'project1', u'sample_port_1'] already exists with uuid: c40a940e-9e43-4b46-800f-4cedeb87109f
root@nodec34:~#

Tags: config
information type: Proprietary → Public
Changed in juniperopenstack:
milestone: none → r1.10-fcs
Revision history for this message
Sachin Bansal (sbansal) wrote :
Changed in juniperopenstack:
status: New → Fix Committed
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.