Red Hat Bugzilla – Bug 800794
VM & Templates are not removed with domain destroyed
Last modified: 2016-02-10 11:49:24 EST
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):
Steps to Reproduce:
1. Create some VMs and some templates on SD
2. Destroy the SD
VMs & Templates are not removed
VMs & Templates are removed
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.