Bug 1843517
| Summary: | Using ldifgen with --start-idx option fails with unsupported operand | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | bsmejkal |
| Component: | 389-ds-base | Assignee: | mreynolds |
| Status: | CLOSED ERRATA | QA Contact: | RHDS QE <ds-qe-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.3 | CC: | pasik, sgouvern, spichugi, tbordaz, vashirov |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 389-ds-1.4-8040020201203171211-866effaa | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-05-18 15:45:16 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: | |||
==================================================================================== 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-255.el8.x86_64-x86_64-with-redhat-8.4-Ootpa', 'Packages': {'pytest': '6.1.2', 'py': '1.9.0', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '1.11.0', 'html': '3.0.0', 'libfaketime': '0.1.2'}}
389-ds-base: 1.4.3.16-3.module+el8.4.0+8869+55706461
nss: 3.53.1-11.el8_2
nspr: 4.25.0-2.el8_2
openldap: 2.4.46-16.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.0.0, libfaketime-0.1.2
collected 11 items
dirsrvtests/tests/suites/clu/dbgen_test_usan.py::test_usandsconf_dbgen_users PASSED [ 9%]
dirsrvtests/tests/suites/clu/dbgen_test_usan.py::test_usandsconf_dbgen_groups PASSED [ 18%]
dirsrvtests/tests/suites/clu/dbgen_test_usan.py::test_usandsconf_dbgen_cos_classic PASSED [ 27%]
dirsrvtests/tests/suites/clu/dbgen_test_usan.py::test_usandsconf_dbgen_cos_pointer PASSED [ 36%]
dirsrvtests/tests/suites/clu/dbgen_test_usan.py::test_usandsconf_dbgen_cos_indirect PASSED [ 45%]
dirsrvtests/tests/suites/clu/dbgen_test_usan.py::test_usandsconf_dbgen_cos_template PASSED [ 54%]
dirsrvtests/tests/suites/clu/dbgen_test_usan.py::test_usandsconf_dbgen_managed_role PASSED [ 63%]
dirsrvtests/tests/suites/clu/dbgen_test_usan.py::test_usandsconf_dbgen_filtered_role PASSED [ 72%]
dirsrvtests/tests/suites/clu/dbgen_test_usan.py::test_usandsconf_dbgen_nested_role PASSED [ 81%]
dirsrvtests/tests/suites/clu/dbgen_test_usan.py::test_usandsconf_dbgen_mod_ldif_mixed PASSED [ 90%]
dirsrvtests/tests/suites/clu/dbgen_test_usan.py::test_usandsconf_dbgen_nested_ldif PASSED [100%]
================================================================================== 11 passed in 146.06s (0:02:26) ===========================================================================
Marking as Verified:Tested.
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 and enhancement 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-2021:1835 |
Description of problem: Using ldifgen with --start-idx option fails with ERROR: Error: unsupported operand type(s) for +=: 'int' and 'str' Version-Release number of selected component (if applicable): 389-ds-base-1.4.3.8-2.module+el8.3.0+6591+ebfc9766.x86_64 How reproducible: Always Steps to Reproduce: 1. Create DS instance 2. # dsctl -v slapd-localhost ldifgen users --suffix dc=example,dc=com --parent ou=people,dc=example,dc=com --number 100000 --generic --start-idx=50 DEBUG: The 389 Directory Server Administration Tool DEBUG: Inspired by works of: ITS, The University of Adelaide DEBUG: Called with: Namespace(func=<function dbgen_create_users at 0x7feec90632f0>, generic=True, instance='slapd-localhost', json=False, ldif_file='users.ldif', list=False, localize=False, number='100000', parent='ou=people,dc=example,dc=com', rdn_cn=False, remove_all=False, start_idx='50', suffix='dc=example,dc=com', verbose=True) DEBUG: Allocate <class 'lib389.DirSrv'> with None DEBUG: Allocate <class 'lib389.DirSrv'> with b'localhost.localdomain':636 DEBUG: Allocate <class 'lib389.DirSrv'> with b'localhost.localdomain':636 DEBUG: Instance allocated INFO: Generating LDIF with the following options: INFO: - number=100000 INFO: - suffix=dc=example,dc=com INFO: - parent=ou=people,dc=example,dc=com INFO: - generic=True INFO: - start-idx=50 INFO: - rdn-cn=False INFO: - localize=False INFO: - ldif-file=/var/lib/dirsrv/slapd-localhost/ldif/users.ldif INFO: Writing LDIF ... DEBUG: unsupported operand type(s) for +=: 'int' and 'str' Traceback (most recent call last): File "/usr/sbin/dsctl", line 138, in <module> result = args.func(inst, log, args) File "/usr/lib/python3.6/site-packages/lib389/cli_ctl/dbgen.py", line 195, in dbgen_create_users dbgen_users(inst, args.number, args.ldif_file, args.suffix, generic=args.generic, parent=args.parent, startIdx=args.start_idx, rdnCN=False, pseudol10n=args.localize) File "/usr/lib/python3.6/site-packages/lib389/dbgen.py", line 249, in dbgen_users i += startIdx TypeError: unsupported operand type(s) for +=: 'int' and 'str' ERROR: Error: unsupported operand type(s) for +=: 'int' and 'str' Actual results: Expected results: Additional info: