I cannot change the parent of a hostgroup in version 1.5 via the UI. I believe I could do it via the rails console by changing the "ancestry" field.
Created from redmine issue http://projects.theforeman.org/issues/4596
Moving to POST since upstream bug http://projects.theforeman.org/issues/4596 has been closed ------------- Dominic Cleal https://github.com/theforeman/foreman/pull/1403 ------------- Daniel Lobato Garcia Applied in changeset commit:e14b6968afc277a1b461974bbb37c02319c04bc2.
Currently while using "parent hostgroup" most of the parameters being passed looks to be NULL as below. Also when using the inherited parent "lifecycle_Environment_id" and upon submitting, the UI promopts me to update the request. Thought my options selected are very much valid and the ones inherited from the parent hostgroup. Processing by HostgroupsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"mpc1TdSa9br/7Z/B6zUKG4HFEpOaZJlhmRKbaYdmZjQ=", "hostgroup"=>{"parent_id"=>"4", "name"=>"rhel_grp321", "lifecycle_environment_id"=>"Inherit parent (dev)", "content_view_id"=>"2", "environment_id"=>"", "content_source_id"=>"", "puppet_ca_proxy_id"=>"", "puppet_proxy_id"=>"", "puppetclass_ids"=>[""], "domain_id"=>"", "subnet_id"=>"", "realm_id"=>"", "architecture_id"=>"", "operatingsystem_id"=>"", "medium_id"=>"", "ptable_id"=>"", "root_pass"=>"[FILTERED]", "location_ids"=>[""], "organization_ids"=>["", "1"], "id"=>""}, "fakepassword"=>"[FILTERED]", "parent_parameter_0_key"=>"", "parent_parameter_0_value"=>"[FILTERED]", "kt_activation_keys"=>"", "commit"=>"Submit"} Rendered common/404.html.erb within layouts/application (1.3ms) Rendered layouts/base.html.erb (1.8ms) Completed 404 Not Found in 58ms (Views: 5.9ms | ActiveRecord: 5.9ms) Will be raising a new bug for this issue but I feel better we test this bug after this issue is fixed as inheriting parent seems broken for now.
Updated: Currently while using "parent hostgroup" most of the parameters being passed looks to be NULL as below. when seen through foreman/production.log Processing by HostgroupsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"mpc1TdSa9br/7Z/B6zUKG4HFEpOaZJlhmRKbaYdmZjQ=", "hostgroup"=>{"parent_id"=>"4", "name"=>"rhel_grp321", "lifecycle_environment_id"=>"Inherit parent (dev)", "content_view_id"=>"2", "environment_id"=>"", "content_source_id"=>"", "puppet_ca_proxy_id"=>"", "puppet_proxy_id"=>"", "puppetclass_ids"=>[""], "domain_id"=>"", "subnet_id"=>"", "realm_id"=>"", "architecture_id"=>"", "operatingsystem_id"=>"", "medium_id"=>"", "ptable_id"=>"", "root_pass"=>"[FILTERED]", "location_ids"=>[""], "organization_ids"=>["", "1"], "id"=>""}, "fakepassword"=>"[FILTERED]", "parent_parameter_0_key"=>"", "parent_parameter_0_value"=>"[FILTERED]", "kt_activation_keys"=>"", "commit"=>"Submit"} Rendered common/404.html.erb within layouts/application (1.3ms) Rendered layouts/base.html.erb (1.8ms) Completed 404 Not Found in 58ms (Views: 5.9ms | ActiveRecord: 5.9ms) creating hostgroup with parent: Also when using the default inherited parent "lifecycle_Environment" and upon submitting, the UI promopts me to update the request. Though my options selected are very much valid and the ones inherited from the parent hostgroup. Will be raising a new bug for this issue but I feel better we test this bug after this issue is fixed as inheriting parent seems broken for now. Will be updating the bug_id soon here.
VERIFIED With sat6.1 beta snap6 compose2. We are now able to change the parent of hostgroup.
This bug is slated to be released with Satellite 6.1.
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-2015:1592