Bug 1551257

Summary: Hosted Engine memory does not update.
Product: Red Hat Enterprise Virtualization Manager Reporter: Ulhas Surse <usurse>
Component: ovirt-hosted-engine-haAssignee: Martin Sivák <msivak>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.9CC: lsurette, mkalinin, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-05 20:45:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ulhas Surse 2018-03-04 02:22:20 UTC
Description of problem:
Hosted Engine VM does not update the memory inside the guest after editing it from the RHVM portal. 

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-2.1.4-1.el7ev.noarch
ovirt-hosted-engine-ha-2.1.8-1.el7ev.noarch
ovirt-engine-4.1.9.1-0.1.el7.noarch

How reproducible:
Always 

Steps to Reproduce:
1. Edit the hosted engine VM configuration for memory. (increase or decrease) 
2. Check the memory inside the guest Hosted Engine.
3. There is no change. 

Actual results:
Hosted Engine memory change does not reflect. (when mem was 4086) 

# free -m
              total        used        free      shared  buff/cache   available
Mem:           3778        1599        1691          39         488        1889
Swap:          8191           0        8191



Expected results: (according to https://access.redhat.com/solutions/964693) 
Change should be reflected on the fly. (when mem was 5000 and after HE VM reboot) 

# free -m
              total        used        free      shared  buff/cache   available
Mem:           4676        1750        2391          39         534        2632
Swap:          8191           0        8191


Additional info:
1] It does update the OVF store with the new memSize: 

** Increase from 4086 to 5000 so the vm.conf shows it correct: 

 # cat /var/run/ovirt-hosted-engine-ha/vm.conf 
cpuType=SandyBridge
emulatedMachine=pc-i440fx-rhel7.3.0
vmId=5a1dab2d-c19f-4e51-a225-71882c535084
smp=2
memSize=5000  <<=====
maxVCpus=16

** But the vdsClient does not reflect the change: 

	guestDiskMapping = {'QEMU_DVD-ROM_QM00003': {'name': '/dev/sr0'}, '09fbcc4a-3f41-4959-a': {'name': '/dev/vda'}}
	vmType = kvm
	smp = 2
	display = vnc
	memSize = 4086  <<=====
	cpuType = SandyBridge
	spiceSecureChannels = smain,sdisplay,sinputs,scursor,splayback,srecord,ssmartcard,susbredir
	statusTime = 5325240010
	vmName = HostedEngine
	guestIPs = 
	pauseCode = NOERR
	maxVCpus = 16


WORKAROUND:
===========

-Enable global mainteance. 
- PoweOff the Hosted Engine VM.
- Start the Hosted Engine VM. 

Now the changes are reflected in the guest.

Comment 2 Martin Sivák 2018-03-05 12:13:13 UTC
This is expected. Hosted engine officially does not support memory hotplug. It might work starting 4.2.2 where some other changes that make it possible were merged (nicknamed libvirtxml and node 0).

Comment 3 Marina Kalinin 2018-03-05 20:45:56 UTC

*** This bug has been marked as a duplicate of bug 1523835 ***

Comment 4 Franta Kust 2019-05-16 13:05:37 UTC
BZ<2>Jira Resync