Bug 1532568 - Authentication provider does not recover during runtime
Summary: Authentication provider does not recover during runtime
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-extension-aaa-ldap
Classification: oVirt
Component: General
Version: 1.3.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.3.2
: 1.3.9
Assignee: Ondra Machacek
QA Contact: Petr Matyáš
URL:
Whiteboard:
Depends On:
Blocks: 1640961 1693835
TreeView+ depends on / blocked
 
Reported: 2018-01-09 11:15 UTC by Bernhard Seidl
Modified: 2019-03-28 18:33 UTC (History)
7 users (show)

Fixed In Version: ovirt-engine-extension-aaa-ldap-1.3.9
Clone Of:
: 1640961 1693835 (view as bug list)
Environment:
Last Closed: 2019-03-19 10:05:23 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.3+
lleistne: testing_ack+


Attachments (Terms of Use)
Logfile (308.79 KB, text/plain)
2018-01-09 11:15 UTC, Bernhard Seidl
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 98064 0 None None None 2019-02-28 14:05:13 UTC
oVirt gerrit 98146 0 None None None 2019-03-01 10:23:41 UTC

Description Bernhard Seidl 2018-01-09 11:15:11 UTC
Created attachment 1378986 [details]
Logfile

Description of problem:
In case the extension fails due to a name resolution oder network problem. The extension stops working and does not recover after the problem has been resolved.

Version-Release number of selected component (if applicable):
master(1.3.7)

How reproducible:
100%


Steps to Reproduce:
1. Setup a engine
2. setup ldap authentication
3. Test ldap login and search
4. Block access to the configured ldap server (firewall or shutdown)
5. restart engine using 'systemctl restart ovirt-engine'
6. Try to login using ldap provider
7. Remove the block
8. Try again to login using ldap provider

Actual results:
Login fails

Expected results:
Login should succeed

Additional info:
Interesting log messages:
WARN  [org.ovirt.engineextensions.aaa.ldap.Framework] (ServerService Thread Pool -- 42) [] Ignoring records from pool: 'authz'
INFO  [org.ovirt.engineextensions.aaa.ldap.AuthzExtension] (ServerService Thread Pool -- 42) [] [ovirt-engine-extension-aaa-ldap.authz::test-authz] Available Namespaces: []
INFO  [org.ovirt.engine.core.extensions.mgr.ExtensionsManager] (ServerService Thread Pool -- 42) [] Extension 'test-authz' initialized

Workaround:
Restart engine using 'systemctl restart ovirt-engine'

Comment 2 Ondra Machacek 2018-01-19 13:42:11 UTC
Curently we don't re-initialize the connection pools, when it failed at engine startup initialization. The ldap must be connective during engine startup, but we do re-connect successfully when the machine is non-reponsive after the initialization.

Comment 3 Petr Matyáš 2019-03-07 09:16:36 UTC
Verified on ovirt-engine-extension-aaa-ldap-1.3.9-1.el7ev.noarch

Comment 4 Sandro Bonazzola 2019-03-19 10:05:23 UTC
This bugzilla is included in oVirt 4.3.2 release, published on March 19th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.2 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.