Bug 1551257 - Hosted Engine memory does not update.
Summary: Hosted Engine memory does not update.
Keywords:
Status: CLOSED DUPLICATE of bug 1523835
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-ha
Version: 4.1.9
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Martin Sivák
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-04 02:22 UTC by Ulhas Surse
Modified: 2021-06-10 15:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-05 20:45:56 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.