Bug 1925258

Summary: Template sync fails with error Oh no! Something went wrong
Product: Red Hat Satellite Reporter: Anand Agrawal <aagrawal>
Component: Templates PluginAssignee: Ondřej Ezr <oezr>
Status: CLOSED ERRATA QA Contact: Ondrej Gajdusek <ogajduse>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: ahumbe, jyejare, mhulan, oprazak, pcreech, tbrisker
Target Milestone: 6.9.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_templates-9.0.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 13:10:31 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 Anand Agrawal 2021-02-04 17:16:33 UTC
Description of problem:

Export Template sync fails with error below:
Oh no! Something went wrong while submitting the form, the server returned the following error: Error: Request failed with status code 422



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

How reproducible:

Always
Steps to Reproduce:
1. Hosts -> Sync Templates
2. Select Action type as Export
3. Click Submit
4. You will land to new Page "No Template Sync Result", Click Sync Templates
5. You will see error message as below:

Oh no! Something went wrong while submitting the form, the server returned the following error: Error: Request failed with status code 422

Actual results:

Error received:

Oh no! Something went wrong while submitting the form, the server returned the following error: Error: Request failed with status code 422

Expected results:
Proper error message as 

Error! Please specify a branch when exporting into a git repo

Additional info:

Comment 1 Brad Buckingham 2021-02-08 15:43:18 UTC
Is this a regression from 6.8?

Comment 2 Anand Agrawal 2021-02-08 15:57:59 UTC
(In reply to Brad Buckingham from comment #1)
> Is this a regression from 6.8?

Yes, this is a regression from 6.8.


Regards,
Anand

Comment 5 Ondřej Ezr 2021-03-01 22:52:37 UTC
Created redmine issue https://projects.theforeman.org/issues/31985 from this bug

Comment 6 Bryan Kearney 2021-03-04 00:04:28 UTC
Upstream bug assigned to oezr

Comment 7 Bryan Kearney 2021-03-04 00:04:30 UTC
Upstream bug assigned to oezr

Comment 8 Ondrej Gajdusek 2021-03-22 14:25:03 UTC
VERIFIED

Satellite 6.9 snap 17:
foreman-2.3.1.18-1.el7sat.noarch
tfm-rubygem-foreman_templates-9.0.2-1.el7sat.noarch

Additional info:
BZ1941640 created to fix the extra step described in point 4. in the reproducer.

Comment 11 errata-xmlrpc 2021-04-21 13:10:31 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.9 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:1313