Bug 680168

Summary: VDSM - createVG does not refresh storage device before trying to use it
Product: Red Hat Enterprise Linux 5 Reporter: Max Benenson <mbenenso>
Component: vdsm22Assignee: Saggi Mizrahi <smizrahi>
Status: CLOSED NOTABUG QA Contact: yeylon <yeylon>
Severity: low Docs Contact:
Priority: medium    
Version: 5.6CC: abaron, bazulay, iheim, srevivo, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-24 19:56:48 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
vdsm log none

Description Max Benenson 2011-02-24 14:23:49 UTC
Created attachment 480769 [details]
vdsm log

Description of problem:
When creating a LUN on the iscsi storage and then performing send targets on the host it requires to run 'vdsClient -s 0 getDeviceList' in order to be able to create storage domain based on the device. 

Version-Release number of selected component (if applicable):
vdsm22-4.5-63.20.el5_6

How reproducible:
Always using REST API 'createStorageDomain'

Steps to Reproduce:
1. create LUN on storage server
2. perform send targets on the host
3. using REST API try to create storage domain
  
Actual results:
The create storage domain action roll-backs and the vdsm log syas: 'No physical volume label read from /dev/mapper/18dbe63c6-3864-43ca\n  Failed to read physical volume'

Expected results:
Should create storage domain iscsi

Additional info:
create domain request:

POST http://indigo-vdcb.qa.lab.tlv.redhat.com/rhevm-api/storagedomains
<storage_domain>
     <name>ISCSIDataDomain</name>
     <type>DATA</type>
     <storage>
         <type>ISCSI</type>
         <logical_unit id='18dbe63c6-3864-43ca'>
             <address>10.35.64.30</address>
             <target>my_target</target>
             <port>3260</port>
         </logical_unit>
     </storage>
     <host>
         <name>brown-vdsc.qa.lab.tlv.redhat.com</name>
     </host>
 </storage_domain>

Comment 1 Ayal Baron 2011-02-24 19:56:48 UTC
discoverSendTargets does not get a list of LUNs!
It is not intended to refresh the storage by any means.
This is working as designed.