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 2225090 - Re-running apply errata remote execution task fails with error Validation failed: Template install errata - katello script default:.
Summary: Re-running apply errata remote execution task fails with error Validation fai...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.14.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.14.0
Assignee: Adam Ruzicka
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-24 09:54 UTC by Susmita Sen
Modified: 2023-11-08 14:20 UTC (History)
5 users (show)

Fixed In Version: rubygem-foreman_remote_execution-10.0.7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:20:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36627 0 Normal Ready For Testing Rerunning a job doesn't work if the user switches to a template with different inputs 2023-08-09 10:27:13 UTC
Foreman Issue Tracker 36704 0 Normal Ready For Testing Rerun does not work if not all inputs were set properly 2023-08-28 09:31:53 UTC
Red Hat Issue Tracker SAT-19139 0 None None None 2023-07-25 12:25:41 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:20:21 UTC

Description Susmita Sen 2023-07-24 09:54:31 UTC
Description of problem:

If apply errata task fails for some reason. After fixing the problem, click on the 'Rerun' button. After selecting the exact same and correct options when clicking 'Submit', it is failing with the below error on the top right corner.

"Validation failed: Template install errata by search query - katello script default: Input pre script: Value can't be blank, Input refresh subscription: Value can't be blank, Value is not included in the list, Input options: Value can't be blank, Input post script: Value can't be blank"

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

6.14.0

How reproducible:

Always

Steps to Reproduce:
1. Follow the below step and try to apply errata on a registered host.

Satellite WEB UI -> Hosts -> Content Hosts -> Click on the name -> Click on the Errata tab -> Select an errata -> Apply via Remote execution -> If it fails or passes.

2. Click on the 'rerun' button -> It'll ask you tore-check the options that were selected before -> Without changing anything, click on 'Submit' -> you'll see the below error.

"Validation failed: Template install errata - katello script default: Input pre script: Value can't be blank, Input refresh subscription: Value can't be blank, Value is not included in the list, Input options: Value can't be blank, Input post script: Value can't be blank"


Actual results:

It fails with an error.

Expected results:

It should run if it fails. Even if the errata is already applied still it should run and give message "'Nothing to do' Complete!"


Additional info:

1. I tested it on 2 satellite 6.14 machines.

2. I tested the same on satellite 6.12, and it is working as expected.

3. I tested it with other katello options, and it is working fine.

4. Even I manually ran the command following the below step without selecting any 'pre script'. Only this re-run option is not working.

Comment 7 Peter Ondrejka 2023-08-21 10:44:57 UTC
Checked on Satellite 6.14 sn 12, using the described steps I can still reproduce the issue, screenshot will follow. Re-running the job triggered from the apply errata dialog fails on missing advanced fields, even though those weren't set in the original job either. Reproducer available.

Comment 9 Peter Ondrejka 2023-09-11 13:17:21 UTC
Verified on Satellite 6.14 snap 15, re-run is now successful if triggered trough the specified path

Comment 12 errata-xmlrpc 2023-11-08 14:20:07 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.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


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