Bug 1413628 - Missing storage domain statuses
Summary: Missing storage domain statuses
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high vote
Target Milestone: ---
: ---
Assignee: Juan Hernández
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-16 14:59 UTC by Filip Krepinsky
Modified: 2017-01-16 15:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-16 15:47:58 UTC
oVirt Team: Storage


Attachments (Terms of Use)

Description Filip Krepinsky 2017-01-16 14:59:03 UTC
Description of problem:
/api/storagedomains does not return status of a storage domain, except unattached statuses

Version-Release number of selected component (if applicable):
4.2.0

Actual results:
null or <status>unattached</status>

Expected results:
<status>$ACTUAL_STATUS</status>

Additional info:
relevant code: https://gerrit.ovirt.org/#/c/226/3/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainsResource.java

Comment 1 Juan Hernández 2017-01-16 15:47:58 UTC
The status of the storage domain can't be displayed in /ovirt-engine/api/storagedomains because a storage domain may be attached to multiple data centers, and may have different status for each data center. For example, a NFS ISO storage domain may be attached to two data centers, and it may be "active" in one of them and "inactive" in the other one. To get this status you need to go to the relevant attached storage domain and check the status:

  GET /ovirt-engine/api/datacenters/{dc:id}/storagedomains/{sd:id}


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