Browse Source

Issue 7032 - The new ipahealthcheck test ipahealthcheck.ds.backends.BackendsCheck raises CRITICAL issue (#7036)

Bug description:
	The bug fix #6966 adds a 'scanlimit' to one of the system
	index ('parentid'). So not all of them have such attribute.
	In healthcheck such attribute (i.e. key) can miss but
	the code assumes it is present

Fix description:
	Get 'parentid' from the dict with the proper routine
	(Thanks Florence Renaud for the debug/fix)

fixes: #7032

Reviewed by: Pierre Rogier and Simon Pichugin (thank you !)
tbordaz 2 weeks ago
parent
commit
4b06fdc13c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib389/lib389/backend.py

+ 1 - 1
src/lib389/lib389/backend.py

@@ -627,7 +627,7 @@ class Backend(DSLdapObject):
                             reindex_attrs.add(attr_name)
 
                     # Check fine grain definitions for parentid ONLY
-                    expected_scanlimit = expected_config['scanlimit']
+                    expected_scanlimit = expected_config.get('scanlimit')
                     if (attr_name.lower() == "parentid") and expected_scanlimit and (len(actual_scanlimit) == 0):
                             discrepancies.append(f"Index {attr_name} missing fine grain definition of IDs limit: {expected_mr}")
                             # Add the missing scanlimit