Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1390153 - /api/v2/hosts/:id does not expose content_source_id
/api/v2/hosts/:id does not expose content_source_id
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: API - Content (Show other bugs)
6.2.0
All Linux
high Severity high (vote)
: 6.2.7
: Unused
Assigned To: satellite6-bugs
jcallaha
: Triaged
Depends On: 1316897 1339613
Blocks: GSS_Sat6Beta_Tracker/GSS_Sat6_Tracker 1122832 1405520
  Show dependency treegraph
 
Reported: 2016-10-31 06:36 EDT by Roman Plevka
Modified: 2017-10-09 11:28 EDT (History)
11 users (show)

See Also:
Fixed In Version: rubygem-katello-3.0.0.91-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1339613
: 1405520 (view as bug list)
Environment:
Last Closed: 2017-01-26 05:43:58 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2763741 None None None 2016-11-13 14:16 EST
Foreman Issue Tracker 15697 None None None 2016-10-31 06:36 EDT
Red Hat Product Errata RHBA-2017:0197 normal SHIPPED_LIVE Satellite 6.2.7 Async Bug Release 2017-01-26 10:38:38 EST

  None (edit)
Comment 2 Bryan Kearney 2016-10-31 08:20:36 EDT
Upstream bug component is API - Content
Comment 3 Bryan Kearney 2016-10-31 08:20:40 EDT
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/15697 has been resolved.
Comment 4 jcallaha 2017-01-10 14:41:45 EST
Verified in Satellite 6.2.7 Snap 1

Querying the host, without modification returns
{
...
"content_source_id": null,
...
}

Submitting a PUT to the host path with a specific valid ID results in that id being saved/displayed in subsequent requests.
{
...
"content_source_id": null,
...
}

Submitting a PUT to the host path with an invalid ID results in the following error message.
{
  "error": {
    "message": "ERROR:  insert or update on table \"hosts\" violates foreign key constraint \"hosts_content_source_id_fk\"\nDETAIL:  Key (content_source_id)=(101) is not present in table \"smart_proxies\".\n"
  }
}
Comment 6 errata-xmlrpc 2017-01-26 05:43:58 EST
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/RHBA-2017:0197

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