Bug 1955658
Summary: | Enabling replication on supplier node using 'dsconf replication enable' command fails with "ERROR: Error: Server is unwilling to perform - Attribute nsDS5ReplicaId value (65535) is invalid, must be a number between 1 and 65534." | ||
---|---|---|---|
Product: | Red Hat Directory Server | Reporter: | Akshay Sakure <asakure> |
Component: | 389-ds-base | Assignee: | mreynolds |
Status: | CLOSED ERRATA | QA Contact: | RHDS QE <ds-qe-bugs> |
Severity: | medium | Docs Contact: | Marc Muehlfeld <mmuehlfe> |
Priority: | unspecified | ||
Version: | 11.0 | CC: | gkimetto, ldap-maint, mreynolds, sgouvern, tbordaz, tmihinto |
Target Milestone: | DS11.2 | Keywords: | Regression, Triaged |
Target Release: | dirsrv-11.4 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | sync-to-jira | ||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-10-25 06:36:13 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
Akshay Sakure
2021-04-30 15:25:44 UTC
This is a regression from: Issue 4656 - Make replication CLI backwards compatible with role name change. This is the fix: $ git diff diff --git a/src/lib389/lib389/cli_conf/replication.py b/src/lib389/lib389/cli_conf/replication.py index a2513ee2a..04886f632 100644 --- a/src/lib389/lib389/cli_conf/replication.py +++ b/src/lib389/lib389/cli_conf/replication.py @@ -158,7 +158,7 @@ def enable_replication(inst, basedn, log, args): } # Validate supplier settings - if role == "supplier": + if role == "supplier" or role == "master": # Do we have a rid? if not args.replica_id or args.replica_id is None: I just fixed this upstream https://github.com/389ds/389-ds-base/issues/4656 In the meantime the easiest workaround is to use "supplier" for the role name: # dsconf -D "cn=Directory Manager" ldap://server1.example.com replication enable --suffix="dc=example,dc=com" --role="supplier" --replica-id=1 Thank you for looking into this and providing a quick 'workaround' in the meantime. 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 (Low: redhat-ds:11 security, 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/RHSA-2021:3955 |