Bug 1589845 - The foreman templates are not being imported from directory of git repository
Summary: The foreman templates are not being imported from directory of git repository
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Templates Plugin
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.4.0
Assignee: Ondřej Pražák
QA Contact: Jitendra Yejare
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-11 14:04 UTC by Jitendra Yejare
Modified: 2019-11-05 23:23 UTC (History)
4 users (show)

Fixed In Version: tfm-rubygem-foreman_templates-6.0.2-1.el7sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:13:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 23894 0 Normal Closed The foreman templates are not being imported from directory of git repository 2020-06-12 11:21:47 UTC

Description Jitendra Yejare 2018-06-11 14:04:09 UTC
Description of problem:
Foreman templates are not being imported from a directory of a git repository.

Version-Release number of selected component (if applicable):
Satellite 6.4 snap 7.0

How reproducible:
Always

Steps to Reproduce:
Using hammer or API, import templates from git specifying a git subdirectory.

Actual results:
The templates are not imported from git subdirectory.

Expected results:
The templates should be imported from git subdirectory.

Additional info:

Comment 2 Jitendra Yejare 2018-06-11 14:11:51 UTC
Hammer Command:
# hammer import-templates --branch master --dirname testDir --repo ssh://git/jyejare/test_foremantemplates

API Command:
# curl -H "Accept: application/json" -H "Content-Type: application/json" -k -X POST -u user:passwd https://qeblade36.rhq.lab.eng.bos.redhat.com/api/v2/templates/import -d '{"verbose":"true", "associate": "new", "repo":"ssh://git/jyejare/test_foremantemplates", "dirname":"testDir", "branch":"master"}'

Comment 3 Ondřej Pražák 2018-06-12 07:21:46 UTC
Created redmine issue http://projects.theforeman.org/issues/23894 from this bug

Comment 6 Satellite Program 2018-06-21 14:00:46 UTC
Upstream bug assigned to oprazak

Comment 7 Satellite Program 2018-06-21 14:00:50 UTC
Upstream bug assigned to oprazak

Comment 8 Satellite Program 2018-07-03 08:00:49 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/23894 has been resolved.

Comment 9 Jitendra Yejare 2018-07-09 09:02:01 UTC
Verified !

@ Satellite 6.4 snap 11

Steps:

1. Import templates from git sub directory.

Behavior:

The templates are being imported from git subdirectory. Tested from both API and CLI ends.

Comment 10 Bryan Kearney 2018-10-16 19:13:38 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, 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-2018:2927


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