Bug 795701 - vdsm: failed to import an iso storage domain
Summary: vdsm: failed to import an iso storage domain
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
: 3.1
Assignee: Saggi Mizrahi
QA Contact:
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-21 10:26 UTC by Avi Tal
Modified: 2016-04-22 04:59 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-09 08:01:39 UTC
oVirt Team: Storage


Attachments (Terms of Use)
engine log (70.09 KB, application/x-compressed-tar)
2012-02-21 10:27 UTC, Avi Tal
no flags Details
vdsm log (623.22 KB, application/x-compressed-tar)
2012-02-21 10:28 UTC, Avi Tal
no flags Details

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/


Note You need to log in before you can comment on or make changes to this bug.