Bug 2072848 - (release-4.10) Gather namespace names with overlapping UID ranges
Summary: (release-4.10) Gather namespace names with overlapping UID ranges
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Insights Operator
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.10.z
Assignee: Tomas Remes
QA Contact: Joao Fula
URL:
Whiteboard:
Depends On: 2072842
Blocks: 2076903
TreeView+ depends on / blocked
 
Reported: 2022-04-07 06:08 UTC by Tomas Remes
Modified: 2022-05-02 18:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2072842
: 2076903 (view as bug list)
Environment:
Last Closed: 2022-05-02 18:38:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift insights-operator pull 605 0 None open [release-4.10] Bug 2072848: Gather namespace names with overlapping UIDs 2022-04-19 12:27:29 UTC
Red Hat Product Errata RHBA-2022:1601 0 None None None 2022-05-02 18:39:07 UTC

Description Tomas Remes 2022-04-07 06:08:41 UTC
+++ This bug was initially created as a clone of Bug #2072842 +++

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 Joao Fula 2022-04-22 06:11:16 UTC
Verified on 4.10.0-0.ci-2022-04-21-081919.

Verification steps:
1. Create images.config.openshift.io. If it already exists skip step 1.

2. Download archive.

3. Verify that config/image.json file exists.

Comment 3 Joao Fula 2022-04-22 06:16:13 UTC
Correction:
Verified on 4.10.0-0.ci-2022-04-21-081919.

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-2
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-05-02 18:38:50 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 (OpenShift Container Platform 4.10.12 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/RHBA-2022:1601


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