Bug 1467275

Summary: Many duplicate templates w/ same name exists
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: Provisioning TemplatesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, bkearney, mhulan, nkathole, sghai
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_discovery-9.1.1-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 17:30:55 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:
Attachments:
Description Flags
duplicate templates none

Description Sachin Ghai 2017-07-03 09:55:43 UTC
Created attachment 1293786 [details]
duplicate templates

Description of problem:
In satellite6.3 snap4, I see many entries of following templates and seems all are duplicate.

Boot disk iPXE - generic host 
Boot disk iPXE - host
Discovery Debian kexec 
Discovery Red Hat kexec

I don't know if its intended, but since these are all duplicate so I think we should list one template for each.


Version-Release number of selected component (if applicable):
sat6.3 snap4

How reproducible:


Steps to Reproduce:
1. go to provisioning templates
2.
3.

Actual results:
many duplicate entries of same template ex:
Boot disk iPXE - generic host 
Boot disk iPXE - host
Discovery Debian kexec 
Discovery Red Hat kexec



Expected results:


Additional info:

Comment 2 Marek Hulan 2017-07-04 13:48:35 UTC
Could you doublecheck the version of discovery plugin? It should be fixed in 9.1.0 by http://projects.theforeman.org/issues/19732.

The bootdisk fix seems to be pending review - https://github.com/theforeman/foreman_bootdisk/pull/42

Are there any more duplicated templates?

Comment 5 Sachin Ghai 2017-08-08 08:02:59 UTC
Will verify this w/ latest 6.3 snap

Comment 6 Nikhil Kathole 2017-08-23 06:47:23 UTC
Found duplicate templates with same exist for Boot disk iPXE - generic host, Boot disk iPXE - host. 

Version Tested:
Satellite-6.3 Snap 12

rpm -qa | grep tfm-rubygem-foreman_discovery
>>> tfm-rubygem-foreman_discovery-9.1.1-1.fm1_15.el7sat.noarch

Comment 8 Marek Hulan 2017-11-07 07:16:14 UTC
Meanwhile the bootdisk fix was merge but no new version was released yet

Comment 9 Sachin Ghai 2017-11-07 07:46:06 UTC
Duplication around bootdisk templates still exists in sat6.3 snap24 though duplication around discovery templates fixed. Since the reported issue is fixed for discovery templates so verifying this only for discovery templates.

New issue is filed for bootdisk templates: https://bugzilla.redhat.com/show_bug.cgi?id=1510308

Comment 10 Bryan Kearney 2018-02-21 17:30:55 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:0336