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 2070575

Summary: RFE - Allow to rebuild the compat tree.
Product: Red Hat Enterprise Linux 8 Reporter: Têko Mihinto <tmihinto>
Component: slapi-nisAssignee: thierry bordaz <tbordaz>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.5CC: abokovoy, amore, awestbro, ekeck, frenaud, ftrivino, jinjli, mfiedler, msauton, parmstro, pturnbul, ssidhaye, tbordaz
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: slapi-nis-0.60.0-1.module+el8.7.0+16405+581a7c1e Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 09:35:50 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: 2116275    

Description Têko Mihinto 2022-03-31 13:14:41 UTC
Description of problem:
For different reasons, the compat tree might get corrupted and some entries would be missing.
Customers would like to have the possibility to rebuild the whole compat tree on demand.

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

How reproducible:
Seen in customer cases every now and then.

Steps to Reproduce:

Actual results:
Need to restart the LDAP server to rebuilt the compat tree.

Expected results:
Allow to rebuild the compat tree without having to restart the LDAP server.

Additional info:

Comment 21 anuja 2022-08-23 14:02:21 UTC
Verified Tested Using:

[root@master ~]# rpm -qa ipa-server slapi-nis
slapi-nis-0.60.0-1.module+el8.7.0+16405+581a7c1e.x86_64
ipa-server-4.9.10-6.module+el8.7.0+16405+581a7c1e.x86_64
[root@master ~]# ipa hostgroup-add group_cachenew
--------------------------------
Added hostgroup "group_cachenew"
--------------------------------
  Host-group: group_cachenew
[root@master ~]# ldapsearch -LLL -D "cn=directory manager" -w Secret123 -b "cn=compat,dc=ipa,dc=test" "(&(objectClass=nisNetgroup)(cn=group_cachenew))" dn | grep "group_cachenew"
dn: cn=group_cachenew,cn=ng,cn=compat,dc=ipa,dc=test
[root@master ~]# ipa hostgroup-del group_cachenew
----------------------------------
Deleted hostgroup "group_cachenew"
----------------------------------
[root@master ~]# ldapsearch -LLL -D "cn=directory manager" -w Secret123 -b "cn=compat,dc=ipa,dc=test" "(&(objectClass=nisNetgroup)(cn=group_cachenew))" dn | grep "group_cachenew"
dn: cn=group_cachenew,cn=ng,cn=compat,dc=ipa,dc=test
[root@master ~]# vi /tmp/foo1
[root@master ~]# ldapmodify -D "cn=directory manager" -w Secret123 -a -f /tmp/foo1
adding new entry "cn=rebuild 1,cn=Schema compatibility refresh task,cn=tasks,cn=config"

[root@master ~]# ldapsearch -LLL -D "cn=directory manager" -w Secret123 -b "cn=compat,dc=ipa,dc=test" "(&(objectClass=nisNetgroup)(cn=group_cachenew))" dn | grep "group_cachenew"
[root@master ~]# echo $?
1
[root@master ~]#

Comment 24 anuja 2022-08-29 05:21:39 UTC
Verified using nightly build:

[root@master ~]# rpm -qa ipa-server slapi-nis
slapi-nis-0.60.0-1.module+el8.7.0+16405+581a7c1e.x86_64
ipa-server-4.9.10-6.module+el8.7.0+16405+581a7c1e.x86_64
[root@master ~]# ipa hostgroup-add group_cache87_nightly
---------------------------------------
Added hostgroup "group_cache87_nightly"
---------------------------------------
  Host-group: group_cache87_nightly
[root@master ~]# ldapsearch -LLL -D "cn=directory manager" -w Secret123 -b "cn=compat,dc=ipa,dc=test" "(&(objectClass=nisNetgroup)(cn=group_cachenew))" dn | grep "group_cache87_nightly"
[root@master ~]# ldapsearch -LLL -D "cn=directory manager" -w Secret123 -b "cn=compat,dc=ipa,dc=test" "(&(objectClass=nisNetgroup)(cn=group_cache87_nightly))" dn | grep "group_cache87_nightly"
dn: cn=group_cache87_nightly,cn=ng,cn=compat,dc=ipa,dc=test
[root@master ~]# ipa hostgroup-del group_cache87_nightly
-----------------------------------------
Deleted hostgroup "group_cache87_nightly"
-----------------------------------------
[root@master ~]# ldapsearch -LLL -D "cn=directory manager" -w Secret123 -b "cn=compat,dc=ipa,dc=test" "(&(objectClass=nisNetgroup)(cn=group_cache87_nightly))" dn | grep "group_cache87_nightly"
dn: cn=group_cache87_nightly,cn=ng,cn=compat,dc=ipa,dc=test
[root@master ~]# vi /tmp/rebuild
[root@master ~]# ldapmodify -D "cn=directory manager" -w Secret123 -a -f /tmp/rebuild 
adding new entry "cn=rebuild 1,cn=Schema compatibility refresh task,cn=tasks,cn=config"

[root@master ~]# ldapsearch -LLL -D "cn=directory manager" -w Secret123 -b "cn=compat,dc=ipa,dc=test" "(&(objectClass=nisNetgroup)(cn=group_cache87_nightly))" dn | grep "group_cache87_nightly"
[root@master ~]# echo $?
1
[root@master ~]#

Comment 26 errata-xmlrpc 2022-11-08 09:35:50 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 (idm:client and idm:DL1 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-2022:7540