389ds / 389-ds-base

The enterprise-class Open Source LDAP server for Linux
https://www.port389.org/
Other
213 stars 94 forks source link

Long delay when setting replication agreement through command line with dsconf #6301

Closed droideck closed 2 months ago

droideck commented 3 months ago

Description of problem: When creating a replication agreement with dsconf, the command line gets stuck for 65 seconds on average. If the agreement is created and initialized through WebUI, the change is almost immediate.

Steps to Reproduce:

  1. Enable replication on supplier and consumer machine (either on the same machine or two separate, the issue is on both)
  2. Setup a replication agreement:

dsconf -D "cn=Directory Manager" ldap://supplier.example.com repl-agmt create --suffix="dc=example,dc=com" --host="consumer.example.com" --port=389 --conn-protocol=LDAP --bind-dn="cn=replication manager,cn=config" --bind-passwd="password" --bind-method=SIMPLE --init example-agreement Enter password for cn=Directory Manager on ldap://supplier.example.com: Successfully created replication agreement "example-agreement" -----here it gets stuck for 65 seconds, then proceeds further -------

Agreement initialization started...

Actual results: The dsconf command is stuck for a minute.

Expected results: Reduce the time if possible?

droideck commented 2 months ago

https://issues.redhat.com/browse/DIRSRV-35