Bug 1580257
| Summary: | ds-replcheck LDIF comparision fails when checking for conflicts [rhel-7.5.z] | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Oneata Mircea Teodor <toneata> |
| Component: | 389-ds-base | Assignee: | mreynolds |
| Status: | CLOSED ERRATA | QA Contact: | Viktor Ashirov <vashirov> |
| Severity: | medium | Docs Contact: | Marc Muehlfeld <mmuehlfe> |
| Priority: | high | ||
| Version: | 7.4 | CC: | mreynolds, msauton, nkinder, rmeggins, spichugi, tbordaz |
| Target Milestone: | rc | Keywords: | ZStream |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 389-ds-base-1.3.7.5-24 | Doc Type: | Bug Fix |
| Doc Text: |
Due to a case-sensitivity problem, the ds-replcheck utility did not check correctly for conflict entries. If conflict entries existed, ds-replcheck reported errors and terminated unexpectedly. With this update, all attribute names are converted to lowercase before processing the data. As a result, ds-replcheck correctly reports conflict entries and no longer crashes.
|
Story Points: | --- |
| Clone Of: | 1551065 | Environment: | |
| Last Closed: | 2018-06-26 16:49:33 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: | 1551065 | ||
| Bug Blocks: | |||
|
Description
Oneata Mircea Teodor
2018-05-21 06:17:49 UTC
The test automation fails.
Looks like instead of 'if os.path.exists() and os.path.isdir(certdir):' line we should have 'if os.path.exists(args.certdir) and os.path.isdir(args.certdir):' line in the script. Then it passes.
=================== test session starts ===================
platform linux -- Python 3.6.3, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 -- /opt/rh/rh-python36/root/usr/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.6.3', 'Platform': 'Linux-3.10.0-862.el7.x86_64-x86_64-with-redhat-7.5-Maipo', 'Packages': {'pytest': '3.6.1', 'py': '1.5.3', 'pluggy': '0.6.0'}, 'Plugins': {'metadata': '1.7.0', 'html': '1.19.0'}}
389-ds-base: 1.3.7.5-23.el7_5
nss: 3.34.0-4.el7
nspr: 4.17.0-1.el7
openldap: 2.4.44-13.el7
svrcore: 4.1.3-2.el7
FIPS: 0
rootdir: /mnt/tests/rhds/tests/upstream/ds, inifile:
plugins: metadata-1.7.0, html-1.19.0
collected 1 item
dirsrvtests/tests/suites/ds_tools/replcheck_test.py::test_conflict_entries FAILED [100%]
=================== FAILURES ===================
___________________ test_conflict_entries ___________________
topo_tls_ldapi = <lib389.topologies.TopologyMain object at 0x7fafa4fef358>
def test_conflict_entries(topo_tls_ldapi):
"""Check that the report has conflict entries
.........
for tool_cmd in replcheck_cmd_list(topo_tls_ldapi):
> result = subprocess.check_output(tool_cmd, encoding='utf-8')
dirsrvtests/tests/suites/ds_tools/replcheck_test.py:287:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.........
raise CalledProcessError(retcode, process.args,
> output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/usr/bin/ds-replcheck', '-b', 'dc=example,dc=com', '-D', 'cn=Directory Manager', '-w', 'password', '-l', '1', '-m', 'ldap://qeos-35.lab.eng.rdu2.redhat.com:39001', '-Z', '/etc/dirsrv/ssca', '-r', 'ldap://qeos-35.lab.eng.rdu2.redhat.com:39002', '--conflict']' returned non-zero exit status 1.
/opt/rh/rh-python36/root/usr/lib64/python3.6/subprocess.py:418: CalledProcessError
.........
Traceback (most recent call last):
File "/usr/bin/ds-replcheck", line 1290, in <module>
main()
File "/usr/bin/ds-replcheck", line 1228, in main
if os.path.exists() and os.path.isdir(certdir):
TypeError: exists() takes exactly 1 argument (0 given)
------
=================== 1 failed in 101.52 seconds ===================
======================= test session starts =======================
platform linux -- Python 3.6.3, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 -- /opt/rh/rh-python36/root/usr/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.6.3', 'Platform': 'Linux-3.10.0-862.el7.x86_64-x86_64-with-redhat-7.5-Maipo', 'Packages': {'pytest': '3.6.1', 'py': '1.5.3', 'pluggy': '0.6.0'}, 'Plugins': {'metadata': '1.7.0', 'html': '1.19.0'}}
389-ds-base: 1.3.7.5-24.el7_5
nss: 3.34.0-4.el7
nspr: 4.17.0-1.el7
openldap: 2.4.44-13.el7
svrcore: 4.1.3-2.el7
FIPS: 0
rootdir: /mnt/tests/rhds/tests/upstream/ds, inifile:
plugins: metadata-1.7.0, html-1.19.0
collected 1 item
dirsrvtests/tests/suites/ds_tools/replcheck_test.py::test_conflict_entries PASSED [100%]
======================= 1 passed in 100.90 seconds =======================
Marking as verified.
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-2018:1988 |