When managing domain level 1 topology I have noticed that when {{{ipa-replica-manage del}}} subcommand is handed a hostname that does not exist, it will happily proceed with the deletion and claim that the hostname was already deleted:
# ipa-replica-manage del bogus.server.ipa.test Server entry already deleted: bogus.server.ipa.test Skipping replication agreement deletion check Failed to cleanup bogus.server.ipa.test DNS entries: server.ipa.test.: DNS zone not found You may need to manually remove them from the tree
Instead of this confusing behavior, an error message should be raised that the user is trying to delete a nonexistent node from the topology.
It should fail if --clean is not passed.
--clean
attachment freeipa-rga-0063-ipa-replica-manage-del-continues-when-host-does-not-.patch
master:
Metadata Update from @mbabinsk: - Issue assigned to rga - Issue set to the milestone: FreeIPA 4.3
Login to comment on this ticket.