Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1166161 - cannot change parent of hostgroup
cannot change parent of hostgroup
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: WebUI (Show other bugs)
6.0.4
Unspecified Unspecified
unspecified Severity medium (vote)
: Unspecified
: Unused
Assigned To: Daniel Lobato Garcia
Kedar Bidarkar
http://projects.theforeman.org/issues...
: Triaged
Depends On: 1192487
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-20 08:44 EST by Bryan Kearney
Modified: 2017-02-23 15:47 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-12 01:19:34 EDT
Type: ---
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
Foreman Issue Tracker 4596 None None None 2016-04-22 12:05 EDT
Red Hat Product Errata RHSA-2015:1592 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 05:04:35 EDT

  None (edit)
Description Bryan Kearney 2014-11-20 08:44:02 EST
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.
Comment 1 Bryan Kearney 2014-11-20 08:44:03 EST
Created from redmine issue http://projects.theforeman.org/issues/4596
Comment 2 Bryan Kearney 2014-11-20 08:52:07 EST
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.
Comment 7 Kedar Bidarkar 2015-02-13 04:23:54 EST
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.
Comment 8 Kedar Bidarkar 2015-02-13 08:29:55 EST
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.
Comment 9 Kedar Bidarkar 2015-03-13 12:14:51 EDT
VERIFIED With sat6.1 beta snap6 compose2.

We are now able to change the parent of hostgroup.
Comment 10 Bryan Kearney 2015-08-11 09:25:45 EDT
This bug is slated to be released with Satellite 6.1.
Comment 11 errata-xmlrpc 2015-08-12 01:19:34 EDT
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

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