Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMR: when a subtree is deleted and the backend is exported with -r, importing the ldif fails. #8

Closed
389-ds-bot opened this issue Sep 12, 2020 · 3 comments
Labels
closed: duplicate Migration flag - Issue
Milestone

Comments

@389-ds-bot
Copy link

Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/8


https://bugzilla.redhat.com/show_bug.cgi?id=767024

Description of problem:
Steps to reproduce:
1) set up MMR

2) create a subtree in the database
dc=example,dc=com
         |
    ou=orgunit0
    |          \
ou=orgunit00  ou=orgunit01
    |            \
uid=tuser000  uid=tuser010
uid=tuser001  uid=tuser011

Delete ou=orgunit0

3) shutdown the server

4) export the backend:
   # /usr/lib[64]/dirsrv/slapd-ID/db2ldif -n userRoot -r

5) import the exported file
   # /usr/lib[64]/dirsrv/slapd-ID/ldif2db -n userRoot -i /path/to/ldif/file
[..] - import userRoot: Processing file
"/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: Finished scanning file
"/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif" (18
entries)
[..] - import userRoot: WARNING: Skipping entry "nsuniqueid=ceb8df01-252711e1-8
56cfebb-9066bfc6,ou=orgunit00,ou=orgunit0,dc=example,dc=com" which has no
parent, ending at line 201 of file
"/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: WARNING: Skipping entry "nsuniqueid=ceb8df02-252711e1-8
56cfebb-9066bfc6,ou=orgunit01,ou=orgunit0,dc=example,dc=com" which has no
parent, ending at line 218 of file
"/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: WARNING: Skipping entry "nsuniqueid=ceb8df03-252711e1-8
56cfebb-9066bfc6,uid=tuser000,ou=orgunit00,ou=orgunit0,dc=example,dc=com" which
has no parent, ending at line 240 of file
"/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: WARNING: Skipping entry "nsuniqueid=ceb8df04-252711e1-8
56cfebb-9066bfc6,uid=tuser001,ou=orgunit00,ou=orgunit0,dc=example,dc=com" which
has no parent, ending at line 262 of file
"/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: WARNING: Skipping entry "nsuniqueid=ceb8df05-252711e1-8
56cfebb-9066bfc6,uid=tuser010,ou=orgunit01,ou=orgunit0,dc=example,dc=com" which
has no parent, ending at line 284 of file
"/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: WARNING: Skipping entry "nsuniqueid=ceb8df06-252711e1-8
56cfebb-9066bfc6,uid=tuser011,ou=orgunit01,ou=orgunit0,dc=example,dc=com" which
has no parent, ending at line 306 of file
"/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: WARNING: bad entry: ID 12
[..] - import userRoot: WARNING: bad entry: ID 13
    [...]
[..] - import userRoot: WARNING: bad entry: ID 16
[..] - import userRoot: WARNING: bad entry: ID 17
[..] - import userRoot: Workers finished; cleaning up...
[..] - import userRoot: Workers cleaned up.
[..] - import userRoot: Cleaning up producer thread...
[..] - import userRoot: Indexing complete.  Post-processing...
[..] - import userRoot: Flushing caches...
[..] - import userRoot: Closing files...
[..] - All database threads now stopped
[..] - import userRoot: Import complete.  Processed 18 entries (6 were skipped)
in 5 seconds. (3.60 entries/sec)
@389-ds-bot 389-ds-bot added the closed: duplicate Migration flag - Issue label Sep 12, 2020
@389-ds-bot 389-ds-bot added this to the 1.2.10 milestone Sep 12, 2020
@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2012-01-06 02:37:48

Bug 767024 has been fixed as part of ticket 2:
https://fedorahosted.org/389/ticket/2

@389-ds-bot
Copy link
Author

Comment from nkinder (@nkinder) at 2012-08-28 04:14:24

Added initial screened field value.

@389-ds-bot
Copy link
Author

Comment from nkinder (@nkinder) at 2017-02-11 22:59:46

Metadata Update from @nkinder:

  • Issue assigned to richm
  • Issue set to the milestone: 1.2.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: duplicate Migration flag - Issue
Projects
None yet
Development

No branches or pull requests

1 participant