Unstable work keystone+TLS via LDAP proxy

Bug #1596504 reported by Max Yatsenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel Plugins
Fix Released
High
Max Yatsenko

Bug Description

When there is a configuration: keystone+TLS (with domains are enabled) via LDAP proxy we get unstable keystone work.
It's reflected in the fact that i.e. keystone returns user list of some ldap domain or it is failed:

root@node-3:/etc/ldap# OS_IDENTITY_API_VERSION=3 openstack user list --domain mirantis.tld
An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-0b41a6d8-6f83-43d4-bfed-99704817e0ec)

-----

root@node-3:/etc/ldap# OS_IDENTITY_API_VERSION=3 openstack user list --domain mirantis.tld
+------------------------------------------------------------------+-------+
| ID | Name |
+------------------------------------------------------------------+-------+
| 5e3712f0a4f1e05d6e0c4f8909340424dc21ad70de354b39cdf22a68c45b978f | demo |
| bbe729e29e55faf9f68a79d9d98f52b1a7fd35277b4abc1a54065cfceb0b8084 | demo2 |
| 511b2c2670a05e869d1275f417e75ec9525992a1fe677a9acc574e3b86818e64 | demo3 |
+------------------------------------------------------------------+-------+

In keystone logs we have such errors:

---------
REQ: curl -g -i -X GET http://192.168.0.2:35357/v3/users?domain_id=4416beef97cb4735939be0eae5faea56 -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}ee5362256c46ef7262830720c82f8840f83bd6fa"
Resetting dropped connection: 192.168.0.2
"GET /v3/users?domain_id=4416beef97cb4735939be0eae5faea56 HTTP/1.1" 500 143
RESP: [500] Content-Length: 143 Vary: X-Auth-Token Server: Apache Connection: close Date: Wed, 22 Jun 2016 18:43:34 GMT Content-Type: application/json x-openstack-request-id: req-75bf37fb-32c4-4db4-87e5-1ec084fb788f
RESP BODY: {"error": {"message": "An unexpected error prevented the server from fulfilling your request.", "code": 500, "title": "Internal Server Error"}}
---------

<12>Jun 23 11:00:27 node-3 keystone-admin: 2016-06-23 11:00:27.873 22793 WARNING keystone.common.manager [req-e58f97a1-79f8-4186-8cb1-ec09f5bfc5c8 - - - - -] Deprecated: Direct import of driver 'keystone.identity.backends.ldap.Identity' is deprecated as of Liberty in favor of its entrypoint from 'keystone.identity' and may be removed in N.
<15>Jun 23 11:00:27 node-3 keystone-admin: 2016-06-23 11:00:27.878 22793 DEBUG keystone.common.manager [req-e58f97a1-79f8-4186-8cb1-ec09f5bfc5c8 - - - - -] Failed to load 'keystone.identity.backends.ldap.Identity' using stevedore: No 'keystone.identity' driver found, looking for 'keystone.identity.backends.ldap.Identity' load_driver /usr/lib/python2.7/dist-packages/keystone/common/manager.py:77
----------

Revision history for this message
Max Yatsenko (myatsenko) wrote :

It was decided to transport using of TLS from keystone side to proxy side.

Changed in fuel-plugins:
milestone: none → 9.0
assignee: nobody → Max Yatsenko (myatsenko)
Revision history for this message
Alexander Petrov (apetrov-n) wrote :

I see in this log-file that domain I tried to get the user list is not found.

https://paste.mirantis.net/show/2438/

This error occurs randomly.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-plugin-ldap (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/338528

Revision history for this message
Max Yatsenko (myatsenko) wrote :

The patch https://review.openstack.org/338528 should fix periodical troubles with proxy+TLS

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-plugin-ldap (master)

Reviewed: https://review.openstack.org/338528
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-ldap/commit/?id=3cedc52da5ef4f0bae20eb4a488f8ba1a5d26b36
Submitter: Jenkins
Branch: master

commit 3cedc52da5ef4f0bae20eb4a488f8ba1a5d26b36
Author: Maksym Yatsenko <email address hidden>
Date: Wed Jul 6 23:03:13 2016 +0300

    Update template for LDAP proxy with TLS.

    Template of LDAP proxy that uses TLS was updated.

    Change-Id: I30160ec1930a65686a615c49e118c1b10cef2ce5
    Related-Bug: #1596504

Max Yatsenko (myatsenko)
Changed in fuel-plugins:
importance: Undecided → High
status: New → Fix Committed
Changed in fuel-plugins:
status: Fix Committed → Fix Released
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.