Change in ovirt-engine[master]: core: maxVCpus revised

ofrenkel at redhat.com ofrenkel at redhat.com
Thu Aug 14 07:35:29 UTC 2014


Omer Frenkel has submitted this change and it was merged.

Change subject: core: maxVCpus revised
......................................................................


core: maxVCpus revised

we need to make sure must be result of cores * socket otherwise the VM
will fail to load by libvirt

for:
c  = 12 // cores
maxSocket = 16 //config
maxVCpu = 160 // config

maxVCpu = c * (min(maxSockets, maxVCpu / c)) // 12 * 13 = 156

prior to this fix vdsm would end up with

<vcpu current=12>160</vcpu>
<topology cores=12 socket=13 thread=1>

and 160 couldn't be fulfilled by cores * socket, 156

Change-Id: I2880c0a1523bf5c4a6b5144860efafb6df82deb4
Bug-Url: https://bugzilla.redhat.com/1070890
Signed-off-by: Roy Golan <rgolan at redhat.com>
---
M backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VmInfoBuilderBase.java
1 file changed, 12 insertions(+), 8 deletions(-)

Approvals:
  Roy Golan: Verified
  Omer Frenkel: Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/31439
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2880c0a1523bf5c4a6b5144860efafb6df82deb4
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Michal Skrivanek <mskrivan at redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list