Bug 1321452

Summary: [REST API] storage_manager object/tag is missing in host details
Product: [oVirt] ovirt-engine Reporter: Kobi Hakimi <khakimi>
Component: RestAPIAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0.0CC: bugs, lsvaty, ncredi
Target Milestone: ovirt-4.0.0-alphaKeywords: Reopened
Target Release: ---Flags: rule-engine: ovirt-4.0.0+
rule-engine: planning_ack+
juan.hernandez: devel_ack+
rule-engine: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt 4.0.0 alpha1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-05 07:39:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kobi Hakimi 2016-03-27 10:14:48 UTC
Description of problem:
[REST API] storage_manager object/tag is missing in host details


Version-Release number of selected component (if applicable):
oVirt Engine Version: 4.0.0-0.0.master.20160322171551.git6cdf188.el7.centos 

How reproducible:
100%


Steps to Reproduce:
1. Run one of the following rest queries:
 - https://jenkins-vm-20.scl.lab.tlv.redhat.com/ovirt-engine/api/hosts/
 - https://jenkins-vm-20.scl.lab.tlv.redhat.com/ovirt-engine/api/v3/hosts/
2. Looking for storage_manager tag

Actual results:
the storage_manager tag is missing

Expected results:
the following tag should appear in each host: 
<storage_manager priority="5">false</storage_manager>
or 
<storage_manager priority="5">true</storage_manager>

Additional info:
in 3.6 environment we can see it for example in:
 - https://jenkins-vm-13.scl.lab.tlv.redhat.com/ovirt-engine/api/hosts/

Comment 1 Nelly Credi 2016-03-27 13:02:13 UTC
This is probable related to:

2.9. Removed the storage_manager element

The storage_manager element was replaced by the spm element some time ago. The old one was kept for backwards compatibility, but it has been completely removed now.

automation should align

Comment 2 Juan Hernández 2016-03-28 08:31:18 UTC
It is correct that all clients, and automation as well, should use the new "spm" element, as "storage_manager" is deprecated. However we need to keep "storage_manager" working in version 3 of the API. I'm reopening and fixing.

Comment 3 Juan Hernández 2016-03-28 08:32:03 UTC
For more information about the change from "storage_manager" to "spm" see bug 1136061.

Comment 4 Lukas Svaty 2016-06-24 10:33:04 UTC
missing in v4 of api
tested in ovirt-engine-restapi-4.0.0.4-0.1.el7ev.noarch

Comment 5 Red Hat Bugzilla Rules Engine 2016-06-24 10:33:09 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 6 Lukas Svaty 2016-06-24 10:34:52 UTC
in v4 as spm as mentioned in comment#2
<spm><priority>5</priority><status>spm</status></spm>
fixing to VERIFEID

Comment 7 Sandro Bonazzola 2016-07-05 07:39:48 UTC
oVirt 4.0.0 has been released, closing current release.