https://bugzilla.redhat.com/show_bug.cgi?id=839638 (Red Hat Enterprise Linux 6)
Description of problem: ipa-replica-manage is allowing me to disconnect (not delete) the last connection to a replica. topo: R1--M--R2 Since there is not a connection from R1 to R2, I should have to delete the connection between R1 (or R2) and M? ipa-replica-manage is allowing me to disconnect though: install vm1 as M install vm2 as R1 connected to M install vm3 as R2 connected to M Then: [root@vm1 shared]# ipa-replica-manage -p $ADMINPW disconnect vm1.testrelm.com vm2.testrelm.com Deleted replication agreement from 'vm1.testrelm.com' to 'vm2.testrelm.com' [root@vm1 shared]# ipa-replica-manage -p $ADMINPW connect vm1.testrelm.com vm2.testrelm.com You cannot connect to a previously deleted master [root@vm1 shared]# ipa-replica-manage -p $ADMINPW disconnect vm1.testrelm.com vm3.testrelm.com Cannot remove the last replication link of 'vm1.testrelm.com' Please use the 'del' command to remove it from the domain I should have seen the error on the vm2 disconnect that I saw on vm3? Version-Release number of selected component (if applicable): ipa-server-2.2.0-16.el6.x86_64 How reproducible: always Steps to Reproduce: 1. install ipa Master 2. install 2 replicas each connected to Master 3. install vm3 as R2 connected to M 4. ipa-replica-manage disconnect $MASTER $REPLICA1 Actual results: disconnect succeeds when it should fail: [root@vm1 shared]# ipa-replica-manage -p $ADMINPW disconnect vm1.testrelm.com vm2.testrelm.com Deleted replication agreement from 'vm1.testrelm.com' to 'vm2.testrelm.com' Expected results: should have seen something more like this? [root@vm1 shared]# ipa-replica-manage -p $ADMINPW disconnect vm1.testrelm.com vm3.testrelm.com Cannot remove the last replication link of 'vm1.testrelm.com' Please use the 'del' command to remove it from the domain Additional info:
This fixes two problems.
master: [[br]] 32c1aa4[[br]] 87040c0
Metadata Update from @rcritten: - Issue assigned to simo - Issue set to the milestone: FreeIPA 3.0 Beta 2
Login to comment on this ticket.