Create two resources with the same name fails
Bug #1505229 reported by
Antoine Eiche
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Undecided
|
Unassigned | |||
OpenContrail |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Two networks with the same name in the same tenant can not be created while this is allowed by neutron. This is also true for routers and maybe for some other kinds of resources.
It fails because fq_name of these two resources are identical.
For instance, we create a first network 'net-default'
$ neutron net-create net-default
If we create a second network with the same name
$ neutron net-create net-default
the following exception is raised:
RefsExistError: ['default-domain', 'demo', 'net-default'] already exists with uuid: 9236330e-
Changed in opencontrail: | |
status: | Incomplete → Fix Committed |
To post a comment you must log in.
Which neutron plugin are you using? I just tried it on the latest build and it is working as expected:
root@b4s9: /usr/lib/ python2. 7/dist- packages/ schema_ transformer# neutron net-create n1 ------- ------- -----+- ------- ------- ------- ------- ------- -----+ ------- ------- -----+- ------- ------- ------- ------- ------- -----+ 84a2-4e4e- be27-ddca567751 34 | instance_ count | 0 | 84a2-4e4e- be27-ddca567751 34 | 48d5465e668b3ab 18 | ------- ------- -----+- ------- ------- ------- ------- ------- -----+ /usr/lib/ python2. 7/dist- packages/ schema_ transformer# neutron net-create n1 ------- ------- -----+- ------- ------- ------- ------- ------- -----+ ------- ------- -----+- ------- ------- ------- ------- ------- -----+ a3e3-45e2- a720-e16a247643 13 | instance_ count | 0 | a3e3-45e2- a720-e16a247643 13 | 48d5465e668b3ab 18 | ------- ------- -----+- ------- ------- ------- ------- ------- -----+
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | admin |
| | n1-7f17c558-
| contrail:
| id | 7f17c558-
| name | n1 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 618d3788d8e34d5
+------
root@b4s9:
\Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | admin |
| | n1-80bac5da-
| contrail:
| id | 80bac5da-
| name | n1 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 618d3788d8e34d5
+------