Ask Your Question
2

glance image-create error, Openstack - Kilo Release, v3 API.

asked 2015-09-01 23:19:00 -0500

Pavanasam R gravatar image

updated 2015-09-08 10:07:08 -0500

Update:-

if i do "glance --debug image-list" then i'm getting below message.

root@controller:~# glance --debug image-list curl -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: /' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}2ee182860df9b837da65202e3292e7b3f4f2e56c' -H 'Content-Type: application/octet-stream' http://controller:9292/v2/schemas/image Request returned failure status 401. Invalid OpenStack Identity credentials. root@controller:~#

& in the keystone admin.log file, i'm getting below log messages.

2015-09-08 07:48:01.167 18269 DEBUG keystone.middleware.core [-] Auth token not in the request header. Will not build auth context. process_request /usr/lib/python2.7/dist-packages/keystone/middleware/core.py:229 2015-09-08 07:48:01.168 18269 INFO keystone.common.wsgi [-] GET /? 2015-09-08 07:48:01.171 18268 DEBUG keystone.middleware.core [-] Auth token not in the request header. Will not build auth context. process_request /usr/lib/python2.7/dist-packages/keystone/middleware/core.py:229 2015-09-08 07:48:01.174 18268 INFO keystone.common.wsgi [-] POST /auth/tokens? 2015-09-08 07:48:01.249 18268 DEBUG keystone.common.kvs.core [-] KVS lock acquired for: usertokens-df6c26780fac4081a29a4376b30a32dd acquire /usr/lib/python2.7/dist-packages/keystone/common/kvs/core.py:382 2015-09-08 07:48:01.252 18268 DEBUG keystone.common.kvs.core [-] KVS lock released for: usertokens-df6c26780fac4081a29a4376b30a32dd release /usr/lib/python2.7/dist-packages/keystone/common/kvs/core.py:401 2015-09-08 07:48:01.274 18271 DEBUG keystone.middleware.core [-] Auth token not in the request header. Will not build auth context. process_request /usr/lib/python2.7/dist-packages/keystone/middleware/core.py:229 2015-09-08 07:48:01.278 18271 INFO keystone.common.wsgi [-] POST /auth/tokens? 2015-09-08 07:48:01.288 18271 WARNING keystone.common.wsgi [-] Expecting to find id or name in user - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. 2015-09-08 07:48:01.319 18268 DEBUG keystone.middleware.core [-] Auth token not in the request header. Will not build auth context. process_request /usr/lib/python2.7/dist-packages/keystone/middleware/core.py:229 2015-09-08 07:48:01.320 18268 INFO keystone.common.wsgi [-] GET /? 2015-09-08 07:48:01.323 18269 DEBUG keystone.middleware.core [-] Auth token not in the request header. Will not build auth context. process_request /usr/lib/python2.7/dist-packages/keystone/middleware/core.py:229 2015-09-08 07:48:01.325 18269 INFO keystone.common.wsgi [-] POST /auth/tokens? 2015-09-08 07:48:01.400 18269 DEBUG keystone.common.kvs.core [-] KVS lock acquired for: usertokens-df6c26780fac4081a29a4376b30a32dd acquire /usr/lib/python2.7/dist-packages/keystone/common/kvs/core.py:382 2015-09-08 07:48:01.402 18269 DEBUG keystone.common.kvs.core [-] KVS lock released for: usertokens-df6c26780fac4081a29a4376b30a32dd release /usr/lib/python2.7/dist-packages/keystone/common/kvs/core.py:401 2015-09-08 07:48:01.409 18270 DEBUG keystone.middleware.core [-] Auth token not in the request header. Will not build auth context. process_request /usr/lib/python2.7/dist-packages/keystone/middleware/core.py:229 2015-09-08 07:48:01.413 18270 INFO keystone.common.wsgi [-] POST /auth/tokens? 2015-09-08 07:48 ... (more)

edit retag flag offensive close merge delete

Comments

can you post keystone endpoint-list also try running the request with the --debug option when using glance CLI, also post the output of env | grep -i OS

omar-munoz gravatar imageomar-munoz ( 2015-09-03 17:49:47 -0500 )edit

hi Omar,

https://ask.openstack.org/en/question... as per this link, in V3 API, the keystone cmd's are depreceated.

Thanks, Pavan

Pavanasam R gravatar imagePavanasam R ( 2015-09-07 10:15:19 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-09-10 08:44:25 -0500

Pavanasam R gravatar image

HI,

there ia a mistake in glance-api.conf file. in [keystone_authtoken] section, instead of username parameter, it was user_name. corrected it. its working fine.

Thank You guys. :) Pavan

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2015-09-01 22:31:05 -0500

Seen: 1,222 times

Last updated: Sep 10 '15