Created attachment 944163[details]
screenshot and logs from host and engine
Description of problem:
When detach storage domain fails (due to https://bugzilla.redhat.com/show_bug.cgi?id=1148499) while forcibly removing a data domain, the failure is not reported in webadmin
Version-Release number of selected component (if applicable):
rhev3.5 vt4
rhevm-3.5.0-0.13.beta.el6ev.noarch
How reproducible:
Always
Steps to Reproduce:
1. Create a local DC with 2 local data domains
2. Put the non-master domain in maintenance
3. Destroy the domain
Actual results:
Detachment from the pool fails in vdsm:
Traceback (most recent call last):
File "/usr/share/vdsm/storage/task.py", line 873, in _run
return fn(*args, **kargs)
File "/usr/share/vdsm/logUtils.py", line 45, in wrapper
res = f(*args, **kwargs)
File "/usr/share/vdsm/storage/hsm.py", line 817, in detachStorageDomain
pool.detachSD(sdUUID)
File "/usr/share/vdsm/storage/securable.py", line 77, in wrapper
return method(self, *args, **kwargs)
File "/usr/share/vdsm/storage/sp.py", line 956, in detachSD
dom = sdCache.produce(sdUUID)
File "/usr/share/vdsm/storage/sdc.py", line 98, in produce
domain.getRealDomain()
File "/usr/share/vdsm/storage/sdc.py", line 52, in getRealDomain
return self._cache._realProduce(self._sdUUID)
File "/usr/share/vdsm/storage/sdc.py", line 122, in _realProduce
domain = self._findDomain(sdUUID)
File "/usr/share/vdsm/storage/sdc.py", line 141, in _findDomain
dom = findMethod(sdUUID)
File "/usr/share/vdsm/storage/localFsSD.py", line 119, in findDomain
return LocalFsStorageDomain(LocalFsStorageDomain.findDomainPath(sdUUID))
File "/usr/share/vdsm/storage/localFsSD.py", line 112, in findDomainPath
raise se.StorageDomainDoesNotExist(sdUUID)
StorageDomainDoesNotExist: Storage domain does not exist: (u'18810441-2483-4b59-a088-d4b51c35cbe4',)
As reported in engine.log:
2014-10-06 10:43:08,395 ERROR [org.ovirt.engine.core.vdsbroker.irsbroker.DetachStorageDomainVDSCommand] (org.ovirt.thread.pool-7-thread-26) [271df37] Could not force detach domain 18810441-2483-4b59-a088-d4b51c35cbe4 on pool 2dc4ac87-8104-45c9-8bbd-7fd5c5672388. error: org.ovirt.engine.core.vdsbroker.irsbroker.IRSErrorException: IRSGenericException: IRSErrorException: Failed to DetachStorageDomainVDS, error = Storage domain does not exist: (u'18810441-2483-4b59-a088-d4b51c35cbe4',), code = 358
The failure is not reported in the audit log
Expected results:
The failure should be reported in the audit log
Additional info:
screenshot and logs from host and engine