[Freeipa-devel] [PATCH] 1050 prevent replica orphans

Rob Crittenden rcritten at redhat.com
Fri Aug 31 17:39:46 UTC 2012


It was possible use ipa-replica-manage connect/disconnect/del to end up 
orphaning or or more IPA masters. This is an attempt to catch and 
prevent that case.

I tested with this topology, trying to delete B.

A <-> B <-> C

I got here by creating B and C from A, connecting B to C then deleting 
the link from A to B, so it went from A -> B and A -> C to the above.

What I do is look up the servers that the delete candidate host has 
connections to and see if we're the last link.

I added an escape clause if there are only two masters.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-rcrit-1050-replicaorphan.patch
Type: text/x-diff
Size: 5845 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120831/6594af5d/attachment.bin>


More information about the Freeipa-devel mailing list