Bug 835025 - [Storage] VM with shared disk can not be deleted. Stays in image lock forever.
Summary: [Storage] VM with shared disk can not be deleted. Stays in image lock forever.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.1.0
Assignee: Tal Nisan
QA Contact: Leonid Natapov
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-25 09:53 UTC by Leonid Natapov
Modified: 2016-02-10 16:53 UTC (History)
9 users (show)

Fixed In Version: si11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 19:59:13 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
engine log (47.84 KB, application/octet-stream)
2012-07-03 08:21 UTC, Leonid Natapov
no flags Details

Description Leonid Natapov 2012-06-25 09:53:08 UTC
VM with shared disk can not be deleted. Stays in image lock forever.
The problem is in RemoveAllVmImagesCommand.

 could not find vds that is spm and non-operational.
2012-06-25 12:36:46,198 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.IsValidVDSCommand] (ajp--0.0.0.0-8009-22) START, IsValidVDSCommand(storagePoolId = 3792fdc6-49cb-49e4-ae71-7bbd0945428c, ignoreFailoverLimit = false, compatabilityVersion = null), log id: 303a2dc4
2012-06-25 12:36:46,200 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.IsValidVDSCommand] (ajp--0.0.0.0-8009-22) FINISH, IsValidVDSCommand, return: true, log id: 303a2dc4
2012-06-25 12:36:46,246 INFO  [org.ovirt.engine.core.bll.RemoveVmCommand] (pool-3-thread-50) [6759157b] Lock Acquired to object EngineLock [exclusiveLocks= key: 774045af-6094-4982-be28-61d05f7aaf18 value: VM
, sharedLocks= ]
2012-06-25 12:36:46,316 INFO  [org.ovirt.engine.core.bll.RemoveVmCommand] (pool-3-thread-50) [6759157b] Running command: RemoveVmCommand internal: false. Entities affected :  ID: 774045af-6094-4982-be28-61d05f7aaf18 Type: VM
2012-06-25 12:36:46,332 INFO  [org.ovirt.engine.core.vdsbroker.SetVmStatusVDSCommand] (pool-3-thread-50) [6759157b] START, SetVmStatusVDSCommand(vmId = 774045af-6094-4982-be28-61d05f7aaf18, status = ImageLocked), log id: 730d63cc
2012-06-25 12:36:46,339 INFO  [org.ovirt.engine.core.vdsbroker.SetVmStatusVDSCommand] (pool-3-thread-50) [6759157b] FINISH, SetVmStatusVDSCommand, log id: 730d63cc
2012-06-25 12:36:46,376 INFO  [org.ovirt.engine.core.bll.RemoveVmCommand] (pool-3-thread-50) [6759157b] Lock freed to object EngineLock [exclusiveLocks= key: 774045af-6094-4982-be28-61d05f7aaf18 value: VM
, sharedLocks= ]
2012-06-25 12:36:46,383 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.RemoveVMVDSCommand] (pool-3-thread-50) [6759157b] START, RemoveVMVDSCommand(storagePoolId = 3792fdc6-49cb-49e4-ae71-7bbd0945428c, ignoreFailoverLimit = false, compatabilityVersion = null, storageDomainId = 00000000-0000-0000-0000-000000000000, vmGuid = 774045af-6094-4982-be28-61d05f7aaf18), log id: 778aad5b
2012-06-25 12:36:46,418 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.RemoveVMVDSCommand] (pool-3-thread-50) [6759157b] FINISH, RemoveVMVDSCommand, log id: 778aad5b
2012-06-25 12:36:46,423 INFO  [org.ovirt.engine.core.bll.RemoveAllVmImagesCommand] (pool-3-thread-50) [317b6ead] Running command: RemoveAllVmImagesCommand internal: true. Entities affected :  ID: 774045af-6094-4982-be28-61d05f7aaf18 Type: VM

Comment 2 Leonid Natapov 2012-07-03 08:20:41 UTC
Before opening this bug I talked to Kublin and showed him the scenario and the case.He opened a code and found a problem and asked to add this specific part of the log in the bug. In any case I will attach the complete log.

Comment 3 Leonid Natapov 2012-07-03 08:21:58 UTC
Created attachment 595901 [details]
engine log

Comment 4 Leonid Natapov 2012-07-22 11:30:08 UTC
si11. VM with shared disk can be deleted. fixed.


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