openstack service create allows duplicate names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
$ openstack service create --name keystone --description "OpenStack Identity" identity
+------
| Field | Value |
+------
| description | OpenStack Identity |
| enabled | True |
| id | fbf58f4a39624bc
| name | keystone |
| type | identity |
+------
$ openstack service create --name keystone --description "OpenStack Identity" identity
+------
| Field | Value |
+------
| description | OpenStack Identity |
| enabled | True |
| id | 7bd7431cbd2040a
| name | keystone |
| type | identity |
+------
$ openstack service list
+------
| ID | Name | Type |
+------
| 7bd7431cbd2040a
| fbf58f4a39624bc
+------
Here we can see, that duplicate service names are created using openstack service create command.
Changed in python-openstackclient: | |
status: | New → Invalid |
Changed in keystone: | |
assignee: | nobody → Kanika Singh (kanikasingh-1490) |
this is because the v2 API of keystone does not validate duplicate names, try the v3 APIs, it should.