Monday, March 13, 2023

[389-users] Re: Replication agreements creation order

On 3/13/23 08:50, Alberto Crescente wrote:
>
> On 3/13/23 01:01, William Brown wrote:
>>> Error log test-389-ds-3
>>> [10/Mar/2023:18:27:29.275950935 +0100] - ERR -
>>> agmt="cn=agreement-test-389-ds-3-to-test-389-ds-1"
>>> (test-389-ds-1:636) - clcache_load_buffer - Can't locate CSN
>>> 640b564d000000030000 in the changelog (DB rc=-12797). If replication
>>> stops, the consumer may need to be reinitialized.
>>> [10/Mar/2023:18:27:29.277963218 +0100] - ERR - NSMMReplicationPlugin
>>> - changelog program - repl_plugin_name_cl -
>>> agmt="cn=agreement-test-389-ds-3-to-test-389-ds-1"
>>> (test-389-ds-1:636): CSN 640b564d000000030000 not found, we aren't
>>> as up to date, or we purged
>>>
>>>
>>> Is there a method to know the correct sequence of definition of the
>>> agreements?
>>>
>> Did you do full re-inits when you create from 1 -> 2 and 1 -> 3?
>
> I think so. I executed the following commands sequence:
>
> # On test-389-ds-1
> dsconf Sezione -D "cn=Directory Manager" replication enable
> --suffix="dc=test,dc=com" --role="supplier" --replica-id=1
> --bind-dn="cn=replication manager,cn=config" --bind-passwd="xxxx"
>
> # On test-389-ds-2
> dsconf Sezione -D "cn=Directory Manager" replication enable
> --suffix="dc=test,dc=com" --role="supplier" --replica-id=2
> --bind-dn="cn=replication manager,cn=config" --bind-passwd="xxxx"
>
> # On test-389-ds-1 -> test-389-ds-2
> dsconf Sezione -D "cn=Directory Manager" repl-agmt create
> --suffix="dc=test,dc=com" --host="test-389-ds-2.pd.infn.it" --port=636
> --conn-protocol=LDAPS --bind-dn="cn=replication manager,cn=config"
> --bind-passwd="xxxx" --bind-method=SIMPLE --init
> agreement-test-389-ds-1-to-test-389-ds-2
>
> # On test-389-ds-2 - > test-389-ds-1
> dsconf Sezione -D "cn=Directory Manager" repl-agmt create
> --suffix="dc=test,dc=com" --host="test-389-ds-1.pd.infn.it" --port=636
> --conn-protocol=LDAPS --bind-dn="cn=replication manager,cn=config"
> --bind-passwd="xxxx" --bind-method=SIMPLE --init
> agreement-test-389-ds-2-to-test-389-ds-1


Hi Alberto,

You should not initialize ds2 from ds1 then ds1 from ds2. You need to
select your "main" ds (e.g. ds1) then init ds1->ds2 and ds1->ds3. Then
you are done, they are all (ds1, ds2, ds3) talking about the same object
(database) and replication  will work.

The consequence of an init (e.g. ds1->ds2) is that it clears the
changelog of the target (ds2) it is likely why you are seeing those
alarming message.

best regards
theirry

>
> # On test-389-ds-3
> dsconf Sezione -D "cn=Directory Manager" replication enable
> --suffix="dc=test,dc=com" --role="supplier" --replica-id=3
> --bind-dn="cn=replication manager,cn=config" --bind-passwd="xxxx"
>
> # On test-389-ds-1 -> test-389-ds-3
> dsconf Sezione -D "cn=Directory Manager" repl-agmt create
> --suffix="dc=test,dc=com" --host="test-389-ds-3.pd.infn.it" --port=636
> --conn-protocol=LDAPS --bind-dn="cn=replication manager,cn=config"
> --bind-passwd="xxxx" --bind-method=SIMPLE --init
> agreement-test-389-ds-1-to-test-389-ds-3
>
> # On test-389-ds-3 -> test-389-ds-1
> dsconf Sezione -D "cn=Directory Manager" repl-agmt create
> --suffix="dc=test,dc=com" --host="test-389-ds-1.pd.infn.it" --port=636
> --conn-protocol=LDAPS --bind-dn="cn=replication manager,cn=config"
> --bind-passwd="xxxx" --bind-method=SIMPLE --init
> agreement-test-389-ds-3-to-test-389-ds-1
>
> # On test-389-ds-2 -> test-389-ds-3
> dsconf Sezione -D "cn=Directory Manager" repl-agmt create
> --suffix="dc=test,dc=com" --host="test-389-ds-3.pd.infn.it" --port=636
> --conn-protocol=LDAPS --bind-dn="cn=replication manager,cn=config"
> --bind-passwd="xxxx" --bind-method=SIMPLE --init
> agreement-test-389-ds-2-to-test-389-ds-3
>
>
> Regards,
>
> Alberto Crescente.
>
>>
>>
>> --
>> Sincerely,
>>
>> William Brown
>>
>> Senior Software Engineer,
>> Identity and Access Management
>> SUSE Labs, Australia
>> _______________________________________________
>> 389-users mailing list -- 389-users@lists.fedoraproject.org
>> To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org
>> Fedora Code of Conduct:
>> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
>> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
>> List Archives:
>> https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org
>> Do not reply to spam, report it:
>> https://pagure.io/fedora-infrastructure/new_issue
> _______________________________________________
> 389-users mailing list -- 389-users@lists.fedoraproject.org
> To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org
> Do not reply to spam, report it:
> https://pagure.io/fedora-infrastructure/new_issue
_______________________________________________
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

No comments:

Post a Comment