Description of problem ---------------------- After creating a HostPathProvisioner CustomResource, the DaemonSet is created by the hostpath-provisioner-operator but hostpath-provisioner Pods are not created. Analysis -------- The hostpath-provisioner Pod template has been modified in upstream PR https://github.com/kubevirt/hostpath-provisioner-operator/pull/113. Among other changes, the Pod is now privileged. > kind: DaemonSet > apiVersion: apps/v1 > metadata: > name: hostpath-provisioner > namespace: openshift-cnv > spec: > [...] > template: > [...] > spec: > containers: > - name: hostpath-provisioner > [...] > securityContext: > privileged: true > [...] However the SCC has not been updated to allow such privileges > kind: SecurityContextConstraints > apiVersion: security.openshift.io/v1 > metadata: > name: hostpath-provisioner > [...] > allowPrivilegedContainer: false > [...] > users: > - system:serviceaccount:openshift-cnv:hostpath-provisioner-admin > [...] Modifying the SCC to allow privileged containers (after scaling down the hostpath-provisioner-operator) fixes the issue. Version ------- OCP: 4.9.0-0.nightly CNV: http://cnv-version-explorer.apps.cnv.engineering.redhat.com/BundleDetails?ver=v4.9.0-89
Fixed upstream in https://github.com/kubevirt/hostpath-provisioner-operator/pull/123. Verified with http://cnv-version-explorer.apps.cnv.engineering.redhat.com/BundleDetails?ver=v4.9.0-99.
The feature should be fully addressed in CNV 4.10, so change the version to 4.10 If the issue can not be reproduced on 4.10, feel free to close it.
Verified as already fixed in 4.9.0-99 by Denis Ollier. This means it's in 4.9.0 already.
Undoing previous, I didn't realize that cnv-4.9 went backwards and the breakage is now specific to 4.10 and should be fixed in 4.10.
Fix for v4.10.0 should be from hostpath-provisioner-operator v4.10.0-4.
*** Bug 1992244 has been marked as a duplicate of this bug. ***
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.10.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-2022:0947