Unexpected service token warning message in keystone log
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Triaged
|
Low
|
Unassigned |
Bug Description
WARNING keystone.
In compute quota API request[0] flow, nova is making a rest call to keystone invoking identity project API[1] at [2] for project verification. In this service call, a valid service token is being passed in addition to user_token in request headers.
With reference to keystone pipeline [3], the above request is going through 'build_
[0] GET /compute/
[1] GET /v3/projects/
[2] https:/
[3] [pipeline:api_v3]
pipeline = ........ url_normalize request_id build_auth_context token_auth json_body service_v3
[4] build_auth_context = keystone.
[5] https:/
[6] https:/
[7] https:/
Changed in keystone: | |
status: | New → Triaged |
tags: | added: keystonemiddleware logging middleware |
Warning message is triggered only if some service makes a call to keystone, but in case of non-keystone service calls like nova calling cinder, the request is going through 'authtoken' middleware[0] in paste pipeline which initializes keystonemiddlew are.auth_ token.BaseAuthP rotocol[ 1] by loading 'service_ token_roles' , 'service_ token_roles_ required' [2] from cinder.conf file .
[0][filter: authtoken] filter_ factory = keystonemiddlew are.auth_ token:filter_ factory
paste.
[1] https:/ /github. com/openstack/ keystonemiddlew are/blob/ stable/ pike/keystonemi ddleware/ auth_token/ __init_ _.py#L565- L570
[2] authtoken] token_roles_ required = True
[keystone_
service_
service_token_roles = admin