Bug 1888165 - [release 4.6] IO doesn't recognize namespaces - 2 resources with the same name in 2 namespaces -> only 1 gets collected
Summary: [release 4.6] IO doesn't recognize namespaces - 2 resources with the same nam...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Insights Operator
Version: 4.7
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.6.z
Assignee: Marcell Sevcsik
QA Contact: Pavel Šimovec
URL:
Whiteboard:
: 1887885 (view as bug list)
Depends On: 1886462
Blocks: 1884551 1887886 1889318
TreeView+ depends on / blocked
 
Reported: 2020-10-14 09:29 UTC by Marcell Sevcsik
Modified: 2021-02-04 10:14 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1886462
Environment:
Last Closed: 2020-12-21 13:23:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift insights-operator pull 221 0 None closed [release 4.6] Bug 1888165: Add the namespace to the gatherers reports to avoid conflicts 2021-02-04 10:13:20 UTC
Red Hat Product Errata RHSA-2020:5614 0 None None None 2020-12-21 13:24:13 UTC

Comment 2 Pavel Šimovec 2020-12-14 09:48:43 UTC
checked on previous commit release-4.6 081448450d6a8b72281bf62e8edc051b45239469
I have created 2 machinesets with the same name in different namespace

oc get machinesets --all-namespaces
NAMESPACE               NAME                                               DESIRED   CURRENT   READY     AVAILABLE   AGE
default                 d50d0126-c90b-4428-a75f-dc08cd02960a-worker-test   1                                         7s
openshift-machine-api   d50d0126-c90b-4428-a75f-dc08cd02960a-worker-test   1                                         62s

=== RUN   TestArchiveContains/MachineSet
    main_test.go:363: 1 machine set file matches pattern `^machinesets/.*\.json$`

only 1 machineset was collected, previous bug confirmed

Replacing remote IO to relevant commit release-4.6 0fd298a3227bddf46977e2aeeabfbcefdbb260bc

I rerun the same test
=== RUN   TestArchiveContains/MachineSet
    main_test.go:363: 2 machine set files match pattern `^machinesets/.*\.json$`
now works as expected, both machine sets were collected
VERIFIED

Comment 5 errata-xmlrpc 2020-12-21 13:23:55 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 (Important: OpenShift Container Platform 4.6.9 security and bug fix 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:5614

Comment 6 Marcell Sevcsik 2021-02-04 10:14:26 UTC
*** Bug 1887885 has been marked as a duplicate of this bug. ***


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