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

Bug 1149598

Summary: [engine-webadmin] A failure in DetachStorageDomain, while force removing a domain, is not reported in audit log
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: ovirt-engine-webadmin-portalAssignee: Vered Volansky <vered>
Status: CLOSED WORKSFORME QA Contact: Aharon Canan <acanan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: amureini, ecohen, gklein, iheim, lsurette, rbalakri, Rhev-m-bugs, scohen, tnisan, yeylon
Target Milestone: ---Flags: scohen: Triaged+
Target Release: 3.5.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-08 17:19:39 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
screenshot and logs from host and engine none

Description Elad 2014-10-06 07:52:49 UTC
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

Comment 1 Vered Volansky 2014-11-08 17:19:39 UTC
This flow should result in success, and since bz1149598 is fixed, cannot be reproduced.
Closing.