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

Bug 819285

Summary: RHEVM - Backend: Can't remove unattached disk or template disk
Product: Red Hat Enterprise Virtualization Manager Reporter: Daniel Paikov <dpaikov>
Component: ovirt-engineAssignee: mkublin <mkublin>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: amureini, bazulay, dyasny, hateya, iheim, lnatapov, mkublin, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: SI6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 20:07:49 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 Daniel Paikov 2012-05-06 09:36:46 UTC
Created attachment 582417 [details]
engine.log

When trying to remove a disk that isn't assigned to any VM, the following failure appears: "Error: Cannot remove Virtual Machine Disk. Provided wrong storage domain, which is not related to disk."

2012-05-06 12:23:34,617 INFO  [org.ovirt.engine.core.bll.RemoveDiskCommand] (ajp--0.0.0.0-8009-9) Lock Acquired to object EngineLock [exclusiveLocks= key: DISK value: c7de39a6-cff9-4d84-818d-46eb781b0787
, sharedLocks= ]
2012-05-06 12:23:34,620 WARN  [org.ovirt.engine.core.bll.RemoveDiskCommand] (ajp--0.0.0.0-8009-9) CanDoAction of action RemoveDisk failed. Reasons:VAR__ACTION__REMOVE,VAR__TYPE__VM_DISK,ACTION_TYPE_FAILED_STOARGE_DOMAIN_IS_WRONG

The disk isn't removed but the object remains locked. When trying to remove the same disk again, the following failure appears: "Error: Cannot remove Virtual Machine Disk. Same action in progress."

2012-05-06 12:24:34,684 INFO  [org.ovirt.engine.core.bll.RemoveDiskCommand] (ajp--0.0.0.0-8009-10) Failed to Acquire Lock to object EngineLock [exclusiveLocks= key: DISK value: c7de39a6-cff9-4d84-818d-46eb781b0787
, sharedLocks= ]
2012-05-06 12:24:34,685 WARN  [org.ovirt.engine.core.bll.RemoveDiskCommand] (ajp--0.0.0.0-8009-10) CanDoAction of action RemoveDisk failed. Reasons:VAR__ACTION__REMOVE,VAR__TYPE__VM_DISK,ACTION_TYPE_FAILED_OBJECT_LOCKED

Comment 1 Daniel Paikov 2012-05-06 09:49:34 UTC
Same issue when trying to remove a disk that is part of a template.

Comment 2 mkublin 2012-06-05 12:41:43 UTC
I solve that problem, I can not find a commit for it. Should be solved at a new build si6

Comment 3 mkublin 2012-06-17 12:50:56 UTC
*** Bug 821744 has been marked as a duplicate of this bug. ***

Comment 4 Dafna Ron 2012-06-20 08:30:44 UTC
template disk cannot and should not be removed (gets CanDoAction)

I was able to remove an unattached disk