If the endpoint group project association was created, and "endpoint_filter.sql" as catalog's backend driver. All of the endpoints associated with the project and match the criterion defined in the "endpoint group" should be given after a project scoped token was return.
But currently, those endpoints can *only* be show if using call `list_endpoints_for_project` API explictly but cannot get back when the project scoped token was issued.
If the endpoint group project association was created, and "endpoint_ filter. sql" as catalog's backend driver. All of the endpoints associated with the project and match the criterion defined in the "endpoint group" should be given after a project scoped token was return.
But currently, those endpoints can *only* be show if using call `list_endpoints _for_project` API explictly but cannot get back when the project scoped token was issued.
Steps to reproduce this issue.
-Create endpoint group.
$curl -g -i -X POST http:// 10.239. 48.36:5000/ v3/OS-EP- FILTER/ endpoint_ groups -H "X-Auth- Token:a85e07129 aa54f61a4639554 3a3146af" -H "Content-Type: application/json" -d '{"endpoint_group": {"description": "endpoint group description", "filters": {"interface": "admin"}, "name": "endpoint_ group_name" }}'
- Create endpoint_group project association
$curl -g -i -X PUT http:// 10.239. 48.36:5000/ v3/OS-EP- FILTER/ endpoint_ groups/ ea1af6e153bf4b8 7a88b5962de8cda e8/projects/ 927e252fb44d4b5 cac9d4fb24d85be 41 -H "X-Auth- Token:a85e07129 aa54f61a4639554 3a3146af" -H "Content-Type: application/json"
- Get endpoint for the projects
$curl -g -i -X GET http:// 10.239. 48.36:5000/ v3/OS-EP- FILTER/ projects/ 927e252fb44d4b5 cac9d4fb24d85be 41/endpoints -H "X-Auth- Token:a85e07129 aa54f61a4639554 3a3146af" -H "Content-Type: application/json"
"region_ id": "RegionOne",
"links" : {
"self" : "http:// 10.239. 48.36:5000/ v3/endpoints/ 3f6fb8738db8427 a997dbcc791b790 1d" 10.239. 48.36:8773/",
"region" : "RegionOne",
"enabled" : true,
"interface ": "admin",
"service_ id": "a3338a6847e947 66831ea7d9d4359 8cc", 7a997dbcc791b79 01d"
"region_ id": "RegionOne",
"links" : {
"self" : "http:// 10.239. 48.36:5000/ v3/endpoints/ dd69f161f8a2461 2a7ffe796b45b8c d2" 10.239. 48.36:8774/ v2.1/$( tenant_ id)s",
"region" : "RegionOne",
"enabled" : true,
"interface ": "admin",
"service_ id": "a147aa8896c442 9aacf0f2eefd390 98e", 12a7ffe796b45b8 cd2"
"region_ id": "RegionOne",
"links" : {
"self" : "http:// 10.239. 48.36:5000/ v3/endpoints/ 0d70f9fd5a85446 c99fee79388adf9 dc" 10.239. 48.36:9292",
"region" : "RegionOne",
"enabled" : true,
"interface ": "admin",
"service_ id": "4c367805e2a147 589a14310d1486a b01", 6c99fee79388adf 9dc"
"region_ id": null,
"links" : {
"self" : "http:// 10.239. 48.36:5000/ v3/endpoints/ 5be3023ddf984fc f942b2a396eb016 7b" 127.0.0. 0:20",
"region" : null,
"enabled" : true,
"interface ": "internal",
"service_ id": "69da5bbf65aa45 65b9833655075e7 a8a", cf942b2a396eb01 67b"
"region_ id": "RegionOne",
"links" : {
"self" : "http:// 10.239. 48.36:5000/ v3/endpoints/ 9393be9c7eda41d 89a28f2ffb486dc 7c" 10.239. 48.36:35357/ v2.0",
"region" : "RegionOne",
"enabled" : true,
"interface ": "admin",
"service_ id": "ef49d941aed34d 39b8b49fce27c83 a50", d89a28f2ffb486d c7c"
"region_ id": "RegionOne",
"links" : {
"self" : "http:// 10.239. 48.36:5000/ v3/endpoints/ 151b9f8b132f4c2 6a562872e09389a 69" 10.239. 48.36:8774/ v2/$(tenant_ id)s",
"region" : "RegionOne",
"enabled" : true,
"interface ": "admin",
"service_ id": "8bb4bdc9fcac4f b5bec4f6779268f 0d0", 26a562872e09389 a69"
"region_ id": "RegionOne",
"links" : {
"self" : "http:// 10.239. 48.36:5000/ v3/endpoints/ bff53486b72c44e 9b00cf69184b66c e9" 10.239. 48.36:3333",
"region" : "RegionOne",
"enabled" : true,
"interface ": "admin",
"service_ id": "69da5bbf65aa45 65b9833655075e7 a8a", e9b00cf69184b66 ce9"
"region_ id": "RegionOne",
"links" : {
"self" : "http:// 10.239. 48.36:5000/ v3/endpoints/ d0ee548da623477 eb73b60018c3e5a b8" 10.239. 48.36:8776/ v1/$(tenant_ id)s",
"region" : "RegionOne",
"enabled" : true,
"interface ": "admin",
"service_ id": "928eb1b536464e 238e573284760e6 56a", 7eb73b60018c3e5 ab8"
"region_ id": "RegionOne",
"links" : {
"self" : "http:// 10.239. 48.36:5000/ v3/endpoints/ 44699ffc6427461 2a0c039531f6609 6d" 10.239. 48.36:8776/ v2/$(tenant_ id)s",
"region" : "RegionOne",
"enabled" : true,
"interface ": "admin",
"service_ id": "ab4b7001ccaa4c 3896407d4523466 183", 12a0c039531f660 96d" 10.239. 48.36:5000/ v3/OS-EP- FILTER/ projects/ 927e252fb44d4b5 cac9d4fb24d85be 41/endpoints",
...
{
"endpoints": [
{
},
"url": "http://
"id": "3f6fb8738db842
},
{
},
"url": "http://
"id": "dd69f161f8a246
},
{
},
"url": "http://
"id": "0d70f9fd5a8544
},
{
},
"url": "http://
"id": "5be3023ddf984f
},
{
},
"url": "http://
"id": "9393be9c7eda41
},
{
},
"url": "http://
"id": "151b9f8b132f4c
},
{
},
"url": "http://
"id": "bff53486b72c44
},
{
},
"url": "http://
"id": "d0ee548da62347
},
{
},
"url": "http://
"id": "44699ffc642746
}
],
"links": {
"self": "http://
"previous": null,
"next": null
}
}
...
- Get a project scoped token
$ curl -i -H "Content-Type: application/json" -d '{ "auth": { "identity": {
"password" : "12345" 10.239. 48.36:5000/ v3/auth/ tokens; echo
"methods": ["password"],
"password": {
"user": {
"name": "admin",
"domain": { "id": "default" },
}
}
},
"scope": {
"project": {
"name": "admin",
"domain": { "id": "default" }
}
}
}
}' http://
...
"endpoints" : [
{
"region_ id": null,
"url" : "http:// 127.0.0. 0:20",
"interface" : "internal",
"id" : "5be3023ddf984f cf942b2a396eb01 67b"
}
"type" : "s3",
"id": "69da5bbf65aa45 65b9833655075e7 a8a"
"catalog": [
{
],
}
],
...