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

Bug 1050840

Summary: [engine-backend] [RO disks] cannot change unplugged disk r/o status while VM is running
Product: [Retired] oVirt Reporter: Elad <ebenahar>
Component: ovirt-engine-coreAssignee: Sergey Gotliv <sgotliv>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.4CC: acathrow, amureini, dron, gklein, iheim, knesenko, lpeer, mlipchuk, Rhev-m-bugs, scohen, sgotliv, yeylon
Target Milestone: ---   
Target Release: 3.4.1   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-08 13:37:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log and screenshot none

Description Elad 2014-01-09 08:32:25 UTC
Created attachment 847526 [details]
engine.log and screenshot

Description of problem:
I tried to change VM permissions on one of its attached disks, while the disk was unplugged and the VM was running. The operation was blocked by engine with a CanDoAction failure.

Version-Release number of selected component (if applicable):
ovirt-engine-3.4.0-0.2.master.20140106180914.el6.noarch

How reproducible:
Always

Steps to Reproduce:
Via UI:
1. Have a VM with plugged disk
2. Unplug the disk, edit it and check the 'Read-only' check-box 


Actual results:
Cannot change VM permissions on the disk while VM is running, although disk is unplugged:

2014-01-09 10:23:13,765 WARN  [org.ovirt.engine.core.bll.UpdateVmDiskCommand] (ajp--127.0.0.1-8702-11) [62dfddd] CanDoAction of action UpdateVmDisk failed. Reasons:VAR__ACTION__UPDATE,VAR__TYPE__VM_DISK,ACTION_TYPE_FAILED_VM_IS_NOT_DOWN


Expected results:
Disk should be editable, so it would be possible to change the VM permissions on it while the disk is unplugged and the VM is running.

Additional info: engine.log and screenshot

Comment 1 Sergey Gotliv 2014-02-18 12:34:37 UTC
*** Bug 1057680 has been marked as a duplicate of this bug. ***

Comment 2 Allon Mureinik 2014-02-20 13:27:15 UTC
Sergey, the patch in the external tracker is abandoned.
Does http://gerrit.ovirt.org/#/c/24797/ replace it? If so, please update the trackers.

Comment 3 Sandro Bonazzola 2014-03-03 15:24:06 UTC
This is an automated message.

This BZ should be fixed in oVirt 3.4.0 RC repository, assignee please update the status of the bug to ON_QA once you've verified that the change is included in the build.

Comment 4 Allon Mureinik 2014-03-06 15:32:05 UTC
This still needs backporting to ovirt-engine-3.4.
Maor, please handle this.

Comment 6 Sandro Bonazzola 2014-05-08 13:37:00 UTC
This is an automated message

oVirt 3.4.1 has been released:
 * should fix your issue
 * should be available at your local mirror within two days.

If problems still persist, please make note of it in this bug report.