Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1095777

Summary: Cannot change VMs from unpinned to pinned while running
Product: Red Hat Enterprise Virtualization Manager Reporter: Jake Hunsaker <jhunsaker>
Component: ovirt-engineAssignee: Dudi Maroshi <dmaroshi>
Status: CLOSED DUPLICATE QA Contact: Nikolai Sednev <nsednev>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: dfediuck, gchaplik, gklein, iheim, jhunsaker, lpeer, mavital, rbalakri, rgolan, Rhev-m-bugs, sherold, yeylon
Target Milestone: ---Keywords: Regression
Target Release: 3.5.2   
Hardware: x86_64   
OS: All   
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-12 12:47:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
PIC1: GUI fields under discussion none

Description Jake Hunsaker 2014-05-08 13:44:42 UTC
In previous versions of RHEV< a guest could be modified from pinned to unpinned while the VM was running - with 3.3, this has changed and the user is now presented with the error message that the VM must be stopped in order to change this configuration.


The expected behavior is that a pinned VM should be able to be edited to be unpinned while running - though an unpinned VM should *not* be able to be pinned while running. 


See BZ 1058384 for history/context.

Comment 2 Nikolai Sednev 2014-09-08 07:00:26 UTC
Hi Jake,
Please provide steps for reproduction of a bug.

Comment 3 Jake Hunsaker 2014-09-29 13:36:54 UTC
Nikolai,


Sorry just saw this. 

Steps:

1. Set VM to a specific host and "Do not allow migration" and pin the CPUs from the edit menu

2. Start the VM

3. With the VM running, try to change "Do not allow migration" to either of the options allowing migration and allow it to run on any host in the cluster.


In 3.3 (and 3.4) the portal presents an error message of:

There was an attempt to change VM values while the VM is not down. Please shut down the VM in order to modify these properties.


In 3.2 the change is allowed and the VM can migrate. The functionality of 3.2 is what is desired here.

Comment 5 Nikolai Sednev 2015-02-03 12:07:48 UTC
For current components at 3.5 engine requires VM to be rebooted for changes to take effect:

"Next Restart Configuration

Some of the changes will be applied only on the vm next start.

Changed fields list
dedicatedVmForVds"

Tested on these components:
sanlock-2.8-1.el6.x86_64
libvirt-client-0.10.2-46.el6_6.2.x86_64
qemu-kvm-rhev-0.12.1.2-2.446.el6.x86_64
mom-0.4.1-4.el6ev.noarch
vdsm-4.16.8.1-6.el6ev.x86_64
rhevm-guest-agent-common-1.0.10-2.el6ev.noarch
rhevm-3.5.0-0.31.el6ev.noarch

Desired functionality of 3.2 had not been met yet.

Comment 7 Dudi Maroshi 2015-02-23 12:34:01 UTC
Created attachment 994362 [details]
PIC1: GUI fields under discussion

Comment 8 Dudi Maroshi 2015-02-23 12:49:10 UTC
Relating to the pic in comment 7.

The relevant field to this bug is "migrationSupport" marked in red rectangle.
The "hostSelection" field marked in green rectangle is not relevant to migration. Because it controls where (on which host) the vm initially starts.

Problem diagnostics:
When  "migrationSupport" field is changed and saved. Its effect is delayed after the vm restarts. This is due to  "migrationSupport" field annotation "@EditableOnVmStatusField".


Solution:
Replace  "migrationSupport" field annotation to normal "@EditableField", allow migration as soon as the vm edit screen is saved to the ovirt engine.

Comment 9 Eyal Edri 2015-02-25 08:43:44 UTC
3.5.1 is already full with bugs (over 80), and since none of these bugs were added as urgent for 3.5.1 release in the tracker bug, moving to 3.5.2

Comment 10 Doron Fediuck 2015-02-25 09:45:27 UTC
(In reply to Dudi Maroshi from comment #8)

> Solution:
> Replace  "migrationSupport" field annotation to normal "@EditableField",
> allow migration as soon as the vm edit screen is saved to the ovirt engine.

Dudi, the issue here is not about changing the code, but on the impact of the behavior change. See bug 1058384 comment 4.

Jake, how is this BZ different than bug 1058384?
If not that we should only keep one and mark this as a duplicate.

Comment 11 Dudi Maroshi 2015-02-25 15:16:50 UTC
(In reply to Doron Fediuck from comment #10)
> (In reply to Dudi Maroshi from comment #8)
> 
> > Solution:
> > Replace  "migrationSupport" field annotation to normal "@EditableField",
> > allow migration as soon as the vm edit screen is saved to the ovirt engine.
> 
> Dudi, the issue here is not about changing the code, but on the impact of
> the behavior change. See bug 1058384 comment 4.
> 
> Jake, how is this BZ different than bug 1058384?
> If not that we should only keep one and mark this as a duplicate.

As I was reading the correspondence about bug 1058384, I understood the following.
1. We the development have no decisive policy about protecting "wise" administrators from doing configuration mistakes (migrating vm with pinned cpu).
2. We need to be cost/effective about how much effort we put on preventive constraints.

I suggest we the development, identify risky/unwise actions. And provide an explanatory warning on the confirmation dialog.

In general power users and administrators (root users) are allowed to destroy their system with power tools. I personally follow Redhat slogan, with great liberty comes great responsibility.

In short, I suggest we provide and log a warning message. If the user unppins a vm with pinned cpus. And allow the user to accept the consequences.

Please comment on my suggestion.

Comment 12 Doron Fediuck 2015-03-12 12:47:55 UTC
Based on comment 10, this is a duplicate issue.
Let's focus all related discussions in a single issue.

*** This bug has been marked as a duplicate of bug 1058384 ***