openstack cli - create multiple routers/networks with same name in same project
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Undecided
|
Unassigned |
Bug Description
https:/
Description of problem:
Unlike other openstack cli commands, that prevents duplicate objects creation with same name (returning "Conflict occurred attempting to store ..."), the "router create" command - does allow to create multiple routers with same name in same project.
Version-Release number of selected component:
OSP 13 - 2018-03-20.2
How reproducible:
always
Steps to Reproduce:
(overcloud) [stack@undercloud-0 ~]$
$ openstack project create test_cloud --enable
Conflict occurred attempting to store project - it is not permitted to have two projects with the same name in the same domain : test_cloud. (HTTP 409)
$ openstack user create tester --enable --password testerpass --project test_cloud
Conflict occurred attempting to store user - Duplicate entry found with name tester at domain ID default. (HTTP 409)
$ openstack router create internal_router
...
| id | a2b97aa1-
| name | internal_router |
$ openstack router create internal_router
...
| id | 8c2f09d3-
| name | internal_router |
$ openstack router list
+------
| ID | Name | Status | State | Distributed | HA | Project |
+------
| 8c2f09d3-
| a2b97aa1-
+------
Expected results:
A second attempt to run "openstack router create internal_router" should probably return:
Conflict occurred attempting to store router - Duplicate entry found with name internal_router at project ID test_cloud. (HTTP 409)
Changed in neutron: | |
status: | New → Invalid |
A side note:
"openstack security group create" has the same behaviour - not preventing creation of duplicate security group names. Probably should be fixed too.