← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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.

** Affects: glance
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1687605

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

Status in Glance:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1687605/+subscriptions