Bug 430015 - replication config tools
Summary: replication config tools
Alias: None
Product: freeIPA
Classification: Retired
Component: ipa-server   
(Show other bugs)
Version: 1.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
Depends On:
Blocks: freeipa10 429034
TreeView+ depends on / blocked
Reported: 2008-01-24 06:51 UTC by Chandrasekar Kannan
Modified: 2012-03-27 07:17 UTC (History)
5 users (show)

Fixed In Version: freeipa-2.0.0-1.fc15
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
No need to use a regular expression to find the replication host (910 bytes, patch)
2008-03-31 22:27 UTC, Rob Crittenden
no flags Details | Diff

Description Chandrasekar Kannan 2008-01-24 06:51:46 UTC
Ticket #115 (new defect)

Opened 2 months ago
replication config tools
Reported by: 	kmacmill 	Assigned to: 	kmacmill
Priority: 	major 	Milestone: 	release-1
Component: 	ipa-server 	Version: 	
Keywords: 		Cc: 	
Description ¶

We need some more tools for replication configuration. If nothing else, we need to be able to remove agreements for servers that no longer exist.

Comment 3 Rob Crittenden 2008-01-31 20:50:46 UTC
We ship 3 tools for replication:

ipa-replica-install, ipa-replica-manage and ipa-replica-prepare

Karl said this about how they work:

On master1.foo.bar:

# ipa-server-install
# ipa-replica-prepare
(you now have replica-info-FOO.BAR file - copy to master2 and 3)

On master2.foo.bar:

# ipa-replica-install replica-info-FOO.BAR
(we now have two masters)

On master3.foo.bar:

# ipa-replica-install replica-info-FOO.BAR
(we now have 3 masters, but no agreement between 2 and 3)
# ipa-replica-manage add master2.foo.bar
# ipa-replica-manage list
(mesh topology is done)

On master1.foo.bar:

# ipa-replica-manage list

Comment 4 Yi Zhang 2008-03-31 19:27:45 UTC
QA verified:
the following script works as designed:
ipa-replica-manage add  <ipareplica hostname>
ipa-replica-manage del <ipareplica hostname>
ipa-replica-manage init <ipareplica hostanme>

The next script doesn't give output as what I expected:
[root@ipaserver ~]#  ipa-replica-manage list
Directory Manager password: 

==> The expected answer is "replica64a.ipaqa.com"
Notes: the above test ran on ipaserver, which is the master, it gave wrong
answer, but when I ran the same command on replica server, it gave correct
answer (as below):

[root@replica64a ~]#  ipa-replica-manage list
Directory Manager password: 

Comment 5 Rob Crittenden 2008-03-31 19:53:12 UTC
Can you send me the output of this on both servers? 

ldapsearch -x -D "cn=directory manager" -w PASSWORD -b "cn=mapping
tree,cn=config" "(objectClass=nsDS5ReplicationAgreement)"

Comment 6 Yi Zhang 2008-03-31 21:04:41 UTC
[root@ipaserver ~]#  ldapsearch -x -D "cn=directory manager" -w redhat123 -b
"cn=mapping tree,cn=config"  "(objectClass=nsDS5ReplicationAgreement)" 
# extended LDIF
# LDAPv3
# base <cn=mapping tree,cn=config> with scope subtree
# filter: (objectClass=nsDS5ReplicationAgreement)
# requesting: ALL

# meToreplica64a.ipaqa.com636, replica, dc\3Dipaqa\2Cdc\3Dcom, mapping tree, 
dn: cn=meToreplica64a.ipaqa.com636, cn=replica, cn="dc=ipaqa,dc=com", cn=mappi
 ng tree, cn=config
nsDS5ReplicaUpdateSchedule: 0000-2359 0123456
cn: meToreplica64a.ipaqa.com636
nsDS5ReplicaRoot: dc=ipaqa,dc=com
objectClass: top
objectClass: nsds5replicationagreement
nsDS5ReplicaTransportInfo: SSL
description: me to replica64a.ipaqa.com636
nsDS5ReplicaPort: 636
nsDS5ReplicaHost: replica64a.ipaqa.com
nsds5replicaTimeout: 120
nsDS5ReplicaBindDN: cn=replication manager,cn=config
nsDS5ReplicatedAttributeList: (objectclass=*) $ EXCLUDE memberOf
nsDS5ReplicaBindMethod: simple
nsDS5ReplicaCredentials: {DES}6iNZK04oZlJYNKC/wz+1uw==
nsds5replicareapactive: 0
nsds5replicaLastUpdateStart: 20080220132206Z
nsds5replicaLastUpdateEnd: 20080220132206Z
nsds5replicaChangesSentSinceStartup:: Mjo1MC8wIA==
nsds5replicaLastUpdateStatus: 0 Incremental update succeeded
nsds5replicaUpdateInProgress: FALSE
nsds5replicaLastInitStart: 0
nsds5replicaLastInitEnd: 0

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

Comment 7 Rob Crittenden 2008-03-31 22:27:47 UTC
Created attachment 299778 [details]
No need to use a regular expression to find the replication host

Comment 8 Rob Crittenden 2008-03-31 22:30:03 UTC
Committed in changeset 756

Comment 9 Yi Zhang 2008-04-03 21:51:03 UTC
qa verified, bug closed
build used: 4-3-2008 daily build

add replica manage command:
are working good now

Note You need to log in before you can comment on or make changes to this bug.