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 1329033 - Host OS changes in Host definition
Summary: Host OS changes in Host definition
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: Stephen Benjamin
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-21 00:45 UTC by Justin Sherrill
Modified: 2019-09-26 17:34 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:15:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14718 0 None None None 2016-04-22 15:58:21 UTC

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


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