Bug 1405520

Summary: /api/v2/hosts/:id does not expose content_source_id
Product: Red Hat Satellite Reporter: Bryan Kearney <bkearney>
Component: API - ContentAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.0CC: akarsale, bbuckingham, bkearney, brubisch, jcallaha, jentrena, mhulan, oshtaier, peter.vreman, rplevka, satellite6-bugs, sauchter
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1390153 Environment:
Last Closed: 2018-02-21 17:32:00 UTC Type: ---
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, 1339613, 1390153    
Bug Blocks: 1115190, 1122832    

Comment 2 Roman Plevka 2017-08-17 08:40:29 UTC
VERIFIED
on 6.3.0-11

GET:
https://smqa-r210-02.satellite.com/api/v2/hosts/dewey-phanco.satellite.com

returns:
...
content_facet_attributes:
  content_source_id	1
  content_source_name	"smqa-r210-02.satellite.com"
...


PUT:
PUT /api/hosts/6
{
    "host" => {
                   "compute_attributes" => {
            "volumes_attributes" => {}
        },
             "content_facet_attributes" => {},
        "subscription_facet_attributes" => {},
                             "owner_id" => "1",
           "host_parameters_attributes" => [],
                "interfaces_attributes" => []
    }
}

returns:
...
"content_facet_attributes" => {
...
"content_source_id" => 1,
                   "content_source_name" => "smqa-r210-02.satellite.com",
}

Comment 3 Bryan Kearney 2018-02-21 17:32:00 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