Bug 1925258 - Template sync fails with error Oh no! Something went wrong
Summary: Template sync fails with error Oh no! Something went wrong
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Templates Plugin
Version: 6.9.0
Hardware: All
OS: All
unspecified
high
Target Milestone: 6.9.0
Assignee: Ondřej Ezr
QA Contact: Ondrej Gajdusek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-04 17:16 UTC by Anand Agrawal
Modified: 2021-11-03 17:02 UTC (History)
6 users (show)

Fixed In Version: tfm-rubygem-foreman_templates-9.0.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-21 13:10:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31985 0 Normal New Template sync fails with unclear error 2021-03-01 22:52:40 UTC
Red Hat Product Errata RHSA-2021:1313 0 None None None 2021-04-21 13:10:57 UTC

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


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