Bug 1329033

Summary: Host OS changes in Host definition
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: Content ManagementAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Stephen Benjamin <stbenjam>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: cwelton, stbenjam
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/14718
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:15:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Justin Sherrill 2016-04-21 00:45:16 UTC
I have a HOST defined using Centos 7.2 as the OS.  After the machine is built sometimes the HOST definition changes itself back to Centos 7.  This causes issues in that some of the templates ( partition tables etc ) are not associated to the centos 7 OS.

This occurs in Katello 3.0 RC2.  According to JSherril it could be this 

"This is likely due to the new reporting of the operating system by 
subscription-manager.  After looking at a centos machine it appears that 
centos is reported as '7' instead of '7.2' by subscription manager and 
thus gets associated with Centos 7.0.  Sadly foreman currently doesn't 
differentiate between Operating System for provisioning and Operating 
System reported via facts. 

I guess we'll need to turn that auto reporting off for Centos or some 
other workaround"

Comment 1 Justin Sherrill 2016-04-21 00:45:18 UTC
Created from redmine issue http://projects.theforeman.org/issues/14718

Comment 2 Justin Sherrill 2016-04-21 00:45:22 UTC
Upstream bug assigned to jsherril

Comment 4 Stephen Benjamin 2016-07-15 13:10:49 UTC
Verified on Satellite 6.2 Snap 20.1.  No OS is set for a CentOS 7 host imported into Satellite via subscription-manager facts:

[root@sat-snap-rhel7 ~]# hammer -u admin -p changeme host info --name centos7.example.com
Id:                 5
Name:               centos7.example.com
Organization:       Default Organization
Location:           Default Location
Puppet CA Id:       
Puppet Master Id:   
Cert name:          centos7.example.com
Managed:            no
Installed at:       
Last report:        
Network:            
    IP:     192.168.121.212
    MAC:    52:54:00:17:44:af
    Domain: example.com
Network interfaces: 
 1) Id:          6
    Identifier:  docker0
    Type:        interface
    MAC address: 56:84:7a:fe:97:99
    IP address:  172.17.42.1
    FQDN:
 2) Id:          5
    Identifier:  eth0
    Type:        interface (primary, provision)
    MAC address: 52:54:00:17:44:af
    IP address:  192.168.121.212
    FQDN:
Operating system:   
    Architecture:           x86_64
    Build:                  no
    Custom partition table:

Comment 5 Bryan Kearney 2016-07-27 11:15:08 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/RHBA-2016:1501