Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2123682

Summary: Status of member of fixup task shows an invalid startup date
Product: Red Hat Directory Server Reporter: thierry bordaz <tbordaz>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: LDAP QA Team <idm-ds-qe-bugs>
Severity: medium Docs Contact: Zuzana Zoubkova <zzoubkov>
Priority: high    
Version: 11.7CC: bsmejkal, emartyny, idm-ds-dev-bugs, mreynolds, pasik, vashirov
Target Milestone: DS11.7Keywords: TestCaseProvided, Triaged
Target Release: dirsrv-11.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: redhat-ds-11-8080020221130182235.022a399e Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2143332 (view as bug list) Environment:
Last Closed: 2023-05-23 09:27:55 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: 2143332    

Description thierry bordaz 2022-09-02 10:06:12 UTC
Description of problem:
When creating a memberof fixup task, the startup time ('Started') is invalid and also result on an invalid 'Elapsed time'

dsconf localhost plugin memberof fixup -f "(objectclass=inetOrgPerson)" "dc=example,dc=com"
Adding fixup task entry...
Successfully added task entry "cn=memberOf_fixup_2022-09-02T11:44:24.283059,cn=memberOf task,cn=tasks,cn=config". This task is running in the background. To track its progress you can use the "fixup-status" command.

dsconf localhost plugin memberof fixup-status 
Found 1 fix-up task

[1] Task: cn=memberOf_fixup_2022-09-02T11:44:24.283059,cn=memberOf task,cn=tasks,cn=config
--------------------------------------------------------------------------------
 - Base DN:       dc=example,dc=com
 - Filter:        (objectclass=inetorgperson)
 - Status:        
 - Started:       Fri Sep  2 10:44:24 2022 (20220902094424Z)
 - Ended:
 - Elapsed Time:  1:13:31
 - Exit Code:     Not finished ...


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


How reproducible:
always


Steps to Reproduce:
1. Install instances with memberof enabled
2. provision groups/members
3. dsconf localhost plugin memberof fixup -f "(objectclass=inetOrgPerson)" "dc=example,dc=com"
4. dsconf localhost plugin memberof fixup-status

Actual results:
Invalid 'Started' and 'Elapsed Time'

Expected results:
Should be correct time

Comment 1 mreynolds 2022-11-16 16:15:01 UTC
Upstream ticket:

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

Comment 5 Viktor Ashirov 2023-02-21 11:47:07 UTC
Automated test passes:
============================================ test session starts =============================================
platform linux -- Python 3.6.8, pytest-3.4.2, py-1.5.3, pluggy-0.6.0 -- /usr/libexec/platform-python
cachedir: dirsrvtests/.pytest_cache
389-ds-base: 1.4.3.32-4.module+el8dsrv+17818+dcb7ba9a
nss: 3.79.0-10.el8_6
nspr: 4.34.0-3.el8_6
openldap: 2.4.46-18.el8
cyrus-sasl: not installed
FIPS: disabled
rootdir: /mnt/tests/rhds/install/ds/dirsrvtests, inifile: pytest.ini
collected 1 item

dirsrvtests/tests/suites/memberof_plugin/fixup_test.py::test_fixup_task_limit PASSED                   [100%]

========================================= 1 passed in 65.62 seconds =========================================

Checking the output manually:
On the previous version:
[1] Task: cn=memberOf_fixup_2023-02-21T06:46:31.280778,cn=memberOf task,cn=tasks,cn=config
--------------------------------------------------------------------------------
 - Base DN:       dc=example,dc=com
 - Filter:        (objectclass=*)
 - Status:        Processed 5000 entries in 1 seconds (+0 seconds)
 - Started:       Tue Feb 21 11:46:31 2023 (20230221114631Z)
 - Ended:
 - Elapsed Time:  -1 day, 19:00:01
 - Exit Code:     Not finished ...

On the current (fixed) version:
[1] Task: cn=memberOf_fixup_2023-02-21T06:39:57.861009,cn=memberOf task,cn=tasks,cn=config
--------------------------------------------------------------------------------
 - Base DN:       dc=example,dc=com
 - Filter:        (objectclass=*)
 - Status:        Processed 5000 entries in 0 seconds (+0 seconds)
 - Started:       Tue Feb 21 11:39:57 2023 (20230221113957Z)
 - Ended:
 - Elapsed Time:
 - Exit Code:     Not finished ...

Marking as VERIFIED.

Comment 7 errata-xmlrpc 2023-05-23 09:27:55 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 (redhat-ds:11 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/RHBA-2023:3267