Bug 1019838

Summary: [RHSC] The message "Cannot remove Cluster. One or more Template(s) are still associated with it" seen when trying to remove the Default cluster
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Shruti Sampat <ssampat>
Component: rhscAssignee: Shubhendu Tripathi <shtripat>
Status: CLOSED WONTFIX QA Contact: Shruti Sampat <ssampat>
Severity: medium Docs Contact:
Priority: low    
Version: 2.1CC: dpati, iheim, knarra, michal.skrivanek, mmahoney, mmccune, ngupta, nsathyan, rhs-bugs, sabose, sdharane, sgraf, sherold
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-28 06:39:55 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:
Embargoed:
Attachments:
Description Flags
screenshot none

Description Shruti Sampat 2013-10-16 13:27:24 UTC
Created attachment 812924 [details]
screenshot

Description of problem:
------------------------
When trying to remove the Default cluster, the following messages are seen in an error pop-up - 

Error while executing action:

    Cannot remove default Host Cluster.
    Cannot remove Cluster. One or more Template(s) are still associated with it

The message shown to the user should be more meaningful about the reason for not being able to remove the Default cluster.

Version-Release number of selected component (if applicable):
Red Hat Storage Console Version: 2.1.2-0.0.scratch.beta1.el6_4 

How reproducible:
Always

Steps to Reproduce:
1. In the Clusters tab, select the Default cluster and click on Remove.

Actual results:
The above described message is seen.

Expected results:
A more meaningful message needs to be shown.

Additional info:
Find screenshot attached.

Comment 2 Itamar Heim 2013-10-17 08:46:31 UTC
so in ovirt/rhev we can't remove the default template, hence the cluster.
mihcal/omer - thoughts on this limitation going forward?
gluster - i guess you can remove the default template in your case. hopefully won't cause too many issues now / in future upgrades.

Comment 3 Scott Herold 2013-10-24 20:10:17 UTC
Just ran into this myself today (3.3 Beta).  Is there any way to re-associate a Template to an alternate Cluster without deleting it, or does the same limitation apply within oVirt?  

I agree it is purely cosmetic, and only visible form the "System" node in the tree, and doesn't appear to cause any functional issues.

Comment 4 Dusmant 2013-10-25 06:37:43 UTC
Message should be changed "You can not remove a default cluster"...

Comment 5 Shubhendu Tripathi 2013-11-09 04:55:14 UTC
As suggested by Itamar, I feel this should be handled during engine setup and if the installation is Gluster only mode, the template installation should not be done.

Michal / Omer, need confirmation from your side as well, if there could be some consequences.

Comment 6 Dusmant 2013-11-09 05:56:13 UTC
This is not blocking any functionality and it would require discussion in the upstream for removing the template as well. Shubhendu is going to start that discussion and if it gets closed in a week or so time, we will take this bug in. Otherwise the bug will be moved out of Corbett.

Comment 7 Shubhendu Tripathi 2013-11-13 03:44:34 UTC
A discussion thread http://lists.ovirt.org/pipermail/engine-devel/2013-November/005862.html started on engine-devel.

Comment 8 Dusmant 2013-11-21 10:43:20 UTC
Moving it out of Corbett

Comment 9 Michal Skrivanek 2015-01-19 13:18:15 UTC
(In reply to Itamar Heim from comment #2)
> so in ovirt/rhev we can't remove the default template, hence the cluster.
> mihcal/omer - thoughts on this limitation going forward?
> gluster - i guess you can remove the default template in your case.
> hopefully won't cause too many issues now / in future upgrades.

we'll remove the limitation, the Blank template (or Default as we will rename it) would be disconnected from clusters (bug 1130174). It's already possible since the introduction of instance types.

Comment 12 Dusmant 2015-06-10 11:34:37 UTC
*** Bug 1227740 has been marked as a duplicate of this bug. ***

Comment 13 Dusmant 2015-12-28 06:39:55 UTC
RHSC 2.1 is EOLed and we don't have any plan to fix this issue.
If you think, this is an important bug to be addressed, pls. re-open it on the latest release. 
I will go ahead and "CLOSE" this bug for this release.