Bug 1377541

Summary: Server Removal Error should advertise '--ignore-topology-disconnect'
Product: Red Hat Enterprise Linux 7 Reporter: Abhijeet Kasurde <akasurde>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED WONTFIX QA Contact: Kaleem <ksiddiqu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: mbabinsk, pvoborni, rcritten
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-30 12:51:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Abhijeet Kasurde 2016-09-20 05:04:38 UTC
Description of problem:
If user tries to delete middle replica in line topology, then Server removal error is thrown. This error should also advertise about available '--ignore-topology-disconnect' which overrides this check.

Version-Release number of selected component (if applicable):
ipa-server-4.4.0-12.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. try to delete middle replica in line topology

Actual results:
Error message is correct, but doesn't suggest anything to override this behavior

Expected results:
Server removal error should advertise about '--ignore-topology-disconnect' option

Comment 2 Petr Vobornik 2016-09-20 08:13:58 UTC
AFAIK it was not added there on purpose.

Removal of middle replica should not happen in normal circumstances. Advertising the option may lead to blindly copying of it without thinking about consequences. Recovering from such act may not be trivial.

If one gets to this situation, he should change topology first. The error should suggest that.

Comment 3 Abhijeet Kasurde 2016-09-20 09:14:10 UTC
(In reply to Petr Vobornik from comment #2)
> AFAIK it was not added there on purpose.
> 
> Removal of middle replica should not happen in normal circumstances.
> Advertising the option may lead to blindly copying of it without thinking
> about consequences. Recovering from such act may not be trivial.
> 
Agree.
> If one gets to this situation, he should change topology first. The error
> should suggest that.
I am OK for having suggestion related to changing such kind of topology rather than advertising about '--ignore-topology-disconnect' option

Comment 4 Petr Vobornik 2016-09-27 11:47:58 UTC
Martin/Abhijeet what is the current message?

Comment 5 Petr Vobornik 2016-09-30 12:51:13 UTC
Error messages are:   
"""
Replication topology in suffix '%(suffix)s' is disconnected:
%(errors)s""")

("""
Removal of '%(hostname)s' leads to disconnected topology in suffix '%(suffix)s':
%(errors)s""")


Which is clear enough. Closing per triage on Sep 27.

Comment 6 Martin Babinsky 2016-10-24 11:21:49 UTC
Right.