Bug 770282

Summary: [ovirt] [engine-core] LUNS table doesn't get cleaned in case createStoragePool is rolled-back
Product: [Retired] oVirt Reporter: Haim <hateya>
Component: ovirt-engine-coreAssignee: lpeer <lpeer>
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, acathrow, amureini, iheim, mgoldboi, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.3.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-12 07:33:42 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
engine log. none

Description Haim 2011-12-25 15:20:14 UTC
Description of problem:

luns table remain with lun information in case createStoragePool is rolled-back after createStorageDomain. 

implications: 

- when logged in again to this target, lun doesn't appear in GUI and user can't use it unless it runs an sql statement that manually deletes lun from luns table.

repro:

- createStorageDomain (iscsi) 
- createStoragePool (restart vdsm once command is initiated)
- vdsm is restated 
- createStoragePool gets roll-backed 
- storage domain is missing from GUI 
- try to create new storage domain 
- discover server that expose lun used to create storage domain from previous step
- login to that lun 
- lun is missing from GUI 

just to show its not host problem; running multipath -r or pvscan shows the lun. 

running sql statement shows that lun still exists in luns table

iAJaDA-yAf2-YEQs-1LVS-obt9-d3D1-XaVQnh | 36090a068a0744b3c07efb43c5b25dda0 | 4jl37C-HqIX-3gf2-vTdp-3cGH-HYNn-R3i9oX | SEQLOGIC_100E-00_6090A068A0744B3C07EFB43C5B25DDA0 |           0 | EQLOGIC   | 100E-00    |          75

git log: 4aedff6b61f714f8e24ccb9efff052e347d8de3f

Comment 1 Haim 2011-12-25 15:21:16 UTC
Created attachment 549485 [details]
engine log.

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