Bug 1339613

Summary: /api/v2/hosts/:id does not expose content_source_id
Product: Red Hat Satellite Reporter: Julio Entrena Perez <jentrena>
Component: APIAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Roman Plevka <rplevka>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.0CC: akarsale, anerurka, bbuckingham, brubisch, csulekha, dlezzoum, egolov, ktordeur, mburgerh, peter.vreman, rankumar, rplevka, satellite6-bugs, sauchter, sigbjorn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: UnusedFlags: rplevka: needinfo-
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1390153 1488130 (view as bug list) Environment:
Last Closed: 2018-02-21 16:54:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1316897    
Bug Blocks: 1115190, 1122832, 1390153, 1405520    
Attachments:
Description Flags
GET /api/v2/hosts/3 none

Description Julio Entrena Perez 2016-05-25 12:50:21 UTC
Description of problem:
GET or PUT /api/v2/hosts/:id does not return content_source_id field

Version-Release number of selected component (if applicable):
sat62 public beta

How reproducible:
Always

Steps to Reproduce:
1. Issue a HTTP GET or PUT to /api/v2/hosts/:id
2. Check the returned json
3.

Actual results:
content_source_id is missing

Expected results:
content_source_id is present

Additional info:
Modifying content_source_id with a PUT call seems to work, but the current value of content_source_id can not be queried

Comment 3 Amit Karsale 2016-07-22 19:48:40 UTC
this issue is been addressed and fixed. 

Pull Request: https://github.com/Katello/katello/pull/6189

can change the state of the BZ accordingly.

Comment 5 Peter Vreman 2016-08-31 10:49:41 UTC
Additional add also the name of the capsule "content_source_name" to be consistent.

Comment 10 Roman Plevka 2016-10-31 10:48:36 UTC
VERIFIED
on satellite-6.3.0-1.0.git.7.fb12bf2.el7sat.noarch

the `content_source_id` parameter is now being returned. (see attachment)

I'm also removing 6.2.z flag as I'm cloning a standalone BZ for 6.2:
https://bugzilla.redhat.com/show_bug.cgi?id=1390153

Comment 11 Roman Plevka 2016-10-31 10:49:24 UTC
Created attachment 1215749 [details]
GET /api/v2/hosts/3

Comment 12 Maxim Burgerhout 2017-01-20 12:14:44 UTC
I see this is fixed for GET, but how about PUT?

Comment 13 Peter Vreman 2017-01-30 14:03:06 UTC
The content_source_name is still missing in the errata of https://bugzilla.redhat.com/show_bug.cgi?id=1390153

Comment 18 Djebran Lezzoum 2017-10-09 15:26:03 UTC
qe_test_coverage PR : https://github.com/SatelliteQE/robottelo/pull/5307

Comment 20 Satellite Program 2018-02-21 16:54:37 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> > 
> > For information on the advisory, and where to find the updated files, follow the link below.
> > 
> > If the solution does not work for you, open a new bug report.
> > 
> > https://access.redhat.com/errata/RHSA-2018:0336