Yair Zaslavsky has posted comments on this change.

Change subject: aaa: Engine should start even if exception occured in load of 
legacy provider
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.ovirt.org/#/c/29879/1/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/extensionsmgr/EngineExtensionsManager.java
File 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/extensionsmgr/EngineExtensionsManager.java:

Line 194:                             
Config.getValue(ConfigValues.MaxLDAPQueryPartsNumber).toString());
Line 195:                     attachConfigValuesFromDb(dirConfig, domain);
Line 196:                     load(dirConfig);
Line 197:                 } catch (Exception ex) {
Line 198:                     log.error("An error has occurred while 
initializaing a kerberos/ldap extension. Exception message is: {}", 
ex.getMessage());
> no... the extension should handle the errors, and retry.
I remind you there was no concept of "entry point" or loading as we have now.
The failures we had are for example - unreachable ldap servers. no exception 
that failed the engine from starting was thrown - there was a structure that 
held "domain information" and per domain it held for example the RootDSE 
record. if for a given domain there was a failure to obtain the RootDSE 
context, then namingContext for the domain was unknown, and an attempt to fetch 
RootDSE again was done in the next authz query (for example  - a query to get 
user by name used this domain object - if none existed in the data structure , 
a RootDSE call was made to try to populate it).
Once again, why not have a generic mechanism for retries?
Line 199:                     log.debug("", ex);
Line 200:                 }
Line 201:             }
Line 202:         }


-- 
To view, visit http://gerrit.ovirt.org/29879
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I6ba595253c2569cf581e690b68348e6ae1c804b1
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to