Bug 1373484 - Initial HE VM config must include maxVCpus parameter in order to support CPU hotplug
Summary: Initial HE VM config must include maxVCpus parameter in order to support CPU ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-hosted-engine-setup
Classification: oVirt
Component: General
Version: ---
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ovirt-4.0.5
: 2.0.3
Assignee: Simone Tiraboschi
QA Contact: Artyom
URL:
Whiteboard:
Depends On:
Blocks: 1379964
TreeView+ depends on / blocked
 
Reported: 2016-09-06 11:52 UTC by Artyom
Modified: 2017-05-11 09:23 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-01-18 07:35:41 UTC
oVirt Team: Integration
Embargoed:
rule-engine: ovirt-4.0.z+
mgoldboi: planning_ack+
sbonazzo: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1364132 0 high CLOSED Once the engine imports the hosted-engine VM we lose the console device 2021-02-22 00:41:40 UTC
oVirt gerrit 64453 0 None MERGED virt: add maxVCpus to initial vm.conf 2020-07-31 16:45:19 UTC
oVirt gerrit 64534 0 None MERGED virt: add maxVCpus to initial vm.conf 2020-07-31 16:45:18 UTC

Internal Links: 1364132

Description Artyom 2016-09-06 11:52:38 UTC
Description of problem:
In 4.0 we support CPU hotplug, but until HE VM configuration file does not have maxVCpus we can not hotplug CPU.

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-ha-2.0.3-1.el7ev.noarch

How reproducible:
Always

Steps to Reproduce:
1. Deploy HE
2. Check HE VM configuration after deployment
3.

Actual results:
/var/run/ovirt-hosted-engine-ha/vm.conf does not include maxVCpus parameter

Expected results:
/var/run/ovirt-hosted-engine-ha/vm.conf must include maxVCpus parameter, otherwise, it does not possible to hotplug CPU until we restart HE VM with updated OVF

Additional info:
I believe this problem will exist until I can see under the log:
MainThread::INFO::2016-09-06 14:51:35,322::config::206::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config::(refresh_local_conf_file) Trying to get a fresher copy of vm configuration from the OVF_STORE
MainThread::WARNING::2016-09-06 14:51:38,965::ovf_store::106::ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore::(scan) Unable to find OVF_STORE
MainThread::ERROR::2016-09-06 14:51:38,966::config::235::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config::(refresh_local_conf_file) Unable to get vm.conf from OVF_STORE, falling back to initial vm.conf

Comment 1 Yaniv Lavi 2016-09-15 15:19:50 UTC
Do we need BZ #1364132 to fix this?

Comment 2 Martin Sivák 2016-09-20 10:37:09 UTC
This issue is only present until the VM is restarted for the first time after the OVF was refreshed by the engine.

Comment 3 Artyom 2016-10-05 13:29:42 UTC
Verified on ovirt-hosted-engine-setup-2.0.3-2.el7ev.noarch

Initial configuration file looks like:
[root@alma07 ovirt-hosted-engine-setup]# cat /var/run/ovirt-hosted-engine-ha/vm.conf
vmId=c49b16c1-9644-479a-8fed-9ba9949721e9
memSize=4096
display=vnc
devices={index:2,iface:ide,address:{ controller:0, target:0,unit:0, bus:1, type:drive},specParams:{},readonly:true,deviceId:43f8e4af-e308-4e2f-a767-b4a74d0718d4,path:,device:cdrom,shared:false,type:disk}
devices={index:0,iface:virtio,format:raw,poolID:00000000-0000-0000-0000-000000000000,volumeID:c76f68d3-dd0a-4ff1-8e56-fff9e5cf5c42,imageID:a1f83ec7-5481-42fe-adf9-e90d14cd7e1b,specParams:{},readonly:false,domainID:204c3098-e2a3-470c-a2b8-e4d3543685e1,optional:false,deviceId:a1f83ec7-5481-42fe-adf9-e90d14cd7e1b,address:{bus:0x00, slot:0x06, domain:0x0000, type:pci, function:0x0},device:disk,shared:exclusive,propagateErrors:off,type:disk,bootOrder:1}
devices={device:scsi,model:virtio-scsi,type:controller}
devices={nicModel:pv,macAddr:00:1a:4a:16:25:03,linkActive:true,network:ovirtmgmt,filter:vdsm-no-mac-spoofing,specParams:{},deviceId:078ae09a-e595-41c8-9bd0-56be2a245400,address:{bus:0x00, slot:0x03, domain:0x0000, type:pci, function:0x0},device:bridge,type:interface}
devices={device:console,specParams:{},type:console,deviceId:ccf5c63a-9ea2-417d-aff9-c9703320dc11,alias:console0}
devices={device:vga,alias:video0,type:video}
vmName=HostedEngine
spiceSecureChannels=smain,sdisplay,sinputs,scursor,splayback,srecord,ssmartcard,susbredir
smp=2
maxVCpus=4
cpuType=SandyBridge
emulatedMachine=rhel6.5.0
devices={device:virtio,specParams:{source:random},model:virtio,type:rng}


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