Bug 1975157 - (release-4.9) records data size is incorrectly growing when obfuscation is enabled or when there are duplicated records
Summary: (release-4.9) records data size is incorrectly growing when obfuscation is en...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Insights Operator
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.9.0
Assignee: Tomas Remes
QA Contact: Dmitry Misharov
URL:
Whiteboard:
Depends On:
Blocks: 1967949
TreeView+ depends on / blocked
 
Reported: 2021-06-23 08:16 UTC by Tomas Remes
Modified: 2021-10-18 17:36 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of: 1967949
Environment:
Last Closed: 2021-10-18 17:36:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:36:40 UTC

Description Tomas Remes 2021-06-23 08:16:19 UTC
+++ This bug was initially created as a clone of Bug #1967949 +++

Description of problem:
Records data size (in recorder.go) is incorrectly growing when obfuscation is enabled (because we don't use the obfuscated record name to store the corresponding record) or when there are duplicated records (duplicated record is not correctly checked which leads to overwriting and increasing the size)

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Tomas Remes 2021-06-23 08:19:19 UTC
Already fixed with https://github.com/openshift/insights-operator/pull/444

Comment 2 Dmitry Misharov 2021-07-07 13:12:15 UTC
Verified on OCP 4.9.0-0.nightly-2021-07-07-021823.

Verification steps:

1. Download an insights-operator archive
2. Check files in /config/machineconfigs/
3. You should have something similar:

/config/machineconfigs/00-master.json
/config/machineconfigs/00-worker.json
/config/machineconfigs/01-master-container-runtime.json
/config/machineconfigs/01-master-kubelet.json
/config/machineconfigs/01-worker-container-runtime.json
/config/machineconfigs/01-worker-kubelet.json
/config/machineconfigs/99-master-generated-registries.json
/config/machineconfigs/99-master-ssh.json
/config/machineconfigs/99-worker-generated-registries.json
/config/machineconfigs/99-worker-ssh.json
/config/machineconfigs/rendered-master-5741db177786fe8c767d6d9dba32a3fc.json
/config/machineconfigs/rendered-worker-44f533a629ec81654c116f454e864ed7.json

Comment 3 Dmitry Misharov 2021-07-07 13:13:45 UTC
Discarding comment #2. Wrong BZ.

Comment 4 Dmitry Misharov 2021-07-20 08:58:42 UTC
Verified on 4.9.0-0.nightly-2021-07-19-224913.

Verification steps:

1. Enable obfuscation
2. Check the archive content and size

Comment 7 errata-xmlrpc 2021-10-18 17:36: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.9.0 bug fix and security 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-2021:3759


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