Bug 1996407 - [cdi-functional-tests] cdi-docker-registry-host Pod fails to start
Summary: [cdi-functional-tests] cdi-docker-registry-host Pod fails to start
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.9.0
Assignee: Alex Kalenyuk
QA Contact: Jenia Peimer
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-22 17:33 UTC by Denis Ollier
Modified: 2021-11-02 16:01 UTC (History)
3 users (show)

Fixed In Version: hco-bundle-registry-container-v4.9.0-147
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-02 16:00:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt containerized-data-importer pull 1905 0 None None None 2021-08-25 11:41:17 UTC
Github kubevirt containerized-data-importer pull 1907 0 None None None 2021-08-25 12:45:17 UTC
Red Hat Product Errata RHSA-2021:4104 0 None None None 2021-11-02 16:01:03 UTC

Description Denis Ollier 2021-08-22 17:33:00 UTC
Description of problem
----------------------

The Pod cdi-docker-registry-host required when running CDI tier1 tests is not starting on D/S CNV clusters.

Analysis
--------

Upstream PR https://github.com/kubevirt/containerized-data-importer/pull/1886 added the SETFCAP capability to the registry-populate container of the cdi-docker-registry-host Pod.

=> https://github.com/kubevirt/containerized-data-importer/blob/main/manifests/templates/registry-host.yaml.in

However the relevant SCC has not been updated to allow such privileges resulting in the cdi-docker-registry-host Pod failing to start:

>    message: 'pods "cdi-docker-registry-host-85764c55bc-" is forbidden: unable to
>      validate against any security context constraint: [provider "anyuid": Forbidden:
>      not usable by user or serviceaccount, spec.containers[2].securityContext.capabilities.add:
>      Invalid value: "SETFCAP": capability may not be added, spec.initContainers[0].securityContext.runAsUser:
>      Invalid value: 0: must be in the ranges: [1000680000, 1000689999], spec.containers[0].securityContext.runAsUser:
>      Invalid value: 0: must be in the ranges: [1000680000, 1000689999], spec.containers[1].securityContext.runAsUser:
>      Invalid value: 0: must be in the ranges: [1000680000, 1000689999], spec.containers[2].securityContext.runAsUser:
>      Invalid value: 0: must be in the ranges: [1000680000, 1000689999], provider
>      "nonroot": Forbidden: not usable by user or serviceaccount, provider "noobaa":
>      Forbidden: not usable by user or serviceaccount, provider "noobaa-endpoint":
>      Forbidden: not usable by user or serviceaccount, provider "hostmount-anyuid":
>      Forbidden: not usable by user or serviceaccount, provider "hostpath-provisioner":
>      Forbidden: not usable by user or serviceaccount, provider "bridge-marker": Forbidden:
>      not usable by user or serviceaccount, provider "machine-api-termination-handler":
>      Forbidden: not usable by user or serviceaccount, provider "kubevirt-controller":
>      Forbidden: not usable by user or serviceaccount, provider "hostnetwork": Forbidden:
>      not usable by user or serviceaccount, provider "hostaccess": Forbidden: not
>      usable by user or serviceaccount, provider "linux-bridge": Forbidden: not usable
>      by user or serviceaccount, provider "nmstate": Forbidden: not usable by user
>      or serviceaccount, provider "kubevirt-handler": Forbidden: not usable by user
>      or serviceaccount, provider "rook-ceph": Forbidden: not usable by user or serviceaccount,
>      provider "node-exporter": Forbidden: not usable by user or serviceaccount, provider
>      "privileged": Forbidden: not usable by user or serviceaccount, provider "rook-ceph-csi":
>      Forbidden: not usable by user or serviceaccount]'

Version
-------
OCP-4.9.0-nightly
CNV: http://cnv-version-explorer.apps.cnv.engineering.redhat.com/BundleDetails?ver=v4.9.0-125
CDI tier1 tests compiled from https://github.com/kubevirt/containerized-data-importer/commit/98f53c88.

Comment 4 errata-xmlrpc 2021-11-02 16:00: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 (Moderate: OpenShift Virtualization 4.9.0 Images 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-2021:4104


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