Bug 1368942 - Cpu hotplug is failing on a vm with 3.6 cluster compatibility version after cluster upgrade to 4.0
Summary: Cpu hotplug is failing on a vm with 3.6 cluster compatibility version after c...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 4.0.2.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Michal Skrivanek
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-22 08:12 UTC by sefi litmanovich
Modified: 2016-08-22 10:50 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-08-22 10:50:55 UTC
oVirt Team: Virt
Embargoed:
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
engine log (460.45 KB, application/x-gzip)
2016-08-22 08:12 UTC, sefi litmanovich
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1357513 0 high CLOSED [RFE] Support per-VM override for cluster compatibility level 2021-02-22 00:41:40 UTC

Internal Links: 1357513

Description sefi litmanovich 2016-08-22 08:12:17 UTC
Created attachment 1192813 [details]
engine log

Description of problem:

Setup:
rhevm-4.0.2.7-0.1.el7ev.noarch
DC-Cluster 3.6 with 2 hosts with: vdsm-4.17.33-1.
Created a rhel-7.2 vm set to custom cluster compatibility 3.6, vm has 1 cpu.
Upgraded the hosts to 4.0: vdsm-4.18.11-1.el7ev.x86_64 , one by one (migrating the vm between them).
Finally upgraded the cluster and dc to 4.0 successfully.
After upgrade vm is marked to reboot and still has custom cluster compatibility 3.6.
Trying to hotplug another cpu (setting sockets to 2) fails with an error:
"Failed to hot set number of CPUS to VM test-vm-clone-2. Underlying error message: Hot plugging a CPU is not supported for cluster version 3.6 and architecture x86_64"

From engine.log

2016-08-21 18:14:17,988 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-11) [72e82ba8] Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message: Failed to hot set number of CPUS to VM test-vm-clone-2. Underlying error message: Hot plugging a CPU is not supported for cluster version 3.6 and architecture x86_64.
2016-08-21 18:14:18,020 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-11) [72e82ba8] Correlation ID: 299904bb, Job ID: 39186ef5-a619-422e-94dd-b74981887871, Call Stack: null, Custom Event ID: -1, Message: VM test-vm-clone-2 configuration was updated by admin@internal-authz.
2016-08-21 18:14:18,025 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-11) [72e82ba8] Lock freed to object 'EngineLock:{exclusiveLocks='[test-vm-clone-2=<VM_NAME, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]', sharedLocks='[fc68f70c-792b-4006-9d64-8887fd716036=<VM, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]'}'

Version-Release number of selected component (if applicable):
rhevm-4.0.2.7-0.1.el7ev.noarch

How reproducible:
re produced with several vms.

Steps to Reproduce:
as mentioned above.

Actual results:
Fails to add cpu to vm.

Expected results:
cpu is added to vm instantly.

Additional info:

Comment 1 sefi litmanovich 2016-08-22 10:50:55 UTC
Made a mistake, did not realize that by default on rhevm-4.0 cpu hot plug is turned off for 3.6 compatibility with x86_64.
After setting it to true via engine-config and re starting the vm with 3.6 cluster compatibility version, cpu hot plug worked.


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