different behaviors between kvs and sql driver when creating endpoint

Bug #1403272 reported by wanghong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Low
wanghong

Bug Description

Sql driver:

curl -i -H "X-Auth-Token:$token" -H "Content-Type:application/json" http://127.0.0.1:35357/v3/endpoints -d '{"endpoint":{"service_id": "84a0ed4f9c484f2391357cfba0b9ae94", "interface": "public", "url": "http://127.0.0.1"}}'
HTTP/1.1 201 Created
Date: Wed, 17 Dec 2014 01:25:59 GMT
Server: Apache/2.2.22 (Ubuntu)
Vary: X-Auth-Token
Content-Length: 303
Content-Type: application/json

{"endpoint": {"region_id": null, "links": {"self": "http://127.0.0.1:5000/v3/endpoints/1d093f97386e4d94a5545dc4c6d9e99f"}, "url": "http://127.0.0.1", "region": null, "enabled": true, "interface": "public", "service_id": "84a0ed4f9c484f2391357cfba0b9ae94", "id": "1d093f97386e4d94a5545dc4c6d9e99f"}}

Kvs driver:

curl -i -H "X-Auth-Token:$token" -H "Content-Type:application/json" http://127.0.0.1:35357/v3/endpoints -d '{"endpoint":{"service_id": "6a2129d185434422a6df048a5b2289e9", "interface": "public", "url": "http://127.0.0.1","region":"zzz"}}'
HTTP/1.1 201 Created
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 288
Date: Wed, 17 Dec 2014 01:33:49 GMT

{"endpoint": {"region_id": "zzz", "links": {"self": "http://127.0.0.1:5000/v3/endpoints/da3dce2d7a6a4a0293def6bfc4a97803"}, "url": "http://127.0.0.1", "region": "zzz", "interface": "public", "service_id": "6a2129d185434422a6df048a5b2289e9", "id": "da3dce2d7a6a4a0293def6bfc4a97803"}}

Note that kvs driver does not set enabled default to True.

wanghong (w-wanghong)
Changed in keystone:
assignee: nobody → wanghong (w-wanghong)
Changed in keystone:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by wanghong (<email address hidden>) on branch: master
Review: https://review.openstack.org/139958

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/142316

Revision history for this message
Lance Bragstad (lbragstad) wrote :

It looks like the KVS backend is going to be removed relatively soon anyway, according to the remove-as-of-kilo spec:

https://github.com/openstack/keystone-specs/blob/master/specs/kilo/removed-as-of-kilo.rst

Not sure if it'd be worth it to continue iterating on the fix.

Changed in keystone:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by wanghong (<email address hidden>) on branch: master
Review: https://review.openstack.org/142316

Revision history for this message
Steve Martinelli (stevemar) wrote :

the KVS backend has been removed

Changed in keystone:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.