#5424 ipa-replica-manage del does not check for the host's existence in domain level 1
Closed: Fixed None Opened 8 years ago by mbabinsk.

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.

master:

  • efe8f26 ipa-replica-manage del continues when host does not exist in domain level 1

master:

  • ee853a3 check whether replica exists before executing the domain level 1 deletion code

Metadata Update from @mbabinsk:
- Issue assigned to rga
- Issue set to the milestone: FreeIPA 4.3

7 years ago

Login to comment on this ticket.

Metadata