diff options
author | Ludwig Krispenz <lkrispen@redhat.com> | 2015-10-23 14:18:48 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2015-10-26 18:11:32 +0100 |
commit | 26bfc914d97f8698f294967e9812b0a7ebc4bce6 (patch) | |
tree | 0e62769f383dfe872ebf56c56eece53b40ee16e7 /install/tools/ipa-replica-manage | |
parent | 1195278f6b3b2d6fb5de94bb5556b6a4bc4afc5a (diff) | |
download | freeipa-26bfc914d97f8698f294967e9812b0a7ebc4bce6.tar.gz freeipa-26bfc914d97f8698f294967e9812b0a7ebc4bce6.tar.xz freeipa-26bfc914d97f8698f294967e9812b0a7ebc4bce6.zip |
handle cleaning of RUV in the topology plugin
After removing a server the replicaid needs to be cleared in the ruv entry and
in the changelog.
This was triggere by initiating a cleanallruv task in "ipa-replica-manage del",
but the removal of a master already triggers a cleanup of segments and replication
agreement by the topology plugin, so this could be handled by the plugin as well.
Reviewed-By: Thierry Bordaz <tbordaz@redhat.com>
Diffstat (limited to 'install/tools/ipa-replica-manage')
-rwxr-xr-x | install/tools/ipa-replica-manage | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/install/tools/ipa-replica-manage b/install/tools/ipa-replica-manage index b8337bb76..c01092d53 100755 --- a/install/tools/ipa-replica-manage +++ b/install/tools/ipa-replica-manage @@ -797,12 +797,7 @@ def del_master_managed(realm, hostname, options): break i += 1 - # Clean RUV - if rid is not None: - try: - thisrepl.cleanallruv(rid) - except KeyboardInterrupt: - print("Wait for task interrupted. It will continue to run in the background") + # Clean RUV is handled by the topolgy plugin # 8. And clean up the removed replica DNS entries if any. cleanup_server_dns_entries(realm, hostname, thisrepl.suffix, options) |