Bug 2018153

Summary: RFE - Provide an option to abort an Auto Member rebuild task.
Product: Red Hat Enterprise Linux 7 Reporter: Têko Mihinto <tmihinto>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 7.9CC: bsmejkal, jreznik, ldap-maint, mreynolds, tbordaz
Target Milestone: rcKeywords: FutureFeature, TestCaseProvided, Triaged, ZStream
Target Release: 7.9   
Hardware: x86_64   
OS: Linux   
Whiteboard: sync-to-jira
Fixed In Version: 389-ds-base-1.3.10.2-16.el7_9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2052527 (view as bug list) Environment:
Last Closed: 2022-06-28 09:54:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2052527, 2052528    
Attachments:
Description Flags
Patch file for "RFE abort automember rebuild task" for 389-ds-base-1.3.10 branch none

Description Têko Mihinto 2021-10-28 11:21:50 UTC
Description of problem:
Depending of the size of the groups along with the complexity of the rules and the interactions with other plugins ( typically in an IPA context ), the Auto Member rebuild task can generate performance issues ( for instance a high CPU usage when the Schema Compatibility plugin is called ). 

Therefore a customer would like to have an option to abort the rebuild task.

Version-Release number of selected component (if applicable):
RHEL 7.9

How reproducible:
Was a 1 time issue at a customer site.

Steps to Reproduce:


Actual results:
High CPU usage for several hours.

Expected results:
Allow to stop the task.

Additional info:

Comment 6 mreynolds 2022-02-08 17:25:22 UTC
Upstream ticket: 

https://github.com/389ds/389-ds-base/issues/5155

Comment 7 mreynolds 2022-02-08 17:47:01 UTC
Created attachment 1859850 [details]
Patch file for "RFE abort automember rebuild task" for 389-ds-base-1.3.10 branch

This patch can be used to generate a hotfix for RHEL 7.9 that adds an abort task to cancel any running "automember rebuild tasks.  This is an example on how to execute the task:

# ldapmodify -D "cn=directory manager" -W
dn: cn=my abort task, cn=automember abort rebuild,cn=tasks,cn=config
objectClass: top
objectClass: extensibleObject
cn: my abort task


In addition to the new "Abort Task" the database transaction handling was also changed around the rebuild task, and it "might" help improve the impact of the rebuild task.  It would be good to know if the abort task is still needed after applying the hotfix.

Comment 23 errata-xmlrpc 2022-06-28 09:54:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: 389-ds-base security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHSA-2022:5239