Bug 1452031

Summary: [engine-backend] Shared disk that is marked as bootable for one VM cause the disks of the other VM it is attached to be blocked from being bootable
Product: [oVirt] ovirt-engine Reporter: Elad <ebenahar>
Component: Backend.CoreAssignee: Pavel Bar <pbar>
Status: CLOSED CURRENTRELEASE QA Contact: Evelina Shames <eshames>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.0CC: aefrat, bugs, tnisan
Target Milestone: ovirt-4.3.4Flags: rule-engine: ovirt-4.3+
Target Release: 4.3.4   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.3.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-11 06:25:43 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 none

Description Elad 2017-05-18 08:10:04 UTC
Created attachment 1279896 [details]
engine.log

Description of problem:
Shared disk that is marked as bootable for one VM cause the disks of the other VM it is attached to be blocked from being bootable

Version-Release number of selected component (if applicable):
ovirt-engine-4.2.0-0.0.master.20170517192237.git1e57f0c.el7.centos.noarch

How reproducible:
Always

Steps to Reproduce:
1) Have 2 VMs with a disk attached to each (not bootable)
2) Create and attach a shared disk to both VMs. Attach it as bootable to one of them 
3) Try to change to bootable the disk of the VM that shared disk is not marked as bootable for


Actual results:
Cannot change disk to bootable while the shared disk is marked as bootable for a different VM

Expected results:
Should be able to change disk to bootable while a shared disk is marked as bootable for a different VM


Additional info:
engine.log


2017-05-18 11:08:17,511+03 INFO  [org.ovirt.engine.core.bll.storage.disk.UpdateVmDiskCommand] (default task-6) [22e93671-2a37-4a54-b08d-029f6a18a476] Lock freed to object 'EngineLock:{exclusiveLocks='[56d63443-486f-4b9a-999e-320b5e7d3474=<VM_DISK_BOOT, ACTION_TYPE_FAILED_OBJECT_LOCKED>]', sharedLocks='[56d63443-486f-4b9a-999e-320b5e7d3474=<VM, ACTION_TYPE_FAILED_VM_IS_LOCKED>]'}'

Comment 1 Sandro Bonazzola 2019-01-28 09:34:42 UTC
This bug has not been marked as blocker for oVirt 4.3.0.
Since we are releasing it tomorrow, January 29th, this bug has been re-targeted to 4.3.1.

Comment 2 Evelina Shames 2019-05-28 12:16:35 UTC
Verified on: engine 4.3.4.1-0.1.el7

Comment 3 Sandro Bonazzola 2019-06-11 06:25:43 UTC
This bugzilla is included in oVirt 4.3.4 release, published on June 11th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.4 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.