Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2147382

Summary: RHDS Console for RHEL 8.7 fails to load the replication configuration.
Product: Red Hat Directory Server Reporter: Têko Mihinto <tmihinto>
Component: cockpit-389-dsAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: LDAP QA Team <idm-ds-qe-bugs>
Severity: high Docs Contact:
Priority: urgent    
Version: 11.6CC: bsmejkal, dmittal, idm-ds-dev-bugs, mgokhool, mreynolds, rainer.weidenthaler, tbordaz, vcech
Target Milestone: DS11.6Keywords: Triaged
Target Release: dirsrv-11.6   
Hardware: x86_64   
OS: Linux   
Whiteboard: sync-to-jira
Fixed In Version: redhat-ds-11-8070020221130183156.95958119 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-17 08:52:07 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:

Description Têko Mihinto 2022-11-23 21:11:24 UTC
Description of problem:
The RHDS Console is failing to load the replication configuration.

The JS Console shows:
=============================================================
CMD: loadReplSuffix: Load the replication info ==> dsconf -j ldapi://%2fvar%2frun%2fslapd-supplier_1.socket replication get-changelog --suffix o=test
VM62:1 Uncaught SyntaxError: Unexpected token 'u', "usage: dsc"... is not valid JSON
    at JSON.parse (<anonymous>)
    at Function.<anonymous> (index.js:2:2030486)
    at cockpit.js:1:12867
    at cockpit.js:1:12978
    at L (cockpit.js:1:12383)
=============================================================

Version-Release number of selected component (if applicable):
$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.7 (Ootpa)
$

$ rpm -qa | grep 389-ds
389-ds-base-libs-1.4.3.31-6.module+el8dsrv+16980+c4b9cd33.x86_64
cockpit-389-ds-1.4.3.31-6.module+el8dsrv+16980+c4b9cd33.noarch
389-ds-base-1.4.3.31-6.module+el8dsrv+16980+c4b9cd33.x86_64
$

How reproducible:
Always

Steps to Reproduce:
1. Launch the RHDS Console
2. Select the Replication tab
3. The page will show a running spinner and will fail to load the replication data

Actual results:
Cannot see the replication configuration with the RHDS Console.

Expected results:
Working Web UI.

Additional info:

The command is failing because of the option --suffix:

$ dsconf -j ldapi://%2fvar%2frun%2fslapd-supplier_1.socket replication get-changelog --suffix o=test
usage: dsconf [-h] [-v] [-D BINDDN] [-w BINDPW] [-W] [-y PWDFILE] [-b BASEDN]
              [-Z] [-j]
              instance
              {backend,backup,chaining,config,directory_manager,monitor,plugin,pwpolicy,localpwp,replication,repl-agmt,repl-winsync-agmt,repl-tasks,sasl,security,schema,repl-conflict}
              ...
dsconf: error: unrecognized arguments: --suffix o=test
$

It works fine without that option:

$ dsconf -j ldapi://%2fvar%2frun%2fslapd-supplier_1.socket replication get-changelog
{
    "type": "entry",
    "dn": "cn=changelog5,cn=config",
    "attrs": {
...
$

Comment 2 mreynolds 2022-11-23 21:31:10 UTC
It's a regression from:  https://github.com/389ds/389-ds-base/issues/5443  It should not be using the "--suffix" option on 1.4.3

Comment 3 mreynolds 2022-11-24 13:24:41 UTC
Fixed upstream

Comment 13 thierry bordaz 2023-01-09 13:58:19 UTC
Fix pushed upstream => POST

Comment 16 errata-xmlrpc 2023-01-17 08:52:07 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 (redhat-ds:11 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-2023:0186