Bug 2074050 - Internal registries with a big number of images delay pod creation due to recursive SELinux file context relabeling
Summary: Internal registries with a big number of images delay pod creation due to rec...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image Registry
Version: 4.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.z
Assignee: Ricardo Maraschini
QA Contact: Keenon Lee
URL:
Whiteboard:
Depends On: 2067995
Blocks: 2074052
TreeView+ depends on / blocked
 
Reported: 2022-04-11 12:45 UTC by OpenShift BugZilla Robot
Modified: 2022-04-25 19:51 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-25 19:51:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-image-registry-operator pull 765 0 None open [release-4.10] Bug 2074050: Deployment annotations, runtimeClassName override and fs policy change 2022-04-11 12:45:14 UTC
Red Hat Product Errata RHBA-2022:1431 0 None None None 2022-04-25 19:51:52 UTC

Comment 1 Keenon Lee 2022-04-13 08:20:03 UTC
sh-4.4$ df -i 
Filesystem       Inodes    IUsed    IFree IUse% Mounted on
/dev/sdb       13107200 13107200        0  100% /registry

set io.kubernetes.cri-o.TrySkipVolumeSELinuxLabel: "true"

Before:
redhat@jitli:~/work/src/test/2074050$ oc get pods -w -n openshift-image-registry
NAME                                              READY   STATUS        RESTARTS   AGE
...
image-registry-5fb7d7fffd-cgd4k                   1/1     Running             0          106s


After:
redhat@jitli:~/work/src/test/2074050$ oc get pods -w -n openshift-image-registry
NAME                                              READY   STATUS        RESTARTS   AGE
...
image-registry-6bdf4f9d79-m9shm                   1/1     Running             0          8s


redhat@jitli:~/work/src/test/2074050$ oc get pod image-registry-6bdf4f9d79-m9shm
...
runtimeClassName: selinux
  schedulerName: default-scheduler
  securityContext:
    fsGroup: 1000310000
    fsGroupChangePolicy: OnRootMismatch
    seLinuxOptions:
      level: s0:c18,c2
...

redhat@jitli:~/work/src/test/2074050$ oc rsh image-registry-6bdf4f9d79-m9shm
sh-4.4$ ls -lZ /registry/docker/registry/v2/repositories/test
total 4
drwxr-sr-x. 5 1000310000 1000310000 system_u:object_r:container_file_t:s0:c2,c18 4096 Apr 13 07:14 testbuild

Comment 6 errata-xmlrpc 2022-04-25 19:51:43 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.11 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:1431


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