← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1645215] Re: Error API call in Delete 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/1645215

Title:
  Error API call in Delete user operation

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

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

  Details:
  ========
  When User is Deleted 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:57:59 +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:57:59 +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:57:59 +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:57:59 +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:57:59 +0530] "GET /v3/users/abc HTTP/1.1" 404 85 "-" "python-keystoneclient"
  6. [22/Nov/2016:13:57:59 +0530] "GET /v3/users/abc HTTP/1.1" 404 85 "-" "python-keystoneclient"
  7. [22/Nov/2016:13:57:59 +0530] "GET /v3/users?name=abc HTTP/1.1" 200 236 "-" "python-keystoneclient"
  8. [22/Nov/2016:13:57:59 +0530] "DELETE /v3/users/6ad2a4fc7d19440d9141853d264df5be HTTP/1.1" 204 - "-" "python-keystoneclient"

  In the above mentioned logs, Line number #5 and #6 is returning 404
  code for GET request to /v3/users/abc which is about to create.

  These two GET request is an overhead. The user 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/1645215/+subscriptions


References