Bug 2151207

Summary: [DDF] As a prerequisite it should be added a check to confirm if the topology might prevent the deletion of the server.
Product: Red Hat Enterprise Linux 9 Reporter: Direct Docs Feedback <ddf-bot>
Component: DocumentationAssignee: Filip Hanzelka <fhanzelk>
Documentation sub component: DDF QA Contact:
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: medium    
Priority: medium CC: jvilicic, rhel-docs, sgarciam
Version: unspecifiedKeywords: Documentation
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-13 10:40:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Direct Docs Feedback 2022-12-06 10:54:29 UTC
As a prerequisite it should be added a check to confirm if the topology might prevent the deletion of the server.

See example:
[root@server2 ~]# ipa server-del server1.idm.example.local
Removing server1.idm.example.local from replication topology, please wait...
ipa: ERROR: Server removal aborted:

Removal of 'server1.idm.example.local' leads to disconnected topology in suffix 'domain':
Topology does not allow server server2.idm.example.local to replicate with servers:
    server3.idm.example.local
Topology does not allow server server3.idm.example.local to replicate with servers:
    server2.idm.example.local

Removal of 'server1.idm.example.local' leads to disconnected topology in suffix 'ca':
Topology does not allow server server2.idm.example.local to replicate with servers:
    server3.idm.example.local
Topology does not allow server server3.idm.example.local to replicate with servers:
    server2.idm.example.local.

Topology for domain (same for ca):
[root@server2 ~]# ipa topologysegment-find
Suffix name: domain
------------------
2 segments matched
------------------
  Segment name: server1.idm.example.local-to-server2.idm.example.local
  Left node: server1.idm.example.local
  Right node: server2.idm.example.local
  Connectivity: both

  Segment name: server1.idm.example.local-to-server3.idm.example.local
  Left node: server1.idm.example.local
  Right node: server3.idm.example.local
  Connectivity: both

A new segment must be added to allow the remaining servers replicate between themselves so the deletion can proceed.

Reported by: sgarciam

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/installing_identity_management/uninstalling-an-ipa-server_installing-identity-management#annotations:211d1208-f3ce-45fc-94eb-1970d3f04714