Bug 2051408 - IP obfuscation algorithm can generate invalid IPs
Summary: IP obfuscation algorithm can generate invalid IPs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: RH Cloud - Inventory
Version: 6.9.8
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.11.0
Assignee: Shimon Shtein
QA Contact: addubey
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-07 08:16 UTC by Shimon Shtein
Modified: 2023-05-19 09:55 UTC (History)
9 users (show)

Fixed In Version: foreman_rh_cloud_5.0.32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2070986 (view as bug list)
Environment:
Last Closed: 2022-07-05 14:32:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github theforeman foreman_rh_cloud pull 694 0 None Merged Fix obfuscated ip address generation 2022-02-07 08:24:53 UTC
Red Hat Issue Tracker TFMRHCLOUD-296 0 None None None 2022-02-07 08:24:53 UTC
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:33:04 UTC

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


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