Re: [Engine-devel] Error message while trying to delete default cluster

2013-11-14 Thread Omer Frenkel


- Original Message -
> From: "Shubhendu Tripathi" 
> To: "engine-devel" , "michal skrivanek" 
> , "Omer Frenkel"
> , "Allon Mureinik" 
> Cc: "Dusmant Pati" 
> Sent: Monday, November 11, 2013 8:20:41 AM
> Subject: Error message while trying to delete default cluster
> 
> Hi,
> 
> While trying to delete the Default cluster in oVirt it shows the below
> error message -
> 
> "Cannot remove default Host Cluster.
> Cannot remove Cluster. One or more Template(s) are still associated with it"
> 
> But in the case of RHSC, Templates are not used and this message is not
> relevant. [1].
> 
> Can we opt for not installing the templates while engine setup? And
> would it be having any impact/consequences ?
> 
> Kindly provide your thoughts and possibility of the same.
> 
> Thanks and Regards,
> Shubhendu
> 
> PS:
> [1]: https://bugzilla.redhat.com/show_bug.cgi?id=1019838
> 

removing the blank template means the system couldn't be used to create vms at 
all.

but blank template is not the only problem,
there is an explicit check that prevent deleting the default cluster 
(RemoveVdsGroupCommand class, line #35),
i couldn't find the commit that added this,
but i /think/ its because by default host registration is done to the default 
cluster,
so it had to exist.

so this should be solved first.

then, if we decide to have a 'non-virt' installation we probably could avoid 
default cluster and blank template.
but what if user changes his mind after installation?

another option is to remove the protection from DB level and make cluster-id 
nullable in the vm_static table,
and have logic to allow removing last cluster and update template on new 
cluster addition.
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


[Engine-devel] Error message while trying to delete default cluster

2013-11-10 Thread Shubhendu Tripathi

Hi,

While trying to delete the Default cluster in oVirt it shows the below 
error message -


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

But in the case of RHSC, Templates are not used and this message is not 
relevant. [1].


Can we opt for not installing the templates while engine setup? And 
would it be having any impact/consequences ?


Kindly provide your thoughts and possibility of the same.

Thanks and Regards,
Shubhendu

PS:
[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1019838
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel