Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2072842

Summary: (release-4.11) Gather namespace names with overlapping UID ranges
Product: OpenShift Container Platform Reporter: Tomas Remes <tremes>
Component: Insights OperatorAssignee: Tomas Remes <tremes>
Status: CLOSED ERRATA QA Contact: Joao Fula <jfula>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.11CC: aos-bugs, inecas, mklika, tremes
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2072848 (view as bug list) Environment:
Last Closed: 2022-08-10 11:04:38 UTC Type: Bug
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:    
Bug Blocks: 2072848    

Description Tomas Remes 2022-04-07 05:43:54 UTC
We want to gather namespace names with some overlapping UID ranges. The UID range is available in the "openshift.io/sa.scc.uid-range" annotation and an example of two overlapping UID ranges could be:

- 1000670000/10000 and 1000675000/10000

Comment 2 Tomas Remes 2022-04-12 14:18:21 UTC
There were some additional updates of the new gatherer. Moving back to post. It was decided not to store UID ranges.

Comment 4 Joao Fula 2022-04-19 08:16:58 UTC
Verified on 4.11.0-0.ci-2022-04-18-211945.

Steps to reproduce:
1. Create two new namespaces called test-1 and test-2
2. Edit the YAML with the following:

apiVersion: v1
kind: Namespace
metadata:
  annotations:
    openshift.io/description: ""
    openshift.io/display-name: ""
    openshift.io/requester: kube:admin
    openshift.io/sa.scc.uid-range: 1000670000/10000
  labels:
    kubernetes.io/metadata.name: test-1
  name: test-1
spec:

apiVersion: v1
kind: Namespace
metadata:
  annotations:
    openshift.io/description: ""
    openshift.io/display-name: ""
    openshift.io/requester: kube:admin
    openshift.io/sa.scc.uid-range: 1000675000/10000
  labels:
    kubernetes.io/metadata.name: test-2
  name: test-1
spec:

3. Restart insights operator
4. Download archive
5. Check config/namespaces_with_overlapping_uids.json


There should be an array with the names of the overlapping namespaces (test-1, test-2)

Comment 6 errata-xmlrpc 2022-08-10 11:04:38 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.11.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-2022:5069