Bug 1218690

Summary: Memory Balloon in a VM created from a template, that was renamed will always be disabled
Product: Red Hat Enterprise Virtualization Manager Reporter: Lev Veyde <lveyde>
Component: ovirt-engineAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED CURRENTRELEASE QA Contact: Shira Maximov <mshira>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5.1CC: gklein, istein, lsurette, michal.skrivanek, rbalakri, Rhev-m-bugs, srevivo, tjelinek, ykaul
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-20 01:34:02 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:

Description Lev Veyde 2015-05-05 15:01:48 UTC
Description of problem:
While creating VM from a template which was renamed, the VM will be created with a disabled Memory Balloon, even if the template has this setting set as enabled.

What's more - even if it was manually selected to be enabled during VM creation (after the Memory Balloon checkbox got unchecked if the renamed template got selected), the VM will not have the Memory Balloon device.


Version-Release number of selected component (if applicable):
RHEV 3.5.1-0.4.el6ev

How reproducible:
100%

Steps to Reproduce:
1. Create a VM
2. Verify that it has a Memory Balloon Device Enabled checkbox set (Under Resource Allocation tab)
3. Create a template from that VM
4. Choose the new template and use "Edit" option to rename it.
5. Create a new VM, choosing that renamed template as the base.
6. Note that once you select the template the Memory Balloon Device Enabled checkbox gets unselected.
7. Check the box, so it gets selected again.
8. Fill the required details i.e. VM name and create the VM.
9. Check the properties of the VM just created, Note that the Memory Balloon Device Enabled will be unchecked.

Actual results:
Using renamed template will get the Memory Balloon device be disabled.
It will happen even if the device is manually re-enabled during the VM creation.

Expected results:
The Memory Balloon Device Enabled should be set according to the setting of the selected template, at the time one is selected. Also the manual override should be always respected.

Additional info:
Renaming the template back to it's original name doesn't resolve the issue, so once the template gets renamed for whatever reason it activates this broken behaviour.

Comment 1 Max Kovgan 2015-06-28 14:12:55 UTC
ovirt-3.6.0-3 release

Comment 2 Shira Maximov 2015-08-25 09:48:18 UTC
verified on 3.6.0-0.12.master.el6