Multiple services with same name and type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I am working on the current devstack environment.
keystone service-create allows creating multiple services with the same --name and --type.
Is this expected ?
$ keystone --debug --os-endpoint http://
+------
| Property | Value |
+------
| description | |
| enabled | True |
| id | 69a40a334b58433
| name | junk |
| type | junk |
+------
$ keystone --debug --os-endpoint http://
+------
| Property | Value |
+------
| description | |
| enabled | True |
| id | e976635ceb9d4c4
| name | junk |
| type | junk |
+------
I expected it to fail as the 'user-create' fails with conflict error.
After creating multiple service with same name, keystone endpoint-create fails with the error
$ keystone --debug --os-endpoint http://
Multiple service matches found for 'junk', use an ID to be more specific.
Varun, according to the documentation, the only attribute that is required to create a service is the 'type' attribute and I don't believe it needs to be unique. The 'name' attribute is optional and has no requirement to be unique either. Since it is possible to have multiple services with the same name and type, they can be referenced by their UUID. Even using Keystone V3, 'type' is the only attribute required on service create [1].
[1] https:/ /github. com/openstack/ keystone/ blob/73ad4036d6 2b3aa7cf50e11dd f7bee8278bbe4d0 /keystone/ catalog/ schema. py#L56