can create the same type and name of a service with v3 API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
i create a service as follows,it can be successful.
curl -H "X-Auth_
% Total % Received % Xferd Average Speed Time Time Time Current
100 325 100 240 100 85 1265 448 --:--:-- --:--:-- --:--:-- 1269
{
"service": {
"enabled": true,
"id": "2d0da8b3d57b4d
"links": {
"self": "http://
},
"name": "name_service",
"type": "test_servce"
}
when i create a service with the same command again,it still can be successful. the service list is as follows,there are two records with the same name and type.
curl -H "X-Auth_
% Total % Received % Xferd Average Speed Time Time Time Current
100 1920 100 1920 0 0 7874 0 --:--:-- --:--:-- --:--:-- 7901
{
"links": {
"next": null,
"previous": null,
"self": "http://
},
"services": [
{
"id": "18c27349d6bf46
},
"name": "neutron",
"type": "network"
},
{
"id": "2d0da8b3d57b4d
},
"name": "name_service",
"type": "test_servce"
},
{
"id": "9af35c8f07c541
},
"name": "name_service",
"type": "test_servce"
},
]
}
Changed in keystone: | |
assignee: | huanghao (huang1hao) → nobody |
the service type should have a unique constraint