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 1509016

Summary: cleanallruv task is not logging any information
Product: Red Hat Enterprise Linux 7 Reporter: mreynolds
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: Viktor Ashirov <vashirov>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.5CC: gparente, msauton, nkinder, rmeggins, sali, spichugi, tmihinto
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.7.5-8.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1509347 (view as bug list) Environment:
Last Closed: 2018-04-10 14:21:13 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: 1509347    

Description mreynolds 2017-11-02 17:02:13 UTC
Issue Description

Cleanallruv is not logging anything in 1.3.6

There are two issues here.

[1] During the error log refactoring a mistake was made that prevented most of the logging from taking place:

https://pagure.io/389-ds-base/issue/48978

[2] We also changed the logging to work in only debug builds (not sure why). Perhaps to keep error log from, bloating?

The logging needs to be restored

Comment 7 Simon Pichugin 2017-11-28 11:34:11 UTC
Build tested:
389-ds-base-1.3.7.5-9.el7.x86_64

Verification steps:
1) Execute a test case:
 
DEBUGGING=yes; py.test -v dirsrvtests/tests/suites/replication/cleanallruv_test.py::test_clean

2) Check logs on the slapd-master1:

cat /var/log/dirsrv/slapd-msater1/errors | grep CleanAllRUV

[28/Nov/2017:06:27:00.038944895 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Initiating CleanAllRUV Task...
[28/Nov/2017:06:27:00.039679091 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Retrieving maxcsn...
[28/Nov/2017:06:27:00.044045281 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Found maxcsn (5a1d4801000400040000)
[28/Nov/2017:06:27:00.050552325 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Cleaning rid (4)...
[28/Nov/2017:06:27:00.052199413 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Waiting to process all the updates from the deleted replica...
[28/Nov/2017:06:27:00.053195053 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Waiting for all the replicas to be online...
[28/Nov/2017:06:27:00.056430780 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Waiting for all the replicas to receive all the deleted replica updates...
[28/Nov/2017:06:27:00.060855948 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Sending cleanAllRUV task to all the replicas...
[28/Nov/2017:06:27:00.070732262 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Cleaning local ruv's...
[28/Nov/2017:06:27:01.081142305 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Waiting for all the replicas to be cleaned...
[28/Nov/2017:06:27:01.088834552 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Waiting for all the replicas to finish cleaning...
[28/Nov/2017:06:27:01.091481085 -0500] - NOTICE - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Not all replicas finished cleaning, retrying in 10 seconds
[28/Nov/2017:06:27:11.096903521 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): No Keep-Alive entry to remove (cn=repl keep alive 4,dc=example,dc=com)
[28/Nov/2017:06:27:11.098273645 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Cleaning agmt...
[28/Nov/2017:06:27:11.203994045 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Cleaning agmt...
[28/Nov/2017:06:27:11.309008874 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Cleaned replication agreements.
[28/Nov/2017:06:27:11.310349020 -0500] - INFO - NSMMReplicationPlugin - CleanAllRUV Task (rid 4): Successfully cleaned rid(4).

The task is logged. Marking as VERIFIED.

Comment 10 errata-xmlrpc 2018-04-10 14:21:13 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://access.redhat.com/errata/RHBA-2018:0811