Bug 1904350

Summary: do not add referrals for masters with different data generation [rhel-8.3.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 8.0CC: aadhikar, msauton, pasik, sgouvern, spichugi, tbordaz, vashirov
Target Milestone: rcKeywords: TestCaseProvided, Triaged, ZStream
Target Release: 8.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 389-ds-devel-1.4-8030020201203210520.e114a9e7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1859228 Environment:
Last Closed: 2020-12-15 17:12:41 UTC Type: ---
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: 1859228    
Bug Blocks:    

Comment 4 sgouvern 2020-12-04 14:52:23 UTC
With build 389-ds-base-1.4.3.8-6.module+el8.3.0+8995+c08169ba.x86_64

# PYTHONPATH=src/lib389/ py.test -s -v dirsrvtests/tests/suites/replication/regression_test.py::test_ruv_url_not_added_if_different_uuid
re-exec with libfaketime dependencies
=================================================== test session starts ====================================================
platform linux -- Python 3.6.8, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python3.6
cachedir: .pytest_cache
metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-240.el8.x86_64-x86_64-with-redhat-8.3-Ootpa', 'Packages': {'pytest': '6.1.2', 'py': '1.9.0', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '1.11.0', 'html': '3.1.0', 'libfaketime': '0.1.2'}}
389-ds-base: 1.4.3.8-6.module+el8.3.0+8995+c08169ba
nss: 3.53.1-11.el8_2
nspr: 4.25.0-2.el8_2
openldap: 2.4.46-15.el8
cyrus-sasl: 2.1.27-5.el8
FIPS: disabled
rootdir: /mnt/tests/rhds/tests/upstream/ds/dirsrvtests, configfile: pytest.ini
plugins: metadata-1.11.0, html-3.1.0, libfaketime-0.1.2
collected 1 item                                                               
dirsrvtests/tests/suites/replication/regression_test.py::test_ruv_url_not_added_if_different_uuid INFO:lib389.topologies:Instance with parameters {'ldap-port': 39001, 'ldap-secureport': 63701, 'server-id': 'master1', 'suffix': 'dc=example,dc=com'} was created.
INFO:lib389.topologies:Instance with parameters {'ldap-port': 39002, 'ldap-secureport': 63702, 'server-id': 'master2', 'suffix': 'dc=example,dc=com'} was created.
INFO:lib389.topologies:Instance with parameters {'ldap-port': 39201, 'ldap-secureport': 63901, 'server-id': 'consumer1', 'suffix': 'dc=example,dc=com'} was created.
INFO:lib389.topologies:Instance with parameters {'ldap-port': 39202, 'ldap-secureport': 63902, 'server-id': 'consumer2', 'suffix': 'dc=example,dc=com'} was created.
INFO:lib389.topologies:Creating replication topology.
INFO:lib389.topologies:Joining master master2 to master1 ...
INFO:lib389.replica:SUCCESS: bootstrap to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 completed
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 is was created
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 is was created
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 is working
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 is working
INFO:lib389.replica:SUCCESS: joined master from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002
INFO:lib389.topologies:Ensuring master master1 to master2 ...
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 already exists
INFO:lib389.topologies:Ensuring master master2 to master1 ...
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 already exists
INFO:lib389.topologies:Joining consumer consumer1 from master1 ...
INFO:lib389.replica:SUCCESS: bootstrap to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 completed
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 is was pcreated
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 is working
INFO:lib389.replica:SUCCESS: joined consumer from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201
INFO:lib389.topologies:Joining consumer consumer2 from master1 ...
INFO:lib389.replica:SUCCESS: bootstrap to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202 completed
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202 is was created
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202 is working
INFO:lib389.replica:SUCCESS: joined consumer from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202
INFO:lib389.topologies:Ensuring consumer consumer1 from master1 ...
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 already exists
INFO:lib389.topologies:Ensuring consumer consumer2 from master1 ...
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202 already exists
INFO:lib389.topologies:Ensuring consumer consumer1 from master2 ...
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 is was created
INFO:lib389.topologies:Ensuring consumer consumer2 from master2 ...
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202 is was created
ldiffile: /var/lib/dirsrv/slapd-master1/ldif/norepl.ldif
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 is working
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202 is working
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 is working
PASSEDInstance slapd-master1 removed.
Instance slapd-master2 removed.
Instance slapd-consumer1 removed.
Instance slapd-consumer2 removed.
======================================== 1 passed, 5 warnings in 324.99s (0:05:24) =========================================


PYTHONPATH=src/lib389/ py.test -s -v dirsrvtests/tests/suites/replication/regression_test.py::test_csngen_state_not_updated_if_different_uuid
re-exec with libfaketime dependencies
=================================================== test session starts ====================================================
platform linux -- Python 3.6.8, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python3.6
cachedir: .pytest_cache
metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-240.el8.x86_64-x86_64-with-redhat-8.3-Ootpa', 'Packages': {'pytest': '6.1.2', 'py': '1.9.0', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '1.11.0', 'html': '3.1.0', 'libfaketime': '0.1.2'}}
389-ds-base: 1.4.3.8-6.module+el8.3.0+8995+c08169ba
nss: 3.53.1-11.el8_2
nspr: 4.25.0-2.el8_2
openldap: 2.4.46-15.el8
cyrus-sasl: 2.1.27-5.el8
FIPS: disabled
rootdir: /mnt/tests/rhds/tests/upstream/ds/dirsrvtests, configfile: pytest.ini
plugins: metadata-1.11.0, html-3.1.0, libfaketime-0.1.2
collected 1 item                                                                                                           

dirsrvtests/tests/suites/replication/regression_test.py::test_csngen_state_not_updated_if_different_uuid INFO:lib389.topologies:Instance with parameters {'ldap-port': 39001, 'ldap-secureport': 63701, 'server-id': 'master1', 'suffix': 'dc=example,dc=com'} was created.
INFO:lib389.topologies:Instance with parameters {'ldap-port': 39002, 'ldap-secureport': 63702, 'server-id': 'master2', 'suffix': 'dc=example,dc=com'} was created.
INFO:lib389.topologies:Instance with parameters {'ldap-port': 39201, 'ldap-secureport': 63901, 'server-id': 'consumer1', 'suffix': 'dc=example,dc=com'} was created.
INFO:lib389.topologies:Instance with parameters {'ldap-port': 39202, 'ldap-secureport': 63902, 'server-id': 'consumer2', 'suffix': 'dc=example,dc=com'} was created.
INFO:lib389.topologies:Creating replication topology.
INFO:lib389.topologies:Joining master master2 to master1 ...
INFO:lib389.replica:SUCCESS: bootstrap to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 completed
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 is was created
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 is was created
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 is working
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 is working
INFO:lib389.replica:SUCCESS: joined master from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002
INFO:lib389.topologies:Ensuring master master1 to master2 ...
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 already exists
INFO:lib389.topologies:Ensuring master master2 to master1 ...
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 already exists
INFO:lib389.topologies:Joining consumer consumer1 from master1 ...
INFO:lib389.replica:SUCCESS: bootstrap to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 completed
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 is was created
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 is working
INFO:lib389.replica:SUCCESS: joined consumer from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201
INFO:lib389.topologies:Joining consumer consumer2 from master1 ...
INFO:lib389.replica:SUCCESS: bootstrap to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202 completed
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202 is was created
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202 is working
INFO:lib389.replica:SUCCESS: joined consumer from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202
INFO:lib389.topologies:Ensuring consumer consumer1 from master1 ...
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 already exists
INFO:lib389.topologies:Ensuring consumer consumer2 from master1 ...
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202 already exists
INFO:lib389.topologies:Ensuring consumer consumer1 from master2 ...
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 is was created
INFO:lib389.topologies:Ensuring consumer consumer2 from master2 ...
INFO:lib389.replica:SUCCESS: Agreement from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202 is was created
ldiffile: /var/lib/dirsrv/slapd-master1/ldif/norepl.ldif
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39001 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 is working
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39202 is working
INFO:lib389.replica:SUCCESS: Replication from ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39002 to ldap://ci-vm-10-0-139-237.hosted.upshift.rdu2.redhat.com:39201 is working
PASSEDInstance slapd-master1 removed.
Instance slapd-master2 removed.
Instance slapd-consumer1 removed.
Instance slapd-consumer2 removed.

======================================== 1 passed, 5 warnings in 334.90s (0:05:34) =========================================

-> marking as VERIFIED

Comment 9 errata-xmlrpc 2020-12-15 17:12:41 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 (389-ds:1.4 bug fix update), 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-2020:5505