Bug 2147524

Summary: "dsctl instance healthcheck" shows for "replication set-changelog" gives a command that when run ends with a syntax error
Product: Red Hat Directory Server Reporter: Eddy Resnick <eresnick>
Component: 389-ds-baseAssignee: LDAP Maintainers <idm-ds-dev-bugs>
Status: POST --- QA Contact: LDAP QA Team <idm-ds-qe-bugs>
Severity: medium Docs Contact: Evgenia Martynyuk <emartyny>
Priority: unspecified    
Version: 11.0CC: idm-ds-dev-bugs, mreynolds, musoni, vashirov
Target Milestone: ---Flags: mreynolds: needinfo? (eresnick)
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Eddy Resnick 2022-11-24 07:42:08 UTC
Description of problem:
Using "dsctl instance healthcheck" shows for "replication set-changelog" gives a command that when run ends with a syntax error

Version-Release number of selected component (if applicable):
RHDS 11 / RHEL 8.6

How reproducible:
Repeatedly

Steps to Reproduce:
1. Create an instance replicated with another server
2. Run "dsctl instance healthcheck"

Actual results:
The command give the syntax as follows with the output afterwards:

$ dsconf slapd-instance replication set-changelog --suffix dc=demo,dc=com --max-age 90d
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 dc=demo,dc=com


Expected results:
That the set-changelog will be set accordingly.
The documentation in https://access.redhat.com/documentation/en-us/red_hat_directory_server/11/html/administration_guide/trimming_the_replication_changelog works as expected.

Additional info:

Comment 1 mreynolds 2022-11-24 13:23:05 UTC
Yes this is a known regression first reported in https://bugzilla.redhat.com/show_bug.cgi?id=2147382

Fixed upstream, we will need to do a new build.

What is the "exact" version you are using?  11.6, 11.5?

Comment 2 mreynolds 2022-11-24 13:25:13 UTC
Upstream ticket

https://github.com/389ds/389-ds-base/issues/5443