Bug 1212645

Summary: Multiple RHEL7 in Operation System - regression from 6.0.8
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Content ManagementAssignee: Justin Sherrill <jsherril>
Status: CLOSED NEXTRELEASE QA Contact: Og Maciel <omaciel>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.4CC: bkearney, chrobert, cwelton, jaudet, j.bittner, jmontleo, jsherril, katello-qa-list, mmccune, omaciel, riehecky, toracat
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1150434 Environment:
Last Closed: 2015-05-15 15:15:24 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:
Bug Depends On: 1150434    
Bug Blocks:    
Attachments:
Description Flags
Multiple versions of OSes
none
List of OSes none

Comment 1 Og Maciel 2015-04-16 21:52:43 UTC
Created attachment 1015396 [details]
Multiple versions of OSes

Comment 2 Mike McCune 2015-04-16 21:53:29 UTC
This appeared to regress from 6.0.8 -> 6.1. Og sees multiple RHEL7 OS entries after syncing.

Comment 4 Bryan Kearney 2015-04-16 22:06:43 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/7621 has been closed
-------------
Justin Sherrill
Applied in changeset commit:katello|7bf74589a76ac5d8295a0aeb2032e4c7fb5fe407.

Comment 7 Justin Sherrill 2015-04-21 18:13:34 UTC
Moving back to NEW, as apparently this 'fix' is already in the beta

Comment 8 Justin Sherrill 2015-05-13 21:31:42 UTC
I have tried to reproduce this on the latest snap syncing:

RHEL 7.0 kickstart
RHEL 7.1 kickstart
RHEL 7Server RPMs
RHEL 7Server Extras
RHEL 7Server Optional
RHEL 7Server Sat 6 tools beta

Are you still able to reproduce og?

Comment 9 Og Maciel 2015-05-15 14:53:35 UTC
Created attachment 1025915 [details]
List of OSes

Hey Justin,

So I gave this issue another crack this morning (using S4C2 build) and I got a mix of 'interesting' results. But first, the steps:

* Enabled Kickstart for:
  * Red Hat Enterprise Linux 5 Server Kickstart i386 5.11
  * Red Hat Enterprise Linux 5 Server Kickstart x86_64 5.11
  * Red Hat Enterprise Linux 6 Server Kickstart i386 6.6
  * Red Hat Enterprise Linux 6 Server Kickstart x86_64 6.6
  * Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.0
  * Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.1
* Enabled the RPMs repositories for all the combinations from above
* Enabled the Satellite Tools channel for all the available combinations as well
* Synchronized only the RHEL 7 channels

As you can see from the attached screenshot:

* when I visit the OS page I see that RHEL 6.6 and RHEL 7.0 and 7.1 are listed but not RHEL 5.11

Question:

* shouldn't I only see RHEL 7.0 and 7.1 since these are the ones I have synchronized?
* if not, then why is RHEL 5.11 'missing'? Possibly related to https://bugzilla.redhat.com/show_bug.cgi?id=1210394 ?

I then created a custom CentOS product with a custom CentOS repo pointing to the URL described in this issue, followed by a sync. I still don't see duplicated entries under the OS page but I also don't see CentOS listed as an available OS. Should I?

Comment 10 Justin Sherrill 2015-05-15 14:58:39 UTC
Og,

So the operating system list will consist of:

Any Operating system of a kickstart tree synced
Any Operating system of a system that has checked in with puppet.

Was this running on a RHEL 6.6 system by chance?

Also Centos will not show up separately from "RedHat" because "RedHat" is the family, and centos is in that family.

Comment 11 Og Maciel 2015-05-15 15:00:48 UTC
Justin, yes, this was run on RHEL 6 and I will also try it on RHEL 7 shortly. Is there a known issue for RHEL 6?

Comment 12 Justin Sherrill 2015-05-15 15:02:14 UTC
No, no known issue.  When a system checks in with puppet, foreman creates an Operating system for it.  The same will happen with satellite running on rhel7.

The redhat 7  os will show up before you even sync because the system running the satellite checks in.

Comment 13 Og Maciel 2015-05-15 15:15:24 UTC
This BZ can now be closed as I can no longer reproduce it using what will become Satellite 6.1 GA.