Bug 1349517 - Listing host storages on 4.0 using APIv3 causes internal error
Summary: Listing host storages on 4.0 using APIv3 causes internal error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ovirt-4.0.1
: 4.0.1.1
Assignee: Juan Hernández
QA Contact: Petr Kubica
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-23 15:06 UTC by Vaclav Kondula
Modified: 2016-08-04 13:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-04 13:30:58 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.0.z+
rule-engine: blocker+
rule-engine: planning_ack+
juan.hernandez: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 59719 0 master MERGED restapi: Add V3 adapter for host storage 2016-06-27 09:55:58 UTC
oVirt gerrit 59807 0 ovirt-engine-4.0 MERGED restapi: Add V3 adapter for host storage 2016-06-27 10:19:19 UTC

Description Vaclav Kondula 2016-06-23 15:06:56 UTC
Description of problem:
Trying to access /ovirt-engine/api/v3/hosts/ed1bf140-d7ca-4250-9aa1-02cf54796f1c/storage on 4.0.0.6-0.1.el7ev causes "internal error"
Works fine on v4.


Version-Release number of selected component (if applicable):
rhevm 4.0.0.6-0.1.el7ev

How reproducible:


Steps to Reproduce:
1. access /ovirt-engine/api/v3/hosts/{host}/storage

Actual results:
"Internal error"

Expected results:
listing storages on that host

Comment 1 Petr Kubica 2016-07-25 12:59:01 UTC
Hi, I have engine with host and configured nfs torage domain and local storage on that host but GET https://10.34.63.115/ovirt-engine/api/v3/hosts/ec5e93c6-937e-4154-a328-e48a4b82fc60/storage/ return only "<host_storage/>".
(behavior in v4 is the same) so how can I populate this page ?

Comment 2 Juan Hernández 2016-07-26 07:36:06 UTC
That collection only enumerates SCSI storage, so you need to make sure that you have some fibre channel or iSCSI LUNs visible to that host.

Comment 3 Petr Kubica 2016-07-26 11:43:09 UTC
Verified in 
ovirt-engine-restapi-4.0.2-0.2.rc1.el7ev.noarch
ovirt-engine-4.0.2-0.2.rc1.el7ev.noarch


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