Created attachment 1042517 [details] Output of foreman-debug from a Satellite 6.1.0 system running RHEL 7.1. Description of problem: A host has at least the following attributes: * architecture * build * capabilities * compute_profile * compute_resource * domain * enabled * environment * host_parameters_attributes * hostgroup * id * image * ip * location * mac * managed * medium * model * name * operatingsystem * organization * owner * owner_type * provision_method * ptable * puppet_class * puppet_proxy * realm * root_pass * subnet However, the following attributes are returned when a host is updated: * architecture_id * build * certname * comment * compute_profile_id * compute_resource_id * content_source_id * content_view_id * created_at * discovery_rule_id * disk * domain_id * enabled * environment_id * grub_pass * hostgroup_id * id * image_file * image_id * installed_at * ip * last_compile * last_freshcheck * last_report * lifecycle_environment_id * location_id * mac * managed * medium_id * model_id * name * operatingsystem_id * organization_id * otp * owner_id * owner_type * primary_interface * provision_method * ptable_id * puppet_ca_proxy_id * puppet_proxy_id * puppet_status * realm_id * root_pass * serial * source_file_id * subnet_id * updated_at * use_image * uuid The following attributes are not mentioned in the response: * capabilities * host_parameters_attributes * puppet_class Version-Release number of selected component (if applicable): Satellite 6.1.0. Foreman-debug is attached. How reproducible: 100% Steps to Reproduce: 1. Issue HTTP PUT request to https://sat.example.com/api/v2/hosts/:id 2. Capture the response. Examine the JSON payload and discover that several attributes are not mentioned. 3. Actual results: See "Description of problem" section. Expected results: See "Description of problem" section. 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.
Fixed in http://projects.theforeman.org/issues/10356
This has been resolved in current 6.2 snaps, moving to ON_QA for verification.
Verified in Satellite 6.2 snap 7 compose 1. capabilities included. parameters is now in place of host_parameters_attributes puppetclasses is now in place of puppet_class
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-2016:1500