Description of problem: There are two scenarios: 1. Storage domain is not Master - if SD is destroyed and had contained VMs and Templates, only virtual disks are removed from ovirt but VMs and templates themselves are kept in DB. 2. Storage domain is Master - if DC is forcibly removed, there is kept Templates in the cluster and cannot be removed cause there is no DC. Version-Release number of selected component (if applicable): ovirt-engine-backend-3.0.0_0001-3.git4364f1b.fc16.x86_64 How reproducible: Always Steps to Reproduce: 1. Create some VMs and some templates on SD 2. Destroy the SD Actual results: VMs & Templates are not removed Expected results: VMs & Templates are removed Additional info: This is from backend log during destroy action: 2012-03-07 10:43:51,545 INFO [org.ovirt.engine.core.bll.storage.ForceRemoveStorageDomainCommand] (pool-5-thread-47) [7b41470f] Running command: ForceRemoveStorageDomainCommand internal: false. Entities affected : ID: f2f2c6a8-6402-4be4-b072-21a20b6bf0c4 Type: Storage 2012-03-07 10:43:51,547 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.DetachStorageDomainVDSCommand] (pool-5-thread-47) [7b41470f] START, DetachStorageDomainVDSCommand(storagePoolId = 529e3f5c-32c8-416e-9573-2e3d06b44eeb, ignoreFailoverLimit = false, compatabilityVersion = null, storageDomainId = f2f2c6a8-6402-4be4-b072-21a20b6bf0c4, masterDomainId = 00000000-0000-0000-0000-000000000000, masterVersion = -1, force = true), log id: 319ebe83 2012-03-07 10:43:51,570 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.DetachStorageDomainVDSCommand] (pool-5-thread-47) [7b41470f] FINISH, DetachStorageDomainVDSCommand, log id: 319ebe83
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.