[Glance] While executing glance-deactivate command, POST token took place twice.

Bug #1687605 reported by Saurabh jangir
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
New
Undecided
Brian Rosmaita

Bug Description

Executed Steps:

[root@localhost ~(keystone_admin)]# glance image-deactivate cad831a1-a7ba-43c7-aa6a-aa1cfe534aee
[root@localhost ~(keystone_admin)]#

Get version and POST auth token is taking place twice in this request which is definitely an overhead.

below are the LOGS:

File : /var/log/httpd/keystone_wsgi_main_access.log

10.0.2.15 - - [07/Apr/2017:16:07:24 +0530] "GET /v3 HTTP/1.1" 200 190 "-" "glance keystoneauth1/2.18.0 python-requests/2.11.1 CPython/2.7.5"
10.0.2.15 - - [07/Apr/2017:16:07:24 +0530] "POST /v3/auth/tokens HTTP/1.1" 201 7648 "-" "glance keystoneauth1/2.18.0 python-requests/2.11.1 CPython/2.7.5"
10.0.2.15 - - [07/Apr/2017:16:07:24 +0530] "GET /v3 HTTP/1.1" 200 190 "-" "glance keystoneauth1/2.18.0 python-requests/2.11.1 CPython/2.7.5"
10.0.2.15 - - [07/Apr/2017:16:07:24 +0530] "POST /v3/auth/tokens HTTP/1.1" 201 7648 "-" "glance keystoneauth1/2.18.0 python-requests/2.11.1 CPython/2.7.5"

File : /var/log/keystone/keystone.log

2017-04-07 16:07:24.519 20215 INFO keystone.common.wsgi [req-27edb41e-d987-4959-b846-cc199ee216e7 - - - - -] GET http://10.0.2.15:5000/v3/
2017-04-07 16:07:24.523 20215 INFO keystone.common.wsgi [req-d1ac95ba-f4e8-43ee-988e-d114e29e4e3c - - - - -] POST http://10.0.2.15:5000/v3/auth/tokens
2017-04-07 16:07:24.735 20215 INFO keystone.common.wsgi [req-cc0a9b2b-1ed7-4697-aedf-943cc8076163 - - - - -] GET http://10.0.2.15:5000/v3/
2017-04-07 16:07:24.743 20215 INFO keystone.common.wsgi [req-ed1915a4-e7ea-4796-908f-270df5ac58c1 - - - - -] POST http://10.0.2.15:5000/v3/auth/tokens
2017-04-07 16:07:24.974 20214 INFO keystone.common.wsgi [req-da10ff29-0170-453b-89ec-b42807133e79 - - - - -] GET http://10.0.2.15:35357/v3/auth/tokens

This will also increase the Database transactions.

Changed in glance:
assignee: nobody → wangxiyuan (wangxiyuan)
assignee: wangxiyuan (wangxiyuan) → Saurabh jangir (sjopenstack)
Revision history for this message
Brian Rosmaita (brian-rosmaita) wrote :

Please provide some more information, for example, what version of glance you are seeing this with, are you running in devstack, etc. Thanks!

Revision history for this message
Saurabh jangir (sjopenstack) wrote :

Hi Brian rosmaita, below are the details.
glance client version is 2.6.0
glance version is 14.0.0
I am using packstack.
Thanks !!

Changed in glance:
assignee: Saurabh jangir (sjopenstack) → Brian Rosmaita (brian-rosmaita)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.