The nightly test test_webui/test_hostgroup.py::test_hostgroup::test_names_and_button is failing in rawhide, see in PR #3387 with the following logs and report
test_webui/test_hostgroup.py::test_hostgroup::test_names_and_button
Test scenario: use the webui to add a hostgroup with a long name. The command is equivalent to ipa hostgroup-add long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8
ipa hostgroup-add long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8
[Mon Feb 12 12:54:12.071256 2024] [wsgi:error] [pid 24840:tid 25195] [remote 10.0.197.168:35866] ipa: INFO: [jsonserver_session] admin@UFREEIPA.TEST: hostgroup_add('long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8', description='long hostgroup descriptionlong hostgroup descriptionlong hostgroup descriptionlong hostgroup descriptionlong hostgroup descriptionlong hostgroup descriptionlong hostgroup descriptionlong hostgroup descriptionlong hostgroup descriptionlong hostgroup descriptionlong hostgroup descriptionlong hostgroup descriptionlong hostgroup descriptionlong hostgroup descriptionlong hostgroup descriptionlong hostgroup description', version='2.253'): DatabaseError
The issue seems related to LMDB. The dirsrv logs show:
[12/Feb/2024:12:54:12.012238333 +0000] conn=413 op=5 ADD dn="cn=long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8long-name-hostgroup8,cn=hostgroups,cn=accounts,dc=ufreeipa,dc=test" [12/Feb/2024:12:54:12.071024249 +0000] conn=413 op=5 RESULT err=1 tag=105 nentries=0 wtime=0.000102502 optime=0.058792579 etime=0.058893818
and error log:
[12/Feb/2024:12:54:12.013548470 +0000] - ERR - dbmdb_map_error - dbmdb_public_cursor_op failed with db error -30781 : MDB_BAD_VALSIZE: Unsupported size of key/DB name/data, or wrong DUPFIXED size [12/Feb/2024:12:54:12.018335738 +0000] - ERR - slapi_log_backtrace - [0] /usr/lib64/dirsrv/libslapd.so.0(+0xefca8) [0x7f529b2efca8] [12/Feb/2024:12:54:12.021193297 +0000] - ERR - slapi_log_backtrace - [1] /usr/lib64/dirsrv/plugins/libback-ldbm.so(dbmdb_map_error+0x8d) [0x7f5296e073dd] [12/Feb/2024:12:54:12.024152196 +0000] - ERR - slapi_log_backtrace - [2] /usr/lib64/dirsrv/plugins/libback-ldbm.so(dbmdb_public_cursor_op+0xfe) [0x7f5296e0ad2e] [12/Feb/2024:12:54:12.026886233 +0000] - ERR - slapi_log_backtrace - [3] /usr/lib64/dirsrv/plugins/libback-ldbm.so(+0x4e76b) [0x7f5296d8d76b] [12/Feb/2024:12:54:12.029973723 +0000] - ERR - slapi_log_backtrace - [4] /usr/lib64/dirsrv/plugins/libback-ldbm.so(entryrdn_insert_key+0xf08) [0x7f5296d91088] [12/Feb/2024:12:54:12.032804252 +0000] - ERR - slapi_log_backtrace - [5] /usr/lib64/dirsrv/plugins/libback-ldbm.so(entryrdn_index_entry+0x481) [0x7f5296d956c1] [12/Feb/2024:12:54:12.035932038 +0000] - ERR - slapi_log_backtrace - [6] /usr/lib64/dirsrv/plugins/libback-ldbm.so(index_addordel_entry+0x4e7) [0x7f5296d7e4c7] [12/Feb/2024:12:54:12.038780850 +0000] - ERR - slapi_log_backtrace - [7] /usr/lib64/dirsrv/plugins/libback-ldbm.so(ldbm_back_add+0x1cc0) [0x7f5296d873a0] [12/Feb/2024:12:54:12.041748696 +0000] - ERR - slapi_log_backtrace - [8] /usr/lib64/dirsrv/libslapd.so.0(+0xaee2f) [0x7f529b2aee2f] [12/Feb/2024:12:54:12.044742270 +0000] - ERR - slapi_log_backtrace - [9] /usr/lib64/dirsrv/libslapd.so.0(do_add+0xc2c) [0x7f529b2afe4c] [12/Feb/2024:12:54:12.047545718 +0000] - ERR - slapi_log_backtrace - [10] /usr/sbin/ns-slapd(+0x1ca95) [0x5629757a6a95] [12/Feb/2024:12:54:12.051235387 +0000] - ERR - slapi_log_backtrace - [11] /lib64/libnspr4.so(+0x2aed7) [0x7f529b9ceed7] [12/Feb/2024:12:54:12.057384940 +0000] - ERR - slapi_log_backtrace - [12] /lib64/libc.so.6(+0x961f7) [0x7f529b0a91f7] [12/Feb/2024:12:54:12.061268183 +0000] - ERR - slapi_log_backtrace - [13] /lib64/libc.so.6(+0x1183ac) [0x7f529b12b3ac] [12/Feb/2024:12:54:12.064807570 +0000] - ERR - _entryrdn_put_data - Adding the child link (C7) failed: Database operation error: Unhandled Database operation error. See details in previous error messages. (-12793) [12/Feb/2024:12:54:12.067781177 +0000] - ERR - index_addordel_entry - database index operation failed BAD 1031, err=-12793 Database operation error: Unhandled Database operation error. See details in previous error messages. [12/Feb/2024:12:54:12.071132602 +0000] - ERR - ipa_sidgen_add_post_op - [file ipa_sidgen.c, line 128]: Missing target entry.
Versions:
# rpm -qa 389-ds-base freeipa-server 389-ds-base-3.0.1-2.fc40.x86_64 freeipa-server-4.12.0.dev202402120735+git-0.fc40.x86_64
CC @progier and @tbordaz for awareness
Will see if we can do something here. One of the difference between lmdb and bdb is there is an hardcoded limit (511) to lmdb key size and also for the the data size if MDB_DUPSORT flag is used to create the db instance ) I suspect it is the case for the enytryrdn index (and as the data contain both the normalized and non normalized rdn I guess we hit the limit around 248 (TBC) bytes in rdn Will have to see if we could change the format and if it is worth to do it ...
I think that we can fix this one. Created 389ds upstream ticket: https://issues.redhat.com/browse/IDMDS-4148
Log in to comment on this ticket.