500 error report of /v3/users/{user_id}/application_credentials

Bug #1848470 reported by yongyi,ren on 2019-10-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Undecided
Unassigned

Bug Description

parameter
http
requestheader
content-type= application/json
x-Auth-Token =

request body
{
"application_credentila":{
"name":"mytest003",
"description":"Applicaiton for.",
"expries_at":"2018-02-27T18:30:59Z",
"roles":[
{"name":"user"}
],
"unrestricted": false
}
}

repsone code 500

version queens

I don't know where is error。

Gage Hugo (gagehugo) wrote :

Was there any error logs in keystone?

information type: Private Security → Public
yongyi,ren (enter003) wrote :

2019-10-10 17:34:06.498 28044 WARNING keystone.common.controller [req-2b4825ea-acd8-43d8-ba7a-7fc0787a967b - - - - -] RBAC: Bypassing authorization
2019-10-10 17:34:06.507 28044 ERROR keystone.common.wsgi [req-2b4825ea-acd8-43d8-ba7a-7fc0787a967b - - - - -] 'token': KeyError: 'token'
2019-10-10 17:34:06.507 28044 ERROR keystone.common.wsgi Traceback (most recent call last):
2019-10-10 17:34:06.507 28044 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/common/wsgi.py", line 226, in __call__
2019-10-10 17:34:06.507 28044 ERROR keystone.common.wsgi result = method(req, **params)
2019-10-10 17:34:06.507 28044 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/common/controller.py", line 82, in inner
2019-10-10 17:34:06.507 28044 ERROR keystone.common.wsgi return f(self, request, *args, **kwargs)
2019-10-10 17:34:06.507 28044 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/application_credential/controllers.py", line 102, in create_application_credential
2019-10-10 17:34:06.507 28044 ERROR keystone.common.wsgi token = request.auth_context['token']
2019-10-10 17:34:06.507 28044 ERROR keystone.common.wsgi KeyError: 'token'

I am not able to reproduce this in master. From rocky onwards keystone adopted flask-restful for APIs. Could you please upgrade the keystone and check for the same error?

Changed in keystone:
status: New → Incomplete

Hi. Could you update the proper steps to reproduce thus on queens?

Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Identity (keystone) because there has been no activity for 60 days.]

Changed in keystone:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers