Description of problem:
"GET https://$(hostname)//api/hostgroups/$(hg_id)" doesn't show all hostgroup attributes. At least compute_resource_id is missing. It is present in the GUI as "Deploy on" field.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a hostgroup with non-empty "Deploy on"
2. GET hostgroup through API:
# curl -u admin:<password> -H "Accept: version=2, application/json" -H "Content-Type: application/json" -k -X GET https://$(hostname)/api/hostgroups/$(hg_id)
Hostgroup is listed, but compute_resource (maybe other attrs too) is missing
Hostgroup returned with all attributes
similar to BZ#1702676
Issue is also present in Satellite 6.6.0
But in Foreman 1.23.0 everything is fine.
To be precise:
Issue present in:
Satellite 18.104.22.168 (foreman-22.214.171.124-1.el7sat.noarch)
Satellite 6.6.0 (foreman-126.96.36.199-1.el7sat.noarch)
Issue is not present in:
Foreman 1.23.0 (foreman-1.23.0-1.el7.noarch)
There are 'compute_resource_id' and 'compute_resource_name' attributes in API output for hostgroup in 6.7. Could QE verify?
As per Reporter's acceptance in comment 8, Moving this bug to verified state.
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.