[Freeipa-devel] [PATCH] 1016 check for replication agreements

Rob Crittenden rcritten at redhat.com
Thu May 17 14:52:27 UTC 2012


Martin Kosek wrote:
> On Wed, 2012-05-16 at 18:25 -0400, Rob Crittenden wrote:
>> In ipa-replica-install we infer that a replication agreement exists if
>> the host exists. Add an explicit check instead.
>>
>> What I did to test this was to break out of the installation right after
>> replication succeeded. Then I'd run ipa-server-install --uninstall and
>> try the replica install again.
>>
>> rob
>
> I was also able to reproduce the issue by installing master and replica,
> then deleting the replica host entry and running the ipa-replica-install
> again.
>
> The patch works fine, I would just improve the following notice:
>
> $ ipa-replica-install INFO_FILE
> ...
> A replication agreement for this host already exists. It needs to be
> removed.
>      % ipa-replica-manage del vm-098.idm.lab.bos.redhat.com
>
> ... and add "--force" flag to the recommended command. Otherwise, user
> will receive an error as obviously the replica is not alive anymore.
> Maybe we could also suggest that this should be run on a master machine
> so that users don't try to run it on a replica.
>
> Martin
>

Good idea, updated.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-rcrit-1016-2-replicainstall.patch
Type: text/x-diff
Size: 6327 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120517/ced1a0df/attachment.bin>


More information about the Freeipa-devel mailing list