Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-71213

Sub suffix causes "id2entry - Could not open id2entry err 0" error when the Directory Server starts [rhel-9.4.z]

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-9.4.z
    • None
    • 389-ds-base
    • None
    • No
    • None
    • ZStream
    • rhel-sst-idm-ds
    • ssg_idm
    • 0
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Approved Blocker
    • None
    • None
    • None

      This is a clone from DIRSRV-53:


      Description of problem:
      Sub suffix causes the following error when the Directory Server starts
      ~~~
      ERR - id2entry - Could not open id2entry err 0
      ERR - dn2entry_ext - The dn "ou=test,dc=example,dc=com" was in the entryrdn index, but it did not exist in id2entry of instance test.
      ~~~

      Version-Release number of selected component (if applicable):
      389-ds-base-2.2.7-3.module+el9dsrv+18864+4949f8c5.x86_64

      How reproducible:
      Always

      Steps to Reproduce:
      1. Install 389-ds-base-2.2.7-3.module+el9dsrv+18864+4949f8c5.x86_64
      2. Set up as follows

      DHOST=$(hostname -s)
      cat << EOF > /root/$DHOST.inf
      [general]
      [slapd]
      instance_name = $DHOST
      root_password = password1
      [backend-userroot]
      create_suffix_entry = True
      suffix = dc=example,dc=com
      EOF
      dscreate from-file /root/$DHOST.inf
      dsconf -D "cn=Directory Manager" -w password1 ldap://$DHOST backend create --suffix="ou=test,dc=example,dc=com" --be-name="test" --parent-suffix="dc=example,dc=com" --create-suffix

      3. Restart the Directory Server and find the ERRs.
      dsctl $DHOST restart
      grep -A1 "Could not open id2entry" /var/log/dirsrv/slapd-9ds0/errors

      Actual results:
      The ERRs are logged.

      Expected results:
      The ERRs are not logged.

      Additional info:

      • The issue doesn't occur with 389-ds-base-2.2.4-3.el9.x86_64
      • Indexes for ou=test,dc=example,dc=com and dc=example,dc=com don't work.
      • id2entry.db seems to have "ou=test,dc=example,dc=com".
        ~~~
      1. dbscan r -f /var/lib/dirsrv/slapd$DHOST/db/test/entryrdn.db
        ou=test,dc=example,dc=com
        ID: 1; RDN: "ou=test,dc=example,dc=com"; NRDN: "ou=test,dc=example,dc=com"
      2. dbscan r -f /var/lib/dirsrv/slapd$DHOST/db/test/id2entry.db | head -2
        id 1
        rdn: ou=test,dc=example,dc=com
        ~~~

              idm-ds-dev-bugs IdM DS Dev
              vashirov@redhat.com Viktor Ashirov
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: