Bug 2223891
Summary: | ERF42-4237 [Foreman::Exception]: Unknown input command for template Install Package - Katello Script Default, while customizing remote exucution job. | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Akshay Kapse <akapse> |
Component: | Remote Execution | Assignee: | kmalyjur |
Status: | CLOSED ERRATA | QA Contact: | Peter Ondrejka <pondrejk> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.14.0 | CC: | aruzicka, juwatts, rlavi, zhunting |
Target Milestone: | 6.14.0 | Keywords: | Regression, Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rubygem-foreman_remote_execution-10.0.6 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-11-08 14:19:57 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: |
Comment 1
Akshay Kapse
2023-07-19 08:08:42 UTC
Alternative steps to reproduce: 1) Go to /job_invocations/new?feature=run_script 2) Change job category to "packages" and job template to "Package Action - Script Default" 3) Fill in the rest of the wizard, submit Actual results: The wizard ignores the category and template selection sets job template id to nil and uses the original feature, but with the inputs from the template selected by the user. The request fails with "Unknown input action for template Run Command - Script Default". 2023-07-19T06:37:02 [I|app|65cf436d] Started POST "/api/job_invocations" for 192.168.122.1 at 2023-07-19 06:37:02 -0400 2023-07-19T06:37:02 [I|app|65cf436d] Processing by Api::V2::JobInvocationsController#create as JSON 2023-07-19T06:37:02 [I|app|65cf436d] Parameters: {"location"=>{"id"=>2, "title"=>"Default Location"}, "organization"=>{"id"=>1, "title"=>"Default Organization"}, "job_invocation"=>{"job_template_id"=>nil, "targeting_type"=>"static_query", "inputs"=>{"action"=>"install", "package"=>"tmux", "pre_script"=>"", "options"=>"", "post_script"=>"", "refresh_subscription"=>""}, "ssh_user"=>nil, "ssh"=>{"effective_user"=>""}, "recurrence"=>nil, "scheduling"=>nil, "concurrency_control"=>{"time_span"=>"", "concurrency_level"=>""}, "bookmark_id"=>nil, "search_query"=>"id ^ (1)", "description_format"=>"%{action} package(s) %{package}", "execution_timeout_interval"=>"", "feature"=>"run_script", "time_to_pickup"=>""}, "apiv"=>"v2"} Expected results: It does the package action instead of trying to do the mix of the two. Note: A similar issue exists when you rerun a job and then change the category and template to a one which has different inputs. Verified on Satellite 6.14 snap 12 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.14 security and bug fix update), 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-2023:6818 |