Bug 2067995
Summary: | Internal registries with a big number of images delay pod creation due to recursive SELinux file context relabeling | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Lucas López Montero <llopezmo> |
Component: | Image Registry | Assignee: | Ricardo Maraschini <rmarasch> |
Status: | CLOSED ERRATA | QA Contact: | XiuJuan Wang <xiuwang> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 4.8 | CC: | aos-bugs, bdettelb, obulatov, pehunt, rdey, rmarasch, wewang, wking |
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: | Environment: | ||
Last Closed: | 2022-08-10 11:01:08 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: | 2074050 |
Description
Lucas López Montero
2022-03-24 08:18:37 UTC
Verified on 4.11.0-0.nightly-2022-04-06-213816 cluster $oc rsh image-registry-7b5787bb5-krhmq df -i /dev/sdb 13107200 13106107 1093 100% /registry With 13 millons files, the registry recreate with 3 mins oc get pods -w NAME READY STATUS RESTARTS AGE cluster-image-registry-operator-6d87668f65-s4l9z 1/1 Running 0 4h36m image-registry-5d48768f6-25gvw 0/1 ContainerCreating 0 62s node-ca-9bcbj 1/1 Running 0 4h24m node-ca-czm2d 1/1 Running 0 4h24m node-ca-kkwbk 1/1 Running 0 4h24m node-ca-l9gv6 1/1 Running 0 4h24m node-ca-w6fn6 1/1 Running 0 4h24m node-ca-zk4ts 1/1 Running 0 4h24m image-registry-5d48768f6-25gvw 0/1 Running 0 2m42s image-registry-5d48768f6-25gvw 1/1 Running 0 3m Then Override the annonation and runtimeclass oc edit config.image unsupportedConfigOverrides: deployment: annotations: io.kubernetes.cri-o.TrySkipVolumeSELinuxLabel: "true" runtimeClassName: selinux The registry recreate time cuts down to 2m with 13 millons files. oc get pods -w NAME READY STATUS RESTARTS AGE cluster-image-registry-operator-6d87668f65-s4l9z 1/1 Running 0 8h image-registry-7b5787bb5-krhmq 0/1 ContainerCreating 0 16s node-ca-9bcbj 1/1 Running 1 7h58m node-ca-czm2d 1/1 Running 0 7h58m node-ca-kkwbk 1/1 Running 0 7h58m node-ca-l9gv6 1/1 Running 1 7h58m node-ca-w6fn6 1/1 Running 0 7h58m node-ca-zk4ts 1/1 Running 1 7h58m image-registry-7b5787bb5-krhmq 0/1 Running 0 96s image-registry-7b5787bb5-krhmq 1/1 Running 0 2m oc rsh image-registry-7b5787bb5-krhmq ls -lZ /registry/docker/registry/v2/repositories/default total 4 drwxr-sr-x. 5 1000330000 1000330000 system_u:object_r:container_file_t:s0:c12,c18 4096 Apr 7 03:28 httpd-ex oc get pods image-registry-7b5787bb5-krhmq -o yaml apiVersion: v1 kind: Pod metadata: annotations: imageregistry.operator.openshift.io/dependencies-checksum: sha256:0a825836652a80e42b437e0cd9fd7f9a3b3585717c05600c853ad7251dbc936b io.kubernetes.cri-o.TrySkipVolumeSELinuxLabel: "true" ====================snip==================== runtimeClassName: selinux schedulerName: default-scheduler securityContext: fsGroup: 1000330000 fsGroupChangePolicy: OnRootMismatch seLinuxOptions: level: s0:c18,c12 ====================snip==================== 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 |