Bug 1903639 - Hostsubnet gatherer produces wrong output
Summary: Hostsubnet gatherer produces wrong output
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Insights Operator
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.7.0
Assignee: Tomas Remes
QA Contact: Pavel Šimovec
URL:
Whiteboard:
Depends On:
Blocks: 1904014
TreeView+ depends on / blocked
 
Reported: 2020-12-02 14:40 UTC by Tomas Remes
Modified: 2021-02-24 15:37 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Wrong value was serialized to the hostsubnet json file. Consequence: Content of Hostsubnets config files gathered by Insights Operators was same for all hostsubnets. Fix: Serialize the correct value of hostsubnet. Result: Hostsubnet config files are gathered correctly.
Clone Of:
: 1904014 (view as bug list)
Environment:
Last Closed: 2021-02-24 15:37:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift insights-operator pull 274 0 None closed Bug 1903639: Add hostsubnet to sample archive & fix bug in the hostsu… 2021-01-21 00:28:29 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:37:55 UTC

Description Tomas Remes 2020-12-02 14:40:16 UTC
Description of problem:
The Insights Operator archive contains hostsubnet json definitions. These definitions are wrongly gathered, because they are all the same. 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Pavel Šimovec 2020-12-03 13:56:08 UTC
I tried it with with IO at commit e6758baf6cf6c908474b21612e2a0fdf40663143
Bug was there, all 4 hostsubnet files in IO archive did have same "name", "host",..

Then I have tried it with a fix from this PR, and the files looked as expected (commit 40fa35943dce163ecc5fcf44555971323cc8b172)
And the hostsubnet io archive files looked fine

I was using cluster version 4.6.1

Verified on 40fa35943dce163ecc5fcf44555971323cc8b172

Comment 5 errata-xmlrpc 2021-02-24 15:37:21 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: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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-2020:5633


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