Bug 1130174

Summary: [RFE] turn Blank template into some kind of global defaults facility
Product: [oVirt] ovirt-engine Reporter: Michal Skrivanek <michal.skrivanek>
Component: RFEsAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED CURRENTRELEASE QA Contact: Shira Maximov <mshira>
Severity: medium Docs Contact:
Priority: unspecified    
Version: ---CC: bugs, gklein, iheim, istein, mavital, rbalakri, s.kieske, tjelinek, yeylon, ykaul
Target Milestone: ovirt-3.6.0-rcKeywords: FutureFeature, UserExperience
Target Release: 3.6.0Flags: rule-engine: ovirt-3.6.0+
ylavi: planning_ack+
rule-engine: devel_ack+
mavital: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-3.6.0-0.0.master.20150412172306.git55ba764 Doc Type: Enhancement
Doc Text:
The "Blank" template is now editable and can be used as a global default facility to define some of the VM properties for VMs not using any custom template.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-10 12:50:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1279524    
Bug Blocks: 1072384, 1145002    

Description Michal Skrivanek 2014-08-14 13:42:48 UTC
Blank template is quite useless and a constant source of confusion.

We should make it editable so people can set a system-wide defaults. When it's renamed to "Defaults" it would also be a bit more clear why it can't be removed and is hard-wired into many flows.

And as a bonus, we can replace some of the VdcOptions-only global things with simple edit of the "Default" template

Comment 1 Michal Skrivanek 2014-08-15 13:25:10 UTC
*** Bug 1072045 has been marked as a duplicate of this bug. ***

Comment 2 Michal Skrivanek 2014-08-15 13:26:07 UTC
address sub-version of defaults too

Comment 3 Einav Cohen 2014-08-18 18:21:55 UTC
after consulting with Liz:
Short term, I think it is OK to rename the 'Blank' template to 'Defaults', allow users to edit it, etc. 
towards 4.0, I think that we should re-think whether it makes sense to treat that 'Blank'/'Default' entity as a Template (i.e. display it in the Templates main tab, etc.), or does it make more sense to allow a completely different way of controlling the defaults for creating a VM from scratch.

Comment 4 Tomas Jelinek 2015-04-14 06:14:52 UTC
Please note that the "38817: core: renamed the blank template to default" patch had to be rewerted because of backward compatibility - e.g. the implementation is that the blank template is editable but it is still named Blank. There is a possibility to rename it if the user decides to do so. 

The updated feature page: http://www.ovirt.org/Features/Blank_to_Defaults#Proposal

Comment 7 Shira Maximov 2015-07-08 14:04:34 UTC
Tomas, thanks for your comments. 
i added the a test case and specific about SPICE and VNC. 

please approve the test plan, 
thanks.

Comment 8 Tomas Jelinek 2015-07-13 07:35:53 UTC
yes, seems ok to me

Comment 9 Shira Maximov 2015-11-09 14:12:27 UTC
try to verify on :
Red Hat Enterprise Virtualization Manager Version: 3.6.0.3-0.1.el6


link to polarion test : 
https://polarion.engineering.redhat.com/polarion/#/project/RHEVM3/wiki/Compute/3_6_VIRT_Blank_template?query=NOT%20type:heading%20AND%20(NOT%20TEST_RECORDS:(%22RHEVM3/3_6_VIRT_Blank_template_2%22,@any))&tree_depth=0&tab=tree


failed on the following test :
check vnc+spice:
1. edit the blank template
2. got to Console tab 
3. in Graphics protocol choose VNC+SPICE
4. create 2 vms with this template -
   one with the 3.5 cluster and one with 3.6

The vm in 3.6 cluster will inheritance the VNC+SPICE and the vm in 3.5 should be inherit only SPICE but she also inheritance VNC+SPICE

Tomas, should i move this bug back to assigned?

Comment 10 Tomas Jelinek 2015-11-09 14:55:02 UTC
In cluster level 3.5 you should not be able to create a VM which has both SPICE and VNC (regardless of Blank template setting). So, if the combo box contains the SPICE+VNC than it is a separate bug (which blocks this one from verification but still a separate one...).