Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1482076

Summary: [Memory hot unplug] The Defined memory is not updated after hot unplug memory
Product: [oVirt] ovirt-engine Reporter: Israel Pinto <ipinto>
Component: BLL.VirtAssignee: jniederm
Status: CLOSED CURRENTRELEASE QA Contact: Israel Pinto <ipinto>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: bugs, mavital
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
rule-engine: blocker+
rule-engine: planning_ack+
rule-engine: devel_ack+
mavital: testing_ack+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:02:26 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:    
Bug Blocks: 1228543    
Attachments:
Description Flags
General Tab
none
engine_log
none
engine.log none

Description Israel Pinto 2017-08-16 12:11:21 UTC
Created attachment 1314085 [details]
General Tab

Description of problem:
The Defined memory in general tab (in the UI) is not updated 
after hot unplug memory. 

Version-Release number of selected component (if applicable):
Software version:4.2.0-0.0.master.20170813134654.gitaee967b.el7.centos

How reproducible:
All the time

Steps to Reproduce:
1. Create VM with OS
2. Start VM
3. Hotplug memory to VM several time
4. Hot unplug memory 
5. Check guest and General Tab
 

Actual results:
1. The Memory on the guest is updated after each hot unplug
2. THe Defined memory is not updated only the 
"Guest OS Memory Free/Cached/Buffered" felid.

Additional info:
See screenshot of general tab

Comment 1 Israel Pinto 2017-08-16 12:13:15 UTC
Created attachment 1314090 [details]
engine_log

Comment 2 Israel Pinto 2017-08-16 12:14:02 UTC
Created attachment 1314094 [details]
engine.log

Comment 3 Israel Pinto 2017-08-16 12:15:56 UTC
Vm name: test_memory_hotplug
ID: b9cad82e-2708-4b14-9392-7ea66959d38f
Case: https://polarion.engineering.redhat.com/polarion/redirect/project/RHEVM3/workitem?id=RHEVM-22160

Comment 4 Israel Pinto 2017-08-17 10:54:55 UTC
Raising severity,
After stopping and start VM again (all actions: cold restart, PowerOff Run)
The VM memory is not update also. 
I removed all the plugged memory the VM start with the defined memory. 
The is not update also on the guest. 
Unplug is not working after reboot.

Comment 5 jniederm 2017-08-25 12:59:37 UTC
Memory size were not updated since condition [1] was not met since the hot-unplugged memory device seemed to be far larger than it actually were since unit mismatch in 'size' spec param of memory vm device (bug 1482042).

[1]: https://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=blob;f=backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/HotUnplugMemoryCommand.java;h=a35f6af01179162e762c3e491be099797f7d1872;hb=4a3308f340e057f48bbc5dc140a5f6e19c35063f#l125

Comment 6 Israel Pinto 2017-09-24 14:13:58 UTC
Verify with:
Software version:4.2.0-0.0.master.20170917124606.gita804ef7.el7.centos

Steps:
1. Create VM with OS
2. Start VM
3. Hotplug memory to VM several time
4. Hot unplug memory 
5. Check guest and General Tab

Results:
PASS

Comment 7 Sandro Bonazzola 2017-12-20 11:02:26 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.