Created attachment 1042785 [details] Output of foreman-debug from a Satellite 6.1.0 system running RHEL 6.6. Description of problem: A hostgroup has at least the following attributes: * architecture * content_view * domain * environment * id * lifecycle_environment * location * medium * name * operatingsystem * organization * parent * ptable * realm * subnet GET /api/v2/hostgroups/:id returns the following attributes: * all_puppetclasses * ancestry * architecture_id * architecture_name * compute_profile_id * compute_profile_name * config_groups * created_at * domain_id * domain_name * environment_id * environment_name * id * locations * medium_id * medium_name * name * operatingsystem_id * operatingsystem_name * organizations * parameters * ptable_id * ptable_name * puppet_ca_proxy_id * puppet_proxy_id * puppetclasses * realm_id * realm_name * subnet_id * subnet_name * template_combinations * title * updated_at The following attributes are not mentioned in the response: * content_view * lifecycle_environment Version-Release number of selected component (if applicable): Satellite 6.1.0. Foreman-debug is attached. Steps to Reproduce: 1. Issue an HTTP GET request to `/api/v2/hostgroups/:id`. 2. Capture the response and examine the JSON contents. 3. Discover that several attributes are missing. Actual results: See above. Expected results: See above. Additional info:
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
The `content_source` attribute should also be returned. This means that the following attributes are not returned but should be returned: * content_source * content_view * lifecycle_environment
See: https://github.com/SatelliteQE/robottelo/pull/2757
This was tested on a Satellite 6.2 build and it is working as expected. Closing as works for me since we have tests to avoid any regression in order to ensure that it is going to land in good state on 6.2.