Bug 1996077

Summary: Not possible to Nest hostgroup
Product: Red Hat Satellite Reporter: Jan Jansky <jjansky>
Component: Host GroupAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Omkar Khatavkar <okhatavk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: inecas, jsherril, kgaikwad, okhatavk, paji, tbrisker
Target Milestone: 6.10.0Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:13:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Jansky 2021-08-20 13:22:08 UTC
Description of problem:
When trying to Nest new host group, do necessary changes and save, page got refreshed instead of showing error.

Version-Release number of selected component (if applicable):
6.10 snap 13

How reproducible: Always


Steps to Reproduce:
1. Create Host Group
2. Click on Nest, select new name, optionally change some other parameters (in my case it was name, LFE, AK)
3. Save

Actual results:
Page will refresh and loose some values from previously set parameters.

Expected results:
Correctly create Nested Host Group

Additional info:
In log i can see error below, not sure why it was not shown.

"Base The selected kickstart repository is not part of the assigned content view, lifecycle environment, content source, operating system, and architecture"

But in my current setup kickstart repository is part of content view, lfe, content source, OS and arch, so not sure what went wrong.

2021-08-20T15:15:19 [I|app|9b3f2b24] Started POST "/hostgroups" for 10.40.192.61 at 2021-08-20 15:15:19 +0200
2021-08-20T15:15:19 [I|app|9b3f2b24] Processing by HostgroupsController#create as HTML
2021-08-20T15:15:19 [I|app|9b3f2b24]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"pYUCj6uUlm/wmdOb1RzSXN9ncQscqgx4KT7bZcC/1rDJ99nrxb5MyHx1TjYAzEcf7ugDYKKIFXvICkYkgbIaJg==", "hostgroup"=>{"parent_id"=>"1", "name"=>"RHEL6-dev", "description"=>"", "lifecycle_environment_id"=>"2", "content_view_id"=>"3", "content_source_id"=>"1", "environment_id"=>"", "compute_resource_id"=>"", "puppet_proxy_id"=>"", "puppet_ca_proxy_id"=>"", "openscap_proxy_id"=>"", "puppetclass_ids"=>[""], "domain_id"=>"", "subnet_id"=>"", "realm_id"=>"", "architecture_id"=>"", "operatingsystem_id"=>"", "medium_id"=>"", "kickstart_repository_id"=>"93", "ptable_id"=>"", "pxe_loader"=>"", "root_pass"=>"[FILTERED]", "group_parameters_attributes"=>{"1629465306310"=>{"name"=>"kt_activation_keys", "parameter_type"=>"string", "value"=>"[FILTERED]", "hidden_value"=>"[FILTERED]", "_destroy"=>"0"}}, "location_ids"=>["2", ""], "organization_ids"=>["1", ""], "id"=>""}, "media_selector"=>"synced_content", "commit"=>"Submit"}
2021-08-20T15:15:20 [E|app|9b3f2b24] Failed to save: Base The selected kickstart repository is not part of the assigned content view, lifecycle environment,
 9b3f2b24 |                   content source, operating system, and architecture
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendering hostgroups/new.html.erb within layouts/application
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered collection of puppetclasses/_selectedClasses.html.erb [0 times] (Duration: 0.1ms | Allocations: 3)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered collection of puppetclasses/_classes_in_groups.html.erb [0 times] (Duration: 0.0ms | Allocations: 3)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered puppetclasses/_classes.html.erb (Duration: 12.1ms | Allocations: 8676)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered puppetclasses/_class_selection.html.erb (Duration: 147.6ms | Allocations: 52922)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered common/os_selection/_architecture.html.erb (Duration: 20.1ms | Allocations: 9889)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered common/os_selection/_pxe_loader.html.erb (Duration: 20.9ms | Allocations: 9655)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered common/os_selection/_operatingsystem.html.erb (Duration: 209.5ms | Allocations: 65961)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered common/os_selection/_initial.html.erb (Duration: 251.0ms | Allocations: 85733)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered collection of puppetclasses/_class_parameters.html.erb [0 times] (Duration: 0.0ms | Allocations: 3)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered puppetclasses/_classes_parameters.html.erb (Duration: 28.3ms | Allocations: 15866)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered common_parameters/_inherited_parameters.html.erb (Duration: 11.8ms | Allocations: 12079)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered common_parameters/_parameter.html.erb (Duration: 16.2ms | Allocations: 17603)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered common_parameters/_parameter.html.erb (Duration: 10.8ms | Allocations: 7944)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered common_parameters/_parameters.html.erb (Duration: 38.6ms | Allocations: 33745)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered taxonomies/_loc_org_tabs.html.erb (Duration: 28.6ms | Allocations: 12766)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered hostgroups/_form.html.erb (Duration: 789.6ms | Allocations: 315618)
2021-08-20T15:15:20 [I|app|9b3f2b24]   Rendered hostgroups/new.html.erb within layouts/application (Duration: 800.7ms | Allocations: 323085)
2021-08-20T15:15:21 [I|app|9b3f2b24]   Rendered layouts/_application_content.html.erb (Duration: 9.6ms | Allocations: 7622)
2021-08-20T15:15:21 [I|app|9b3f2b24]   Rendering layouts/base.html.erb
2021-08-20T15:15:21 [I|app|9b3f2b24]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_theme_satellite-8.0.1.2/app/views/foreman_theme_satellite/_theme_client_side_branding.js.erb (Duration: 8.1ms | Allocations: 7120)
2021-08-20T15:15:21 [I|app|9b3f2b24]   Rendered layouts/base.html.erb (Duration: 46.3ms | Allocations: 37397)

Comment 7 Omkar Khatavkar 2021-10-11 05:28:47 UTC
Moving to Verified as it is fixed already !

Comment 10 errata-xmlrpc 2021-11-16 14:13:24 UTC
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 (Moderate: Satellite 6.10 Release), 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-2021:4702