Description of problem: After cpu unplug, run cpu hot plug do not effect the number on cpus, seen in the VM. The hotplug was done both via UI and REST, and in response there was an event that VM was updated. lscpu in the VM showed the cpu number did not increase, as expected. The VM is installed with rhel6.5 (no guest agent installed). For example, move from 4 to 2 cpus, then try to move from 2 to 4 cpus. Version-Release number of selected component (if applicable): av2
In UI, after cpu hotplug (2->4), the number of cpus is updated in the edit VM window, as expected (to 4).
engine.log: 2014-03-17 13:49:40,956 INFO [org.ovirt.engine.core.bll.HotSetNumberOfCpusCommand] (ajp-/127.0.0.1:8702-9) [1fc1a565] Running command: HotSetNumberOfCpusCommand internal: true. Entities affected : ID: 45ea6762-d757-4878-a582-0fed0134da21 Type: VM 2014-03-17 13:49:40,958 INFO [org.ovirt.engine.core.vdsbroker.SetNumberOfCpusVDSCommand] (ajp-/127.0.0.1:8702-9) [1fc1a565] START, SetNumberOfCpusVDSCommand(HostName = lilach-vdsb.tlv.redhat.com, HostId = e265dd29-6f62-4bb2-8474-168e4950f3db, vmId=45ea6762-d757-4878-a582-0fed0134da21), log id: 7d9c017f 2014-03-17 13:49:40,976 ERROR [org.ovirt.engine.core.vdsbroker.SetNumberOfCpusVDSCommand] (ajp-/127.0.0.1:8702-9) [1fc1a565] Command SetNumberOfCpusVDSCommand(HostName = lilach-vdsb.tlv.redhat.com, HostId = e265dd29-6f62-4bb2-8474-168e4950f3db, vmId=45ea6762-d757-4878-a582-0fed0134da21) execution failed. Exception: VDSErrorException: VDSGenericException: VDSErrorException: Failed in vdscommand to SetNumberOfCpusVDS, error = Operation not supported: qemu didn't unplug the vCPUs properly 2014-03-17 13:49:40,976 INFO [org.ovirt.engine.core.vdsbroker.SetNumberOfCpusVDSCommand] (ajp-/127.0.0.1:8702-9) [1fc1a565] FINISH, SetNumberOfCpusVDSCommand, log id: 7d9c017f 2014-03-17 13:49:40,987 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp-/127.0.0.1:8702-9) [1fc1a565] Correlation ID: 1fc1a565, Call Stack: null, Custom Event ID: -1, Message: Faild to hot set number of CPUS to VM rhel. Underlying error message: Operation not supported: qemu didn't unplug the vCPUs properly 2014-03-17 13:49:41,008 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp-/127.0.0.1:8702-9) [1fc1a565] Correlation ID: 289b45fd, Job ID: f19a5097-f49c-4522-bbe8-7749925f1140, Call Stack: null, Custom Event ID: -1, Message: VM rhel configuration was updated by admin.
going to block unplug CPU till libvirt fixes Bug 1017858
*** Bug 1077539 has been marked as a duplicate of this bug. ***
roy - review 25898 is for this bug (then please merge&backport) or tracing separately (where?) otherwise the block unplug is merged
25898 is for allowing to overcommit the number of cpus. I don't think its tracked by a bz. I'll open one if needed.
Verified on av9.1. cpu Hot unplug trial fail on event: "Faild to hot set number of CPUS to VM rhel6. Underlying error message: Hot un-plugging a CPU is not supported for cluster version 3.4 and architecture x86_64." Also on a rhel6.5 guest, verify using lscpu that cpu number not changed, following the unplug trial.
Closing as part of 3.4.0