Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2238952 - Discovery Provisioning fails as when we try to submit the host from customize host button
Summary: Discovery Provisioning fails as when we try to submit the host from customize...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Discovery Plugin
Version: 6.14.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: 6.15.0
Assignee: satellite6-bugs
QA Contact: addubey
URL:
Whiteboard:
: 2268544 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-14 14:17 UTC by addubey
Modified: 2024-06-19 15:28 UTC (History)
9 users (show)

Fixed In Version: foreman_discovery-23.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-23 17:14:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Hotfix RPM for Satellite 6.14.4 (15.94 MB, application/x-rpm)
2024-05-03 14:35 UTC, Ian Ballou
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github theforeman foreman_discovery pull 609 0 None open Fixes BZ#2238952 - Selecting host group change form URL 2023-11-13 11:05:30 UTC
Red Hat Issue Tracker SAT-20098 0 None None None 2023-09-14 14:18:31 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:14:32 UTC

Description addubey 2023-09-14 14:17:03 UTC
Description of problem: Discovery Provisioning fails when we try to submit the host from the customize host button


Version-Release number of selected component (if applicable): 6.14.o snap 16


How reproducible: 100%


Steps to Reproduce:
1. Setup Discovery provisioning and have discovered hosts
2. Click on provision -> click on customize host -> Dont select the hostgroup
3. When the host page appears select the hostgroup and make sure the data is populated .
4. click on submit and the page is stuck there stopping it from moving forward

Actual results: Blank page


Expected results: Discovery provisioning should work with the host submission.


Additional info:

Parameters: {"utf8"=>"✓", "authenticity_token"=>"7H9fk79ScznM/lXbCQZ7r+ocCFYWEyuRxEclQ9KmtW6C3S7t1PZwlaG4eAM+rQEt+lD0KOclS3dH1iJIxnpeMQ==", "host"=>{"name"=>"mac566f6df501f4", "hostgroup_id"=>"1", "content_facet_attributes"=>{"content_source_id"=>"1", "lifecycle_environment_id"=>"9", "content_view_id"=>"10", "kickstart_repository_id"=>"7"}, "openscap_proxy_id"=>"", "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "mac"=>"56:6f:6d:f5:01:f4", "identifier"=>"ens3", "name"=>"mac566f6df501f4", "domain_id"=>"2", "subnet_id"=>"1", "ip"=>"10.1.5.66", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"0", "tag"=>"", "attached_to"=>"", "id"=>"5"}}, "architecture_id"=>"1", "operatingsystem_id"=>"1", "build"=>"1", "medium_id"=>"", "ptable_id"=>"142", "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"=>"5"}
2023-09-14T04:37:59 [I|app|1941975c]   Rendered common/404.html.erb within layouts/application (Duration: 7.2ms | Allocations: 6561)
2023-09-14T04:37:59 [I|app|1941975c]   Rendered layouts/base.html.erb (Duration: 10.7ms | Allocations: 18713)
2023-09-14T04:37:59 [I|app|1941975c]   Rendered layout layouts/application.html.erb (Duration: 25.5ms | Allocations: 37858)
2023-09-14T04:37:59 [I|app|1941975c] Completed 404 Not Found in 39ms (Views: 26.1ms | ActiveRecord: 2.4ms | Allocations: 41788)
2023-09-14T04:38:02 [I|app|67a5c918] Started GET "/javascripts/foreman_virt_who_configure/locale/en/foreman_virt_who_configure.js?_=1694680632194" for 10.74.18.98 at 2023-09-14 04:38:02 -0400
2023-09-14T04:38:02 [F|app|67a5c918]   
 67a5c918 | ActionController::RoutingError (No route matches [GET] "/javascripts/foreman_virt_who_configure/locale/en/foreman_virt_who_configure.js"):
 67a5c918 |   
 67a5c918 | lib/foreman/middleware/logging_context_request.rb:11:in `call'
 67a5c918 | katello (4.9.0.16) lib/katello/prevent_json_parsing.rb:12:in `call'

Comment 2 Leos Stejskal 2023-09-15 10:58:31 UTC
This issue is not a 6.14 regression, I was able to reproduce it on 6.13 as well.

Comment 4 Brad Buckingham 2023-10-30 11:29:29 UTC
Bulk setting Target Milestone = 6.15.0 where sat-6.15.0+ is set.

Comment 5 addubey 2024-01-04 10:02:36 UTC
Verified 

Tested on: Satellite 6.15.0 snap 3

Steps followed:

1. Setup Discovery provisioning and have discovered hosts
2. Click on provision -> click on customize host -> Dont select the host group
3. When the host page appears select the hostgroup and make sure the data is populated.
4. Click on submit.

Observation:
Discovery provisioning works with the host submission.

Additional info : (Tried these possible cases as well)

1. Auto-provisioning.
2. Directly create a host post by clicking on the provision button
3. Don't select the host group and click on the create host button, fails for the validation of the required params which is expected but setting everything from there makes sense and works.
4. Select the host group click on the customize button, and click on submit validating the data is populated.
5. Dont Select the host group click on the customize button, and click on submit validating the data is populated.

Comment 6 matt jia 2024-03-20 22:36:31 UTC
*** Bug 2268544 has been marked as a duplicate of this bug. ***

Comment 9 errata-xmlrpc 2024-04-23 17:14:29 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 (Important: Satellite 6.15.0 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-2024:2010

Comment 10 Ian Ballou 2024-05-03 14:35:58 UTC
Created attachment 2031135 [details]
Hotfix RPM for Satellite 6.14.4

A hotfix RPM is available for this BZ for Satellite 6.14.4

INSTALL INSTRUCTIONS:

1. Create a complete backup or snapshot of Satellite 6.14.4 server

2. Download the hotfix RPM from this attachment

3. # dnf install ./rubygem-foreman_discovery-22.0.4-2.HOTFIXRHBZ2238952_2068263.el8sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart


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