#49576 ds-replcheck LDIF comparision fails when checking for conflicts
Closed: fixed 7 months ago by mreynolds. Opened 2 years ago by mreynolds.

Issue Description

Problem appears to be a case sensitive issue with "nsds5replconflict"

[root@localhost replication]# ds-replcheck -M /tmp/conflict.ldif -R /tmp/conflict2.ldif -c
Performing offline report...
Gathering all the DN's...
Gathering the database RUV's...
Comparing Master to Replica...
Comparing Replica to Master...
Preparing report...
Traceback (most recent call last):
  File "/usr/bin/ds-replcheck", line 1122, in <module>
    main()
  File "/usr/bin/ds-replcheck", line 1112, in main
    do_offline_report(opts, OUTPUT_FILE)
  File "/usr/bin/ds-replcheck", line 535, in do_offline_report
    final_report += get_conflict_report(mconflicts, rconflicts, opts['conflicts'], format_conflicts=True)
  File "/usr/bin/ds-replcheck", line 773, in get_conflict_report
    m_conflicts.append({'dn': entry.dn, 'conflict': entry.data['nsds5replconflict'][0],
  File "/usr/lib64/python2.7/site-packages/ldap/cidict.py", line 27, in __getitem__
    return self.data[lower(key)]
KeyError: 'nsds5replconflict'

Metadata Update from @mreynolds:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1551065

2 years ago

Metadata Update from @mreynolds:
- Custom field component adjusted to None
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1551065 https://bugzilla.redhat.com/show_bug.cgi?id=1556803 (was: https://bugzilla.redhat.com/show_bug.cgi?id=1551065)
- Custom field type adjusted to None
- Custom field version adjusted to None

2 years ago

Metadata Update from @mreynolds:
- Custom field reviewstatus adjusted to review (was: None)

2 years ago

Need to investigate test case around deleted attributes (;deleted vs ;deletedattribute" in LDIF comparision

commit 53e58cd

21800c3..ed5d597 389-ds-base-1.3.8 -> 389-ds-base-1.3.8

660508d..19945c4 389-ds-base-1.3.7 -> 389-ds-base-1.3.7

Next, add support for attributeDeleted as discussed in PR

164a959..9e046a3 master -> master

ed5d597..be174a6 389-ds-base-1.3.8 -> 389-ds-base-1.3.8

19945c4..4b823fe 389-ds-base-1.3.7 -> 389-ds-base-1.3.7

Metadata Update from @spichugi:
- Custom field reviewstatus adjusted to ack (was: review)

2 years ago

Metadata Update from @mreynolds:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

7 months ago

Login to comment on this ticket.