Comment 2 for bug 1505229

Revision history for this message
Antoine Eiche (lewo-c) wrote : Re: [Bug 1505229] Re: Create two resources with the same name fails

Hello Sachin,

I'm using the commit ID 9da9fae96090a299974be5609978c5b05085d6c5 (in
repository https://github.com/juniper/contrail-neutron-plugin).

Strange that you don't reproduce this problem. Edouard Thuleau has also
reproduced it today.

Antoine.

Sachin Bansal <email address hidden> writes:

> 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
> Created a new network:
> +-------------------------+-----------------------------------------+
> | Field | Value |
> +-------------------------+-----------------------------------------+
> | admin_state_up | True |
> | contrail:fq_name | default-domain |
> | | admin |
> | | n1-7f17c558-84a2-4e4e-be27-dca56775134 |
> | contrail:instance_count | 0 |
> | id | 7f17c558-84a2-4e4e-be27-ddca56775134 |
> | name | n1 |
> | router:external | False |
> | shared | False |
> | status | ACTIVE |
> | subnets | |
> | tenant_id | 618d3788d8e34d548d5465e668b3ab18 |
> +-------------------------+-----------------------------------------+
> root@b4s9:/usr/lib/python2.7/dist-packages/schema_transformer# neutron net-create n1
> \Created a new network:
> +-------------------------+-----------------------------------------+
> | Field | Value |
> +-------------------------+-----------------------------------------+
> | admin_state_up | True |
> | contrail:fq_name | default-domain |
> | | admin |
> | | n1-80bac5da-a3e3-45e2-a720-e16a24764313 |
> | contrail:instance_count | 0 |
> | id | 80bac5da-a3e3-45e2-a720-e16a24764313 |
> | name | n1 |
> | router:external | False |
> | shared | False |
> | status | ACTIVE |
> | subnets | |
> | tenant_id | 618d3788d8e34d548d5465e668b3ab18 |
> +-------------------------+-----------------------------------------+
>
> ** Changed in: opencontrail
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1505229
>
> Title:
> Create two resources with the same name fails
>
> Status in OpenContrail:
> Incomplete
>
> 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-8f05-49c7-9a5b-f4343e9638af
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/opencontrail/+bug/1505229/+subscriptions