Bug 1199516

Summary: [RFE] Move replication topology to the shared tree
Product: Red Hat Enterprise Linux 7 Reporter: Martin Kosek <mkosek>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED ERRATA QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.0CC: akasurde, jcholast, pvoborni, rcritten
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.3.1-0.201605191449GITf8edf37.el7 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 05:44:31 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:
Bug Depends On: 837369, 1199520, 1206588    
Bug Blocks: 1206591, 1296125, 1298848, 1313485    
Attachments:
Description Flags
tkt_4997.png
none
tkt_4302_1.log
none
tkt_4302_2.log none

Description Martin Kosek 2015-03-06 14:37:21 UTC
The current way to handle replication, is cumbersome and makes it difficult to properly handle replication topology.

Create a new replication topology subtree under the cn=etc tree that will have a simplified schema to list the replication agreements between servers, and have a global configs for things like excluded replication attributes.

The idea is that admins would change objects in this shared tree and these changes would then be reflected in actual replication agreement changes in cn=config as a consequence.

Advantages (in no particular order):

* it becomes possible to easily visualize the topology w/o having to contact multiple servers
* it is possible to centrally remove a server and have all other server remove the relevant replication agreement w/o having to contact every single server
* it is possible to have a topology checker that uses graph theory
* it is possible to use said checker to prevent split brain situations by simply denying (LDAP_UNWILLING_TO_PERFORM) changes that would break the graph
* it is possible to create new agreements remotely w/o direct access to the replica just by virtue of replication of the shared tree.
* it will be possible to create multiple replication typologies for different database (ie one for main tree and one for CA data) and have distinct checks for all of them.

In the first version, the Web UI should be able to display at least read only graph of the replicas.

Comment 1 Petr Vobornik 2015-04-14 15:34:54 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/3053

Comment 2 Petr Vobornik 2015-04-21 14:01:24 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/4997

Comment 5 Petr Vobornik 2015-05-28 11:20:39 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/5035

Comment 14 Martin Kosek 2015-06-30 10:50:31 UTC
The functionality is there. From now on, the feature is in bugfixing mode upstream.

Comment 15 Martin Kosek 2015-07-07 07:49:06 UTC
Topology feature was postponed in the upstream project, to FreeIPA 4.3 which should closely follow FreeIPA 4.2 release.

See the reasoning and details in:
http://www.redhat.com/archives/freeipa-devel/2015-July/msg00092.html

Comment 16 Petr Vobornik 2016-01-22 09:38:28 UTC
has been fixed upstream

Comment 17 Mike McCune 2016-03-28 22:42:18 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 19 Abhijeet Kasurde 2016-08-17 09:22:32 UTC
Created attachment 1191511 [details]
tkt_4997.png

Comment 20 Abhijeet Kasurde 2016-08-19 08:23:53 UTC
Created attachment 1192067 [details]
tkt_4302_1.log

Comment 21 Abhijeet Kasurde 2016-08-19 08:24:13 UTC
Created attachment 1192068 [details]
tkt_4302_2.log

Comment 22 Abhijeet Kasurde 2016-08-19 08:27:51 UTC
Verified RFE BZ using ipa version ::
ipa-server-4.4.0-8.el7.x86_64

Marking BZ as verified. Please see attachments for verification steps.

Comment 24 errata-xmlrpc 2016-11-04 05:44:31 UTC
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, 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://rhn.redhat.com/errata/RHBA-2016-2404.html