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 1024835 - Setting nsds5ReplicaEnabled attribute to Off is not working on i386
Summary: Setting nsds5ReplicaEnabled attribute to Off is not working on i386
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: 389-ds-base
Version: 6.5
Hardware: i386
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Rich Megginson
QA Contact: Sankar Ramalingam
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-30 13:43 UTC by Sankar Ramalingam
Modified: 2013-12-18 19:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-18 19:28:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sankar Ramalingam 2013-10-30 13:43:35 UTC
Description of problem: Changing the attribute value "nsds5ReplicaEnabled" set to Off is not working. The replication still working even after setting the value to Off.

Version-Release number of selected component (if applicable): 389-ds-base-1.2.11.15-29


How reproducible: Consistent


Steps to Reproduce:
1. Install latest 389-ds-base on RHEL6.5 i386 machine and setup 2 way MMR.
2. Once the replication is in place, change the attribute value "nsds5replicaEnabled" to Off on M1.
3. Create few entries on M1 and check whether the entries synced to M2.

Actual results: Entries sync to M2


Expected results: Entries should be stopped from syncing to M2.


Additional info: Few lines of reports from acceptance execution...

----------------- Starting Test bug834074_04 -------------------------
====================================================================
Changing the value of nsds5ReplicaEnabled to OFF again in M1, Modify the entry in M1, and check it should not be modified in M2
Modify nsds5ReplicaEnabled's value to off on Master M1
modifying entry cn=M1_to_M2,cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config

Modify test entry on M1
modifying entry uid=test_bug834074,dc=example,dc=com

check test entry should not be modified in M2
/usr/lib/mozldap/ldapsearch -1 -p 30102 -D cn=directory manager -w Secret123 -b dc=example,dc=com objectClass=* | grep -i mail:test_bug834074_2
mail: test_bug834074_2
ldapsearch on m2 passed, and test case failed as attribute nsds5ReplicaEnabled is OFF on M1
TestCase [bug834074_04] result-> [FAIL]



==================================================================
----------------- Starting Test bug834074_02 -------------------------
==================================================================
To verify nsds5ReplicaEnabled's function in Master-Master Replication when it is OFF - Adding data to M1
Modify nsds5ReplicaEnabled's value to off on Master M1
/usr/lib/mozldap/ldapmodify -h localhost -p 30100 -D cn=directory manager -w Secret123 -f /tet/tet/../data/DS/6.0/mmrepl/fourwaymmr//nsds5ReplicaEnabled_off
modifying entry cn=M1_to_M2,cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config

Adding the test entry in M1
adding new entry uid=test_bug834074,dc=example,dc=com

check the replication should not be happened in M2
dn: uid=test_bug834074,dc=example,dc=com
ldapsearch on m2 passed, and test case failed as attribute nsds5ReplicaEnabled is OFF on M1
TestCase [bug834074_02] result-> [FAIL]

Comment 2 Rich Megginson 2013-10-30 14:45:18 UTC
Does it work on x86_64?

Comment 3 mreynolds 2013-10-31 15:11:39 UTC
I can not reproduce this on:

389-ds-base-1.2.11.15-29.el6.i686
389-ds-base-debuginfo-1.2.11.15-29.el6.i686
389-ds-base-devel-1.2.11.15-29.el6.i686
389-ds-base-libs-1.2.11.15-29.el6.i686

or 

389-ds-base-1.2.11.15
389-ds-base-1.2.11.24
389-ds-base-1.3.2

Maybe you need a "sleep 1" after setting the agreement to "off"?

Comment 4 RHEL Program Management 2013-11-03 15:15:09 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 5 Sankar Ramalingam 2013-11-12 11:08:30 UTC
(In reply to mreynolds from comment #3)
> I can not reproduce this on:
> 
> 389-ds-base-1.2.11.15-29.el6.i686
> 389-ds-base-debuginfo-1.2.11.15-29.el6.i686
> 389-ds-base-devel-1.2.11.15-29.el6.i686
> 389-ds-base-libs-1.2.11.15-29.el6.i686
> 
> or 
> 
> 389-ds-base-1.2.11.15
> 389-ds-base-1.2.11.24
> 389-ds-base-1.3.2
> 
> Maybe you need a "sleep 1" after setting the agreement to "off"?

Added sleep 5 to verify this. The test execution still fails on 32 bit.

Few lines from the report...

Modify nsds5ReplicaEnabled's value to off on Master M1
/usr/lib/mozldap/ldapmodify -h localhost -p 30100 -D cn=directory manager -w Secret123 -f /tet/tet/../data/DS/6.0/mmrepl/fourwaymmr//nsds5ReplicaEnabled_off
modifying entry cn=M1_to_M2,cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config

Adding sleep of 5 secs as per Mark's comment for bug #1024835 on i386 platform
Adding the test entry in M1
adding new entry uid=test_bug834074,dc=example,dc=com

check the replication should not be happened in M2
dn: uid=test_bug834074,dc=example,dc=com
ldapsearch on m2 passed, and test case failed as attribute nsds5ReplicaEnabled is OFF on M1
TestCase [bug834074_02] result-> [FAIL]

Comment 6 mreynolds 2013-11-12 15:05:03 UTC
Sankar, what happens when you manually run the test?  

Also, is this test system still setup?  Can I log on to the system to poke around?

Comment 7 mreynolds 2013-12-18 19:28:52 UTC
From an email with Sankar:

"I cloned another beaker job and this time the result shows 100% PASS. I am not going to spend much time on it since its not a consistent failure. So, closing the bug as "Not a Bug". "

Closing bug for Sankar...


Note You need to log in before you can comment on or make changes to this bug.