#6250 Replica uninstallation does not remove the topology segment on master
Opened 2 years ago by ofayans. Modified 2 months ago

When I uninstall replica with the common {{{ipa-server-install --uninstall}}}, the corresponding topology segment stays on master and other replicas. When I afterwards run ipa-replica-manage-del on master, it says:

<replica_hostname>: server not found

Which means that the server-dell call is executed during replica uninstallation, but the replication agreement is not removed.[[BR]]

It turns out that the only way to correctly remove replica from topology is to run ipa-replica-manage-del.


I tried this in a simple [master] <-> [replica] topology with replica deletion (tried both CA and CA-less replicas) but was unable to reproduce it so that the given topology segment would stay in the database. Obviously ipa-replica-manage del would then fail for me.

Oleg, if ipa-replica-manage-del helps then it most-likely means that deletion of master entry was not replicated.

If it is the case then it is not a bug in topology plugin as I originally thought.

But the debug log indicates that there are issues with replication which might have caused it.

I fail to understand why, after a host is deleted, the segments with that host are still present in the share tree.

Hosts:
vm-058-213 (this one)
vm-058-210
vm-058-235

At 24/Aug/2016:09:10:44 vm-058-213 processed Deletion of host vm-058-210[replicaID=5].
During this deletion, topology plugins should
- remove segments vm-058-213<-->vm-058-210 (status=REMOVED, state=OBSOLETE) --> delete RA vm-058-213-->vm-058-210.
- delete the host from managed hosts
- cleanruv

There are logs showing deletion of RA (and also cleanRUV)

[24/Aug/2016:09:10:44.831553268 +0200] ipa-topology-plugin - ipa_topo_agmt_del: cn=meTovm-058-210.abc.idm.lab.eng.brq.redhat.com

So that means the Segment DEL occurred successfully.
The only reason I can think of is that the segment was somehow recreated (resurrect looks impossible as segment is a leaf).

Do you know if it exists steps to reproduce ?
Is it possible to collect other errors/access logs on all the hosts ?

I was able to reproduce this too, ipa-server-install --uninstall in sometimes fail to replicate changes. This is a bug in server-del implementation. However server-del/ipa-replica-manage del should be used before ipa-server-install --uninstall

XFAIL for test

master:

  • 3e4740f Xfailed a test that fails due to 6250

Metadata Update from @ofayans:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.5 backlog

2 years ago

Metadata Update from @pvoborni:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/1771 (was: 0)
- Issue close_status updated to: None
- Issue set to the milestone: FreeIPA 4.6.4 (was: FreeIPA 4.5 backlog)

a year ago

Metadata Update from @pvoborni:
- Issue assigned to pvoborni (was: someone)

a year ago

master:

  • 7b1b0b3 Fix order of commands in test for removing topology segments

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.6.5 (was: FreeIPA 4.6.4)

a year ago

ipa-4-6:

  • fb229e9 Fix order of commands in test for removing topology segments

Login to comment on this ticket.

Metadata