Bug 795701

Summary: vdsm: failed to import an iso storage domain
Product: [Retired] oVirt Reporter: Avi Tal <atal>
Component: vdsmAssignee: Saggi Mizrahi <smizrahi>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, acathrow, bazulay, danken, hateya, iheim, masayag, oramraz, srevivo, ykaul
Target Milestone: ---Keywords: Regression, TestBlocker
Target Release: 3.1   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-09 08:01:39 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
vdsm log none

Description Avi Tal 2012-02-21 10:26:45 UTC
Description of problem: (This is a restapi_jboss7 job on jenkins upstream)
Trying to import ISO storage domain via rest api.

POST :
http://localhost:8080/api/storagedomains body:<storage_domain><type>iso</type><storage><type>nfs</type><address>.......</address><path>.....</path></storage><host><name>.......</name></host></storage_domain>
response:
<fault>
    <reason>Incomplete parameters</reason>
    <detail>StorageDomain [name] required for add</detail>
</fault>

engine:
[org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetStorageDomainsListVDSCommand] (http--0.0.0.0-8080-2) FINISH, HSMGetStorageDomain
sListVDSCommand, return: [], log id: 771a30a8


vdsClient:
# vdsClient  0 getStorageDomainsList 00000000-0000-0000-0000-000000000000 2 1 blabla.bla.bla.bla.redhat.com:/volumes/bla/ci-iso5
2c61eac5-1885-41f1-9280-57c33308c047
e4dc274b-7e11-4034-b1e8-5652e2659492
9c37e757-60d8-4e85-a560-9c611a300459


which means engine doesn't get that list of storage domain on the same iso domain

Comment 1 Avi Tal 2012-02-21 10:27:19 UTC
Created attachment 564643 [details]
engine log

Comment 2 Avi Tal 2012-02-21 10:28:12 UTC
Created attachment 564644 [details]
vdsm log

Comment 3 Moti Asayag 2012-02-21 10:57:26 UTC
In order to reproduce, the latest upstream VDSM version installed (vdsm-4.9.4-0.74.gita001141.fc16.x86_64) on a fedora host.

Running from command line returns a single storage domain id:

 vdsClient  0 getStorageDomainsList 00000000-0000-0000-0000-000000000000 2 1 host-address:/volumes/base/shared_iso_domain
ab800c64-3caa-4c28-b61f-c3073d487c50

however, the response to engine-code returned an empty list of ids.

Comment 4 Dan Kenigsberg 2012-02-21 11:57:28 UTC
Engine sends
getStorageDomainsList(spUUID='00000000-0000-0000-0000-000000000000', domainClass=2, storageType=1, remotePath='shafan.eng.lab.tlv.redhat.com:/volumes/shafan/ci-shared-iso', options=None)
which is probably broken due to a recent upstream

commit fe22ef5fe9893bbf7ba02c4fc2e83e4f6c2197dc
Author: Saggi Mizrahi <smizrahi>
Date:   Fri Jan 20 10:23:31 2012 -0500

    Fix remotePath comparison in getStorageDomainsList

Comment 5 Dan Kenigsberg 2012-02-21 12:37:39 UTC
http://gerrit.ovirt.org/#change,2142

Comment 6 Itamar Heim 2012-08-09 08:01:39 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/

Comment 7 Itamar Heim 2012-08-09 08:03:17 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/