RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 837366 - Take into consideration services when deleting replicas
Summary: Take into consideration services when deleting replicas
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-03 15:58 UTC by Dmitri Pal
Modified: 2014-09-24 00:02 UTC (History)
4 users (show)

Fixed In Version: ipa-3.2.1-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:54:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dmitri Pal 2012-07-03 15:58:16 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/2879

We have the list of services on the replicas in cn=masters. We should take this into consideration when deleting a replica to not leave an installation without a CA or without DNS.

For example, if you have multiple IPA instances and only one has a dogtag CA, if you try to delete the IPA server with a CA we should at least warn. The same goes with DNS.

Comment 2 Rob Crittenden 2013-02-06 21:23:20 UTC
Fixed upstream

master: 076775a0f8c9ee0d17b1ed9356f1a8429fc47443

ipa-3-1: 572c3bb1be72d4f6e1d8c8de1a445f70bcf4102e

This will prevent one from deleting the last CA.

Comment 3 Jenny Severance 2013-02-12 16:48:20 UTC
There is no design page for this and there are no steps to reproduce/ verifiy what was done by development.  Please add to this bugzilla

Comment 4 Ana Krivokapic 2013-02-13 10:37:39 UTC
Steps to verify:

A. For CA

    Install IPA server
    Create a replica without CA
    Try to delete the server (ipa-replica-manage del server.example.com) 

Deletion should abort, as it is not allowed to delete the only CA in the topology.

B. For DNS

    Install IPA server with DNS
    Create a replica without DNS
    Try to delete the server (ipa-replica-manage del server.example.com) 

A message should be displayed, warning the user that this is the last DNS in the topology. User confirmation should be required in order to proceed, unless the --force option is specified.

Comment 7 Scott Poore 2014-01-29 01:39:21 UTC
Verified.

Version ::

ipa-server-3.3.3-15.el7.x86_64

Test Results ::

A.  For CA:

I installed Master (master.ipa2.example.test) and setup this replica from that:

[root@rhel7-5 ~]# ipa-replica-install -U --setup-dns --forwarder=$DNSFORWARD \
>     -w Secret123 -p Secret123  /dev/shm/replica-info-$REPLICA1.gpg

[root@rhel7-5 ~]# kinit admin
Password for admin.TEST: 

But, ipa-replica-manage del doesn't abort:

[root@rhel7-5 ~]# ipa-replica-manage del master.ipa2.example.test
Deleting a master is irreversible.
To reconnect to the remote master you will need to prepare a new replica file
and re-install.
Continue to delete? [no]: 
Deleting this server is not allowed as it would leave your installation without a CA.

B.  For DNS:

[root@rhel7-5 ~]# ipa-replica-install -U --setup-ca -w Secret123 -p Secret123  /dev/shm/replica-info-$REPLICA1.gpg

...

[root@rhel7-5 ~]# kinit admin
Password for admin.TEST: 

[root@rhel7-5 ~]# ipa-replica-manage del master.ipa2.example.test
Deleting a master is irreversible.
To reconnect to the remote master you will need to prepare a new replica file
and re-install.
Continue to delete? [no]: yes
Deleting this server will leave your installation without a DNS.
Continue to delete? [no]: no
Deletion aborted

Comment 8 Ludek Smid 2014-06-13 12:54:34 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.