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 1603140

Summary: Export produces a non-importable ldif file.
Product: Red Hat Enterprise Linux 7 Reporter: German Parente <gparente>
Component: 389-ds-baseAssignee: Ludwig <lkrispen>
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 7.6CC: aadhikar, cpelland, mreynolds, nkinder, pasik, rmeggins, vashirov
Target Milestone: rc   
Target Release: 7.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.9.1-2.el7 Doc Type: Bug Fix
Doc Text:
Cause: If replication is enabled for a suffix before the suffix entry is added the entryID of the RUV entry is smaller than the suffix entry and exported before the suffix entry. Consequence: During import it is skipped because the suffix was not yet imported. A new RUV element will be created, but the data genration is different and replication will fail Fix: check if the suffix is already exported when writing the RUV entry, if necessary delay the writing of the RUV entry Result: a ldif export can be used for import and replication succeeds
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-06 12:58:42 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: 1647919    

Description German Parente 2018-07-19 09:49:33 UTC
Description of problem:

A customer is exporting its data with "db2ldif -r" and the ldif has, as first entry, the ruv. The result is that the generated file is not straightfully imported:


# entry-id: 1
dn: nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff,dc=example,dc=com
objectClass: top
objectClass: nsTombstone
objectClass: extensibleobject
nsUniqueId: ffffffff-ffffffff-ffffffff-ffffffff
nsds50ruv: {replicageneration} 5b4e2610000000010000
nsds50ruv: {replica 1 ldap://example1.example.com:389} 5b4e261000010001000
 0 5b4e2610002300010000
nsds50ruv: {replica 2 ldap://example2.example.com:389}
dc: example
nscpEntryDN: dc=example,dc=com
nsruvReplicaLastModified: {replica 1 ldap://example1.example.com:389} 5b4e
 2610
nsruvReplicaLastModified: {replica 2 ldap://example2.example.com:389} 0000
 0000

# entry-id: 2
dn: dc=example,dc=com
objectClass;vucsn-5b4e2610000100010000: domain
objectClass;vucsn-5b4e2610000100010000: top
dc;vucsn-5b4e2610000100010000;mdcsn-5b4e2610000100010000: example
description;vucsn-5b4e2610000100010000: Root of the directory
creatorsName;vucsn-5b4e2610000100010000: cn=directory manager
modifiersName;vucsn-5b4e2610000100010000: cn=directory manager
createTimestamp;vucsn-5b4e2610000100010000: 20180717172328Z
modifyTimestamp;vucsn-5b4e2610000100010000: 20180717172328Z
nsUniqueId: 1e61a805-89e611e8-87c6f971-856b23a3

Version-Release number of selected component (if applicable): 389-ds-base-1.3.7.5-19.el7_5.x86_64


How reproducible: I have not managed to reproduce it yet. Only the customer.

Comment 2 mreynolds 2019-03-15 14:17:00 UTC
Upstream ticket

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

Comment 4 Akshay Adhikari 2019-04-30 11:51:42 UTC
[root@rhel7-aadhikar1 dirsrvtests]# py.test tests/tickets/ticket50232_test.py 
============================================================================ test session starts ============================================================================
platform linux -- Python 3.6.3, pytest-4.4.0, py-1.8.0, pluggy-0.9.0
389-ds-base: 1.3.9.1-5.el7
nss: 3.43.0-6.el7
nspr: 4.21.0-1.el7
openldap: 2.4.44-21.el7_6
cyrus-sasl: 2.1.26-23.el7
FIPS: disabled
rootdir: /root/389-ds-base/dirsrvtests
plugins: metadata-1.8.0, html-1.20.0
collected 2 items                                                                                                                                                           

tests/tickets/ticket50232_test.py ..                                                                                                                                  [100%]

================================================================== 2 passed in 40.74 seconds 
===================================================================

Marking it as VERIFIED.

Comment 6 errata-xmlrpc 2019-08-06 12:58:42 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-2019:2152