Bug 2051408

Summary: IP obfuscation algorithm can generate invalid IPs
Product: Red Hat Satellite Reporter: Shimon Shtein <sshtein>
Component: RH Cloud - InventoryAssignee: Shimon Shtein <sshtein>
Status: CLOSED ERRATA QA Contact: addubey
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.8CC: ahumbe, aruzicka, bbuckingham, bkinney, ehelms, jpathan, pcreech, swadeley, wpinheir
Target Milestone: 6.11.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman_rh_cloud_5.0.32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2070986 (view as bug list) Environment:
Last Closed: 2022-07-05 14:32:45 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 Shimon Shtein 2022-02-07 08:16:33 UTC
Description of problem:

Assuming ip obfuscation is enabled in insights-client.

If the list of ips passed by insights-client is too long, the ips generated by rh_cloud plugin could result in invalid value (e.g. 10.230.230.300)


How reproducible:

Always.


Steps to Reproduce:
1. Set up a host with insights-client
2. Configure insights client to use ip obfuscation
3. Add 260 ips to /etc/hosts (this is not the only way, but it's quite simple one). We need to generate a long list of ips in obfuscated ips fact.
4. Run insights-client to generate the fact
5. Run subscription-manager to upload the fact to Satellite
6. Generate an rh_cloud report
7. Observe the generated ips

Actual results:

IP record in invalid format (10.230.230.300)

Expected results:

Correct IP record (10.230.231.10)


Additional info:

Comment 1 Bryan Kinney 2022-03-11 06:54:47 UTC
The version of tfm-rubygem-foreman_rh_cloud from redhat.com is 4.0.31-1.el7sat
Is this the same as foreman_rh_cloud_5.0.32 ?

We have a partner waiting on this fix and applying this would really help.

https://access.redhat.com/errata/RHSA-2022:0790

Comment 8 errata-xmlrpc 2022-07-05 14:32:45 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 (Moderate: Satellite 6.11 Release), 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-2022:5498