Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1686641 - Unable to import job templates that have been exported from Satellite.
Summary: Unable to import job templates that have been exported from Satellite.
Status: NEW
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Templates Plugin
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Jitendra Yejare
Depends On:
TreeView+ depends on / blocked
Reported: 2019-03-07 23:03 UTC by Satyajit Das
Modified: 2019-03-09 04:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

Description Satyajit Das 2019-03-07 23:03:06 UTC
Description of problem:

Unable to import job templates that have been exported from Satellite.

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


How reproducible:


Steps to Reproduce:
1. Log into the Satellite Gui--> Hosts--> Job Teamplates---> Export a job template(I used this template (Install Group - Katello SSH Default)) as a reproducer.
2. Then imported the same job template. I used the Gui and check-marked the Overwrite box.

Actual results:

Got the below exception:-
Unable to save
ERF45-3514 [JobTemplate::NonUniqueInputsError]: Duplicated inputs detected: ["pre_script", "package", "post_script"]

Expected results:

The template should have been imported without any exceptions.

Additional info:

Tested the same with CLI:-

[root@satellite ~]# hammer job-template export --name "Install Package - Katello SSH Default" > exporttest
[root@satellite ~]# hammer job-template import --file ./exporttest --overwrite true
Could not import the job template:
  ERF45-3514 [JobTemplate::NonUniqueInputsError]: Duplicated inputs detected: ["pre_script", "package", "post_script"]

Note:- The value for "template" under "foreign_input_sets" does not much the value in Web UI.  The value is being set to the name of the exported template which isn't the value actually set in database.

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