Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1219208

Summary: Remove cleanAllRUV task limit of 4
Product: Red Hat Enterprise Linux 6 Reporter: Noriko Hosoi <nhosoi>
Component: 389-ds-baseAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED ERRATA QA Contact: Viktor Ashirov <vashirov>
Severity: high Docs Contact:
Priority: high    
Version: 6.0CC: jgalipea, mreynolds, nkinder, rmeggins, salmy, sramling, tlavigne
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.2.11.15-57.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-22 06:37:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Noriko Hosoi 2015-05-06 20:15:17 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/48158

Originally, since only 4 masters are officially supported a limit of 4 tasks seemed to make sense.  However, there are different scenarios where more than 4 tasks will need to be run, and there is no real reason to limit it.

Comment 2 Sankar Ramalingam 2015-05-18 14:50:45 UTC
Followed these steps to verify this bug:
1. Configured 2 way MMR setup.
2. Stopped M2 and ran cleanallruv tasks in a while loop.
val=1 ; while [ $val -lt 70 ];do ./cleanallruv.pl -D "cn=Directory Manager" -w Secret123 -b "dc=passsync,dc=com" -r 1232 ; val="`expr $val + 1`"; sleep 1 ; done
3. More than 64 concurrent Cleanallruv tasks created.
ldapsearch -LLL -x -p 1189 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=cleanallruv, cn=tasks, cn=config" |grep -i "dn: cn=cleanallruv_2015*" |wc -l
69
4. Then I tried creating more than 64 concurrent tasks for different rids.
val=1 ; while [ $val -lt 70 ];do ./cleanallruv.pl -D "cn=Directory Manager" -w Secret123 -b "dc=passsync,dc=com" -r 12${val} ; val="`expr $val + 1`"; sleep 1 ; done

5. Even with different Replica Ids, more than 64 concurrent cleanallruv tasks were created.

Is this something expected?

Comment 3 mreynolds 2015-05-18 18:50:01 UTC
(In reply to Sankar Ramalingam from comment #2)
> Followed these steps to verify this bug:
> 1. Configured 2 way MMR setup.
> 2. Stopped M2 and ran cleanallruv tasks in a while loop.
> val=1 ; while [ $val -lt 70 ];do ./cleanallruv.pl -D "cn=Directory Manager"
> -w Secret123 -b "dc=passsync,dc=com" -r 1232 ; val="`expr $val + 1`"; sleep
> 1 ; done
> 3. More than 64 concurrent Cleanallruv tasks created.
> ldapsearch -LLL -x -p 1189 -h localhost -D "cn=Directory Manager" -w
> Secret123 -b "cn=cleanallruv, cn=tasks, cn=config" |grep -i "dn:
> cn=cleanallruv_2015*" |wc -l
> 69
> 4. Then I tried creating more than 64 concurrent tasks for different rids.
> val=1 ; while [ $val -lt 70 ];do ./cleanallruv.pl -D "cn=Directory Manager"
> -w Secret123 -b "dc=passsync,dc=com" -r 12${val} ; val="`expr $val + 1`";
> sleep 1 ; done
> 
> 5. Even with different Replica Ids, more than 64 concurrent cleanallruv
> tasks were created.
> 
> Is this something expected?

This is definitely a problem, nice catch!  We were incorrectly checking the number of tasks that were at later stage of cleaning.  I will start working on the fix (it is trivial).

Comment 4 Sankar Ramalingam 2015-05-19 01:31:09 UTC
Thanks Mark!. Changing the status of the bug to Assigned.

Comment 5 Sankar Ramalingam 2015-05-19 01:34:10 UTC
Additional Info:
[root@hp-dl380pgen8-02-vm-3 ~]# rpm -qa |grep -i 389-ds-base
389-ds-base-libs-1.2.11.15-56.el6.x86_64
389-ds-base-debuginfo-1.2.11.15-56.el6.x86_64
389-ds-base-1.2.11.15-56.el6.x86_64

Comment 6 mreynolds 2015-05-19 14:50:56 UTC
Fixed upstream

The verification steps need to be adjusted.  Use this search instead to detect active tasks:

ldapsearch -LLL -x -p 1189 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=cleanallruv, cn=tasks, cn=config" -xLLL nstaskstatus=* | grep "^dn: " | wc -l

Comment 7 Sankar Ramalingam 2015-06-15 17:40:10 UTC
Created more than 64 concurrent cleanallruv tasks as mentioned in comment #3. Then, checked the cleanallruv tasks created by running the following command.

[root@qe-blade-01 ~]# ldapsearch -LLL -x -p 1189 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=cleanallruv, cn=tasks, cn=config" -xLLL nstaskstatus=* | grep "^dn: " | wc -l
64

The number of cleanallruv tasks was limited to 64. Hence, marking the bug as verified.

Build tested:
[root@qe-blade-01 ~]# rpm -qa|grep -i 389-ds-base
389-ds-base-1.2.11.15-60.el6.x86_64
389-ds-base-libs-1.2.11.15-60.el6.x86_64

Comment 8 errata-xmlrpc 2015-07-22 06:37:34 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, 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://rhn.redhat.com/errata/RHBA-2015-1326.html