Bug 867039 - [webadmin] Webadmin allows input of CPU pinning for migratable VMs
Summary: [webadmin] Webadmin allows input of CPU pinning for migratable VMs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-webadmin-portal
Version: 3.1.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
: 3.2.0
Assignee: Gilad Chaplik
QA Contact: Ido Begun
URL:
Whiteboard: sla
: 868197 (view as bug list)
Depends On:
Blocks: 915537 917401
TreeView+ depends on / blocked
 
Reported: 2012-10-16 15:25 UTC by Ido Begun
Modified: 2016-02-10 20:13 UTC (History)
11 users (show)

Fixed In Version: sf9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: SLA
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 9664 0 None None None Never
oVirt gerrit 11972 0 None None None Never

Description Ido Begun 2012-10-16 15:25:04 UTC
Description of problem:
Currently webadmin allows input of CPU pinning topology on migratable VMs, even though backend ignores the pinning info.
CPU pinning topology field should be grayed out if VM is migratable.


Version-Release number of selected component (if applicable):
rhevm-3.1.0-20.el6ev

How reproducible:
100%

Steps to Reproduce:
Create a VM without checking "Run VM on the selected host (no migration allowed)"
  
Actual results:
Webadmin allows input of CPU pinning info

Expected results:
Webadmin should not allow input of CPU pinning info

Additional info:

Comment 1 Simon Grinberg 2012-10-16 17:48:17 UTC
As far as I recall the agreement was that we do not force non-migrate on such a VM but rather allow it.

From the feature page:
"Live migration may fail, if destination host cannot support the relevant pinning request. "

http://wiki.ovirt.org/wiki/Features/Design/cpu-pinning

If the backend ignores the pining this is the real bug  - is this the case?
If so please change summary accordingly, otherwise please close as not a bug.

Comment 2 Ido Begun 2012-10-18 12:50:25 UTC
The feature page refers only to upstream. According to Doron, migration is disabled for migratable VM's on downstream.

Comment 3 Doron Fediuck 2012-10-21 15:30:00 UTC
UI should enable or disable this selection based on CpuPinningEnabled configuration value, which has to be true in the first place.
Next, CpuPinMigrationEnabled configuration value should be set to True to enable pinning. Otherwise pinning text box should be disabled.

Another valid combination for the pinning text box to be enabled is CpuPinMigrationEnabled set to false, and one of the pin-to-host radio buttons is checked.

Comment 4 Gilad Chaplik 2012-12-23 13:12:08 UTC
sent to gerrit (http://gerrit.ovirt.org/#/c/9664/)

Comment 10 Doron Fediuck 2013-01-20 12:51:22 UTC
Testing should be done to verify 'CPU Pinning topology' accepts input (editable) only for non-migratable VMs.
These are the conditions to create non-migratable VMs and allow pinning:

CpuPinningEnabled configuration value, which has to be true in the first place.
Next, CpuPinMigrationEnabled configuration value should be set to True to enable pinning. Otherwise pinning text box should be disabled.

Another valid combination for the pinning text box to be enabled is CpuPinMigrationEnabled set to false, and one of the pin-to-host radio buttons is checked.

Comment 11 Ido Begun 2013-01-29 09:59:50 UTC
(In reply to comment #10)
> Testing should be done to verify 'CPU Pinning topology' accepts input
> (editable) only for non-migratable VMs.
> These are the conditions to create non-migratable VMs and allow pinning:
> 
> CpuPinningEnabled configuration value, which has to be true in the first
> place.
> Next, CpuPinMigrationEnabled configuration value should be set to True to
> enable pinning. Otherwise pinning text box should be disabled.
> 
> Another valid combination for the pinning text box to be enabled is
> CpuPinMigrationEnabled set to false, and one of the pin-to-host radio
> buttons is checked.

Do we allow a VM with 'Allow VM migration only upon Administrator specific request' checked to be CPU pinned? or only when 'Run VM on the selected host' is checked?

Either way, 'CPU Pinning topology' is editable when the 'specific' host radio button is checked, even if none of the boxes mentioned above are checked (i.e. VM is migratable) (tested on SF4).

Comment 12 Laszlo Hornyak 2013-02-27 08:35:46 UTC
*** Bug 868197 has been marked as a duplicate of this bug. ***

Comment 13 Ido Begun 2013-03-03 16:15:36 UTC
OK - SF9

The 'CPU Pinning topology' is no longer editable when when 'Run VM on the selected host' is not checked.

Comment 14 Itamar Heim 2013-06-11 09:23:52 UTC
3.2 has been released

Comment 15 Itamar Heim 2013-06-11 09:45:00 UTC
3.2 has been released


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