Bug 1599569

Summary: For parallel ipa-replica-install, replica are competing to acquire master
Product: Red Hat Enterprise Linux 7 Reporter: Florence Blanc-Renaud <frenaud>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: mkosek, pasik, pvoborni, rcritten, tscherf
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.7.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-19 08:21:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Florence Blanc-Renaud 2018-07-10 05:33:32 UTC
Cloned from upstream: https://pagure.io/freeipa/issue/7605


### Issue
During parallel ipa-replica-install, each replica will connect to the master and send their updates.
There is a good chance that a replica agreement (replica->master) will find the master being BUSY (acquired by an other replica).

This is normal and replica will backoff for sometime. It can lead to ipa-replica-install timeout.

It could be helpfull to reduce nsds5ReplicaReleaseTimeout=10 during that intensive period of parallel install


#### Steps to Reproduce
1. Similar test case of https://pagure.io/freeipa/issue/7595 with 4 replicas parallel install


#### Actual behavior
ipa-replica-install times out

#### Expected behavior
Should not

Comment 2 Florence Blanc-Renaud 2018-07-10 05:39:01 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/7605

Comment 3 Rob Crittenden 2018-09-25 14:39:54 UTC
Fixed upstream:

master: 811b0fdb4620938963f1a29d3fdd22257327562c

This is in the release-4-7-0 release tag.

Comment 5 Florence Blanc-Renaud 2018-11-19 08:21:12 UTC
https://pagure.io/freeipa/issue/7605 was addressed with the fix for https://pagure.io/freeipa/issue/7617. The fix for 7617 was included in 7.6 (BZ 1623112 fixed in ipa-4.6.4-7.el7).

Hence we can close this BZ.

Fixed upstream
master:
    811b0fd Tune DS replication settings
    02f4a7a DS replication settings: fix regression with <3.3 master

ipa-4-6:
    6ba653c Tune DS replication settings
    2563f6f DS replication settings: fix regression with <3.3 master

ipa-4-5:
    ec60901 replicainstall: DS SSL replica install pick right certmonger host
    5ef8333 Fix race condition in get_locations_records()
    a9cc862 Tune DS replication settings
    79fe981 Auto-retry failed certmonger requests
    f3dd0cb Wait for client certificates
    f4ee36a DS replication settings: fix regression with <3.3 master

ipa-4-7:
    30443d1 DS replication settings: fix regression with <3.3 master