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 1493345 - Satellite 6.3 foreman-templates plugin Negate/Prefix doesn't work as intended for exports to remote git repo
Summary: Satellite 6.3 foreman-templates plugin Negate/Prefix doesn't work as intended...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Templates Plugin
Version: 6.3.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: Unspecified
Assignee: Ondřej Pražák
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-20 02:17 UTC by Billy Holmes
Modified: 2018-10-03 19:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-03 19:18:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 22353 0 None None None 2018-01-22 07:43:59 UTC

Description Billy Holmes 2017-09-20 02:17:44 UTC
Description of problem:

Exporting to remote git repo, prefix is not negated. Thus, when the template is imported, the prefix is added. This ends up creating a lot of templates both in the system and in the remote git repo as the prefix is appended for each iteration.

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

tfm-rubygem-foreman_templates-5.0.1-1.fm1_15.el7sat.noarch

How reproducible:

Add a prefix to foreman-templates settings.
Point it to a repo for which you have write access.
Perform a few Import and Export cycles.

Steps to Reproduce:
1. hammer settings set --name template_sync_prefix  --value "Local:"
2. hammer settings set --name=template_sync_repo    --value "http://user:pass@git.example.com/sat/templates
3. foreman-rake templates:sync
4. foreman-rake templates:export
5. [ repeat steps 4 and 5 ]

Actual results:

Templates are created with prefix not negated, but appended. Thus results in lots of templates with the pattern of (in the case of my prefix): "Local:Local:Local:..."

Expected results:

The prefix is negated on import and export, and the number of templates does not increase in the remote repo, nor locally.


Additional info:

Comment 5 Lukas Zapletal 2018-01-22 07:43:56 UTC
Created redmine issue http://projects.theforeman.org/issues/22353 from this bug

Comment 6 Satellite Program 2018-01-25 13:15:17 UTC
Upstream bug assigned to oprazak

Comment 7 Satellite Program 2018-01-25 13:15:20 UTC
Upstream bug assigned to oprazak

Comment 8 Bryan Kearney 2018-10-03 19:18:11 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Rich Jerrido or Bryan Kearney. Thank you.


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