Bug 1389063

Summary: Subscription manager interface facts are accepted without validation
Product: Red Hat Satellite Reporter: Stephen Benjamin <stbenjam>
Component: Content ManagementAssignee: Stephen Benjamin <stbenjam>
Status: CLOSED ERRATA QA Contact: Justin Sherrill <jsherril>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: bbuckingham, cwelton, egolov, inecas, jsherril, mmello, mmithaiw, tasander
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 17:06:26 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:

Description Stephen Benjamin 2016-10-26 18:25:05 UTC
Description of problem:
Subscription manager sends values like "Unknown" as an ip address value on RHEL 5, and these values are directly set as the host's interface's IP.  As fact uploaded hosts are saved without validation, these cause errors later for things like remote execution which expects to find valid IP's in the interfaces.

How reproducible:
Always

Steps to Reproduce:
1. Have an interface on an el5 box w/out an IP
2. subscription-manager facts | grep ip shows 'Unknown' for that interface
3. Register with subscription manager

Actual results:
Host interface has 'Unknown' as IP

Expected results:
Host interface has no IP

Comment 1 Stephen Benjamin 2016-10-26 19:19:51 UTC
Created redmine issue http://projects.theforeman.org/issues/17115 from this bug

Comment 2 Bryan Kearney 2016-10-26 20:20:54 UTC
Upstream bug assigned to stbenjam

Comment 3 Bryan Kearney 2016-10-26 20:20:56 UTC
Upstream bug component is Content Management

Comment 4 Bryan Kearney 2016-10-26 20:20:58 UTC
Upstream bug assigned to stbenjam

Comment 6 Marcelo Moreira de Mello 2016-10-26 21:19:52 UTC
Added KCS https://access.redhat.com/solutions/2728591

Comment 8 Bryan Kearney 2016-10-28 20:20:27 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17115 has been resolved.

Comment 11 Taft Sanders 2016-12-21 13:11:21 UTC
*** Bug 1384970 has been marked as a duplicate of this bug. ***

Comment 12 Justin Sherrill 2017-09-06 17:35:57 UTC
Verified on 6.3.0 snap 14.0

Registered a host with a custom fact setting the ip address of "Unknown".  Host was created with an interface without an ip address as expected.

Comment 13 Bryan Kearney 2018-02-21 17:06:26 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