Bug 766570

Summary: [Text] Storage: Can't remove NFS pool with all domains deactivated: "domain does not exist"
Product: Red Hat Enterprise Virtualization Manager Reporter: Daniel Paikov <dpaikov>
Component: vdsmAssignee: Tal Nisan <tnisan>
Status: CLOSED WONTFIX QA Contact: Aharon Canan <acanan>
Severity: low Docs Contact:
Priority: medium    
Version: unspecifiedCC: abaron, acathrow, amureini, bazulay, iheim, jkt, lpeer, scohen, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.4.0Flags: scohen: needinfo+
Hardware: Unspecified   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-16 09:48:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
vdsm.log none

Description Daniel Paikov 2011-12-12 11:07:05 UTC
* Pool with several domains.
* Deactivate all domains, including master.
* Try to remove DC.
* Failure on VDSM side because it can't find some of the domains, even though they all exist.

Comment 3 Daniel Paikov 2011-12-12 11:54:05 UTC
Created attachment 545688 [details]
vdsm.log

Woops. Attach didn't work for some reason the first time.

Comment 4 Dan Kenigsberg 2011-12-12 12:08:57 UTC
Thread-46675::ERROR::2011-12-12 13:03:56,509::task::868::TaskManager.Task::(_setError) Unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/task.py", line 876, in _run
    return fn(*args, **kargs)
  File "/usr/share/vdsm/storage/hsm.py", line 621, in public_destroyStoragePool
    self.spm.detachAllDomains(pool)
  File "/usr/share/vdsm/storage/spm.py", line 115, in run
    return self.func(*args, **kwargs)
  File "/usr/share/vdsm/storage/spm.py", line 1050, in detachAllDomains
    pool.detachSD(sdUUID=sdUUID, msdUUID=sd.BLANK_UUID, masterVersion=0)
  File "/usr/share/vdsm/storage/sp.py", line 703, in detachSD
    dom = SDF.produce(sdUUID)
  File "/usr/share/vdsm/storage/sdf.py", line 30, in produce
    newSD = cls.__sdc.lookup(sdUUID)
  File "/usr/share/vdsm/storage/sdc.py", line 77, in lookup
    dom = self._findDomain(sdUUID)
  File "/usr/share/vdsm/storage/sdc.py", line 101, in _findDomain
    raise se.StorageDomainDoesNotExist(sdUUID)
StorageDomainDoesNotExist: Storage domain does not exist: ('ab800c64-3caa-4c28-b61f-c3073d487c50',)

It is not surprising that you are unable to perform a pool operation without an active master domain. The error message could have been prettier, though.

Comment 5 RHEL Program Management 2012-05-04 04:04:52 UTC
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 7 Ayal Baron 2012-08-15 07:29:45 UTC
Sounds to me like the issue is that engine disconnected the host from the storage and it cannot reach any of the domains.
If this is correct then this is an engine bug.

Comment 8 RHEL Program Management 2012-12-14 06:56:08 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.