← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1645213] Re: Error API call in Create user operation

 

As Steve mentions, this is how the client is written.  Feel free to re-
open this after perfroming an analysis of the client code to determine
which calls are actually redundant, given the lookups being performed
and uncertainty of the information provided by the user.

** Changed in: python-openstackclient
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1645213

Title:
  Error API call in Create user operation

Status in OpenStack Identity (keystone):
  Invalid
Status in python-openstackclient:
  Invalid

Bug description:
  Problem:
  ========
  While create user operation is performed, unnecessary API calls are executed.

  Details:
  ========
  When User is created through CLI command, the unnecessary API calls are observed.
  we can see in the logs of Keystone access logs.

  /var/log/httpd/keystone_wsgi_admin_access.log:
  ----------------------------------------------
  1. [22/Nov/2016:13:55:53 +0530] "GET /v3 HTTP/1.1" 200 194 "-" "osc-lib keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.5"
  2. [22/Nov/2016:13:55:53 +0530] "POST /v3/auth/tokens HTTP/1.1" 201 5422 "-" "osc-lib keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.5"
  3. [22/Nov/2016:13:55:53 +0530] "POST /v3/auth/tokens HTTP/1.1" 201 5422 "-" "osc-lib keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.5"
  4. [22/Nov/2016:13:55:53 +0530] "GET / HTTP/1.1" 300 593 "-" "osc-lib keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.5"
  5. [22/Nov/2016:13:55:53 +0530] "GET /v3/projects/admin HTTP/1.1" 404 90 "-" "python-keystoneclient"
  6. [22/Nov/2016:13:55:53 +0530] "GET /v3/projects/admin HTTP/1.1" 404 90 "-" "python-keystoneclient"
  7. [22/Nov/2016:13:55:53 +0530] "GET /v3/projects?name=admin HTTP/1.1" 200 226 "-" "python-keystoneclient"
  8. [22/Nov/2016:13:55:53 +0530] "POST /v3/users HTTP/1.1" 201 282 "-" "python-keystoneclient"

  In the above mentioned logs, Line number #5 and #6 is returning 404
  code for GET request to /v3/projects/admin.

  These two GET request is an overhead. The project information is
  achieved in line #7 with another GET request.

  These two API request should be removed.

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


References