-
Bug
-
Resolution: Done
-
Major
-
6.9.9
-
0
-
False
-
-
False
-
CLOSED
-
1,900
-
Rocket
-
-
-
Important
-
None
Description of problem:
When custom provisioning a discovered host in Satellite 6.9.9, if you specify a Host Group in the UI and submit you get a blank white page. Filling out all the information without the host group seems to be working fine. Alternatively, if you don't customize the provisioning and just specify host group for creation that works too. Just both of them together is not working.
Version-Release number of selected component (if applicable):
6.9.9 snap 1
How reproducible:
100%
Steps to Reproduce:
1. Setup discovery on Satellite
2. Boot up a host to discovery
3. Go to Hosts > Discovered Hosts
4. Click Provision, specify a host group, and fill out remaining info
Actual results:
On submission the page goes blank and returns a 404 for host not found because it's never being created.
Expected results:
Host is created.
Additional info:
Here's the traceback on Satellite
-----------------------------------------------------------------
2022-03-24T14:40:34 [I|app|2dfc6765] Parameters: {"utf8"=>"✓", "authenticity_token"=>"NiBxwmEaP0UAuDOcwHj+hwScfRAwpJODSGXJbKD+bHOqOyfwHdpzbf2A4uZufKNHcRBh4X/vxs8EV+EzYujUkw==", "host"=>{"name"=>"mac566f0d721ddf", "hostgroup_id"=>"2", "content_facet_attributes"=>
, "environment_id"=>"", "puppet_proxy_id"=>"", "puppet_ca_proxy_id"=>"", "openscap_proxy_id"=>"", "ansible_role_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>
{"_destroy"=>"0", "mac"=>"56:6f:0d:72:1d:df", "identifier"=>"eth0", "name"=>"mac566f0d721ddf", "domain_id"=>"2", "subnet_id"=>"1", "ip"=>"10.1.5.92", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "tag"=>"", "attached_to"=>"", "id"=>"25"}, "1"=>{"_destroy"=>"0", "mac"=>"56:6f:0d:72:1d:ef", "identifier"=>"eth1", "name"=>"", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"0", "primary"=>"0", "provision"=>"0", "execution"=>"0", "tag"=>"", "attached_to"=>"", "id"=>"26"}}, "architecture_id"=>"1", "operatingsystem_id"=>"1", "build"=>"1", "medium_id"=>"", "ptable_id"=>"120", "pxe_loader"=>"PXELinux BIOS", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"1", "comment"=>"", "overwrite"=>"false"}, "media_selector"=>"synced_content", "id"=>"14"}
2022-03-24T14:40:34 [I|app|2dfc6765] Rendering common/404.html.erb within layouts/application
2022-03-24T14:40:34 [I|app|2dfc6765] Rendered common/404.html.erb within layouts/application (Duration: 10.6ms | Allocations: 9307)
2022-03-24T14:40:34 [I|app|2dfc6765] Rendered layouts/_application_content.html.erb (Duration: 5.6ms | Allocations: 6575)
2022-03-24T14:40:34 [I|app|2dfc6765] Rendering layouts/base.html.erb
2022-03-24T14:40:34 [I|app|2dfc6765] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_theme_satellite-7.0.1.7/app/views/foreman_theme_satellite/_theme_client_side_branding.js.erb (Duration: 6.3ms | Allocations: 6964)
2022-03-24T14:40:34 [I|app|2dfc6765] Rendered layouts/base.html.erb (Duration: 17.5ms | Allocations: 16922)
2022-03-24T14:40:34 [I|app|2dfc6765] Completed 404 Not Found in 61ms (Views: 40.7ms | ActiveRecord: 3.6ms | Allocations: 44412)
2022-03-24T14:40:35 [I|app|07a5028c] Started GET "/discovered_hosts/mac566f0d721ddf/foreman-vendor.bundle-v4.14.0-production-bbcd5e5c1b7b460f35bf.js.map" for 10.13.113.205 at 2022-03-24 14:40:35 -0400
2022-03-24T14:40:35 [I|app|78b1d9c1] Started GET "/discovered_hosts/mac566f0d721ddf/vendor-dc8f881b0a2dc73703ec.js.map" for 10.13.113.205 at 2022-03-24 14:40:35 -0400
2022-03-24T14:40:35 [F|app|07a5028c]
07a5028c | ActionController::RoutingError (No route matches [GET] "/discovered_hosts/mac566f0d721ddf/foreman-vendor.bundle-v4.14.0-production-bbcd5e5c1b7b460f35bf.js.map"):
07a5028c |
07a5028c | lib/foreman/middleware/logging_context_request.rb:11:in `call'
07a5028c | katello (3.18.1.53) lib/katello/prevent_json_parsing.rb:12:in `call'
2022-03-24T14:40:35 [F|app|78b1d9c1]
78b1d9c1 | ActionController::RoutingError (No route matches [GET] "/discovered_hosts/mac566f0d721ddf/vendor-dc8f881b0a2dc73703ec.js.map"):
78b1d9c1 |
78b1d9c1 | lib/foreman/middleware/logging_context_request.rb:11:in `call'
78b1d9c1 | katello (3.18.1.53) lib/katello/prevent_json_parsing.rb:12:in `call'
2022-03-24T14:40:35 [I|app|5bd7433e] Started GET "/discovered_hosts/mac566f0d721ddf/bundle-fd9da8cb225515de91c9.js.map" for 10.13.113.205 at 2022-03-24 14:40:35 -0400
2022-03-24T14:40:35 [F|app|5bd7433e]
5bd7433e | ActionController::RoutingError (No route matches [GET] "/discovered_hosts/mac566f0d721ddf/bundle-fd9da8cb225515de91c9.js.map"):
5bd7433e |
5bd7433e | lib/foreman/middleware/logging_context_request.rb:11:in `call'
5bd7433e | katello (3.18.1.53) lib/katello/prevent_json_parsing.rb:12:in `call'
2022-03-24T14:40:35 [I|app|9a49832c] Started GET "/discovered_hosts/mac566f0d721ddf/foreman_rh_cloud:global-38e7677440928804687c.js.map" for 10.13.113.205 at 2022-03-24 14:40:35 -0400
2022-03-24T14:40:35 [F|app|9a49832c]
9a49832c | ActionController::RoutingError (No route matches [GET] "/discovered_hosts/mac566f0d721ddf/foreman_rh_cloud:global-38e7677440928804687c.js.map"):
9a49832c |
9a49832c | lib/foreman/middleware/logging_context_request.rb:11:in `call'
9a49832c | katello (3.18.1.53) lib/katello/prevent_json_parsing.rb:12:in `call'
2022-03-24T14:40:35 [I|app|abff75eb] Started GET "/discovered_hosts/mac566f0d721ddf/katello:fills-7eac1abb276902d43416.js.map" for 10.13.113.205 at 2022-03-24 14:40:35 -0400
2022-03-24T14:40:35 [F|app|abff75eb]
abff75eb | ActionController::RoutingError (No route matches [GET] "/discovered_hosts/mac566f0d721ddf/katello:fills-7eac1abb276902d43416.js.map"):
abff75eb |
abff75eb | lib/foreman/middleware/logging_context_request.rb:11:in `call'
abff75eb | katello (3.18.1.53) lib/katello/prevent_json_parsing.rb:12:in `call'
2022-03-24T14:40:35 [I|app|088fa90a] Started GET "/discovered_hosts/mac566f0d721ddf/foreman_theme_satellite-dfc7b0fde7bec9349c09.js.map" for 10.13.113.205 at 2022-03-24 14:40:35 -0400
2022-03-24T14:40:35 [F|app|088fa90a]
088fa90a | ActionController::RoutingError (No route matches [GET] "/discovered_hosts/mac566f0d721ddf/foreman_theme_satellite-dfc7b0fde7bec9349c09.js.map"):
088fa90a |
088fa90a | lib/foreman/middleware/logging_context_request.rb:11:in `call'
088fa90a | katello (3.18.1.53) lib/katello/prevent_json_parsing.rb:12:in `call