Bug 1888165

Summary: [release 4.6] IO doesn't recognize namespaces - 2 resources with the same name in 2 namespaces -> only 1 gets collected
Product: OpenShift Container Platform Reporter: Marcell Sevcsik <msevcsik>
Component: Insights OperatorAssignee: Marcell Sevcsik <msevcsik>
Status: CLOSED ERRATA QA Contact: Pavel Šimovec <psimovec>
Severity: high Docs Contact:
Priority: high    
Version: 4.7CC: aos-bugs, inecas, psimovec, rluders, tremes
Target Milestone: ---   
Target Release: 4.6.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1886462 Environment:
Last Closed: 2020-12-21 13:23:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1886462    
Bug Blocks: 1884551, 1887886, 1889318    

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. ***