← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1403272] [NEW] different behaviors between kvs and sql driver when creating endpoint

 

Public bug reported:

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.

** Affects: keystone
     Importance: Undecided
     Assignee: wanghong (w-wanghong)
         Status: New

** Changed in: keystone
     Assignee: (unassigned) => wanghong (w-wanghong)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1403272

Title:
  different behaviors between kvs and sql driver when creating endpoint

Status in OpenStack Identity (Keystone):
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1403272/+subscriptions


Follow ups

References