Bug 772623

Summary: RFE: [ovirt-engine-core] Removing a storage domain should not ask a user to select a specific host.
Product: [Retired] oVirt Reporter: Kiril Nesenko <knesenko>
Component: ovirt-engine-coreAssignee: lpeer <lpeer>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, acathrow, amureini, dfediuck, iheim, lpeer, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---Keywords: FutureFeature
Target Release: 3.3.4   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-12 07:33:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
logs none

Description Kiril Nesenko 2012-01-09 13:17:41 UTC
Created attachment 551562 [details]
logs

Description of problem:
I have FC DC. I have removed the DC and tried to remove the storage domain with another host (host without FC). It fails.
It should be able to remove the storage domain only with a host that support that specific storage type. 

2012-01-09 15:03:38,524 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.FormatStorageDomainVDSCommand] (pool-11-thread-7) START, FormatStorageDomainVDSCommand(vdsId = 7b6aeff6-3ac0-11e1-a5b0-001a4a16970d, storageDomainId=c0c1f723-e003-41cb-85b7-646377e5c3e5), log id: 275bfee7
2012-01-09 15:03:38,622 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (pool-11-thread-7) Failed in FormatStorageDomainVDS method
2012-01-09 15:03:38,623 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (pool-11-thread-7) Error code StorageDomainFormatError and error message VDSGenericException: VDSErrorException: Failed to FormatStorageDomainVDS, error = Error formating a storage domain: ('c0c1f723-e003-41cb-85b7-646377e5c3e5',)
2012-01-09 15:03:38,623 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (pool-11-thread-7) Command org.ovirt.engine.core.vdsbroker.vdsbroker.FormatStorageDomainVDSCommand return value 
 Class Name: org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc
mStatus                       Class Name: org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc
mCode                         352
mMessage                      Error formating a storage domain: ('c0c1f723-e003-41cb-85b7-646377e5c3e5',)


Version-Release number of selected component (if applicable):
ic153.3

How reproducible:
Always

Steps to Reproduce:
1. Make sure you have FC DC.
2. Remove the DC
3. Go to Storage tab and try to remove the fc data with host that not support FC
  
Actual results:
Failing to remove the storage domain

Expected results:
Only hosts that support that specific storage type should be available in UI.


Additional info:

Comment 1 Kiril Nesenko 2012-01-09 13:42:57 UTC
When removing a storage domain, user should not be able to select a host. The domain just should be removed with a host that support that specific storage type.

Comment 2 Itamar Heim 2012-01-14 12:00:17 UTC
this is easy if there is a host in the DC. but it could be hosts lost communication to this SD, or there is no host in its DC that can do it.
so for the default flow this should be trivial, but not for corner cases

Comment 3 Itamar Heim 2012-12-12 07:33:13 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.