Bug 2075584
Summary: | improve clarity of build failure messages when using csi shared resources but tech preview is not enabled | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Gabe Montero <gmontero> |
Component: | Build | Assignee: | Corey Daley <cdaley> |
Status: | CLOSED ERRATA | QA Contact: | Jitendar Singh <jitsingh> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.11 | CC: | aos-bugs, cdaley, pbhattac, pkumari, spandura |
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:07:06 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: |
Description
Gabe Montero
2022-04-14 15:59:06 UTC
also https://github.com/openshift/openshift-controller-manager/blob/19a7c51e45d3b09563c4042fbfaaf822ad081dbc/pkg/build/controller/build/build_controller.go#L1234 needs to be updated to handle the utilruntime.HandleError(err) call on line 1251 verified ================= $ oc new-project my-csi-app-namespace Now using project "my-csi-app-namespace" on server "https://api.rhoms-4.11-042204.dev.openshiftappsvc.org:6443". You can add applications to this project with the 'new-app' command. For example, try: oc new-app ruby~https://github.com/sclorg/ruby-ex.git to build a new example application in Python. Or use kubectl to deploy a simple Kubernetes application: kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node pkumari$ oc apply -f ./examples/build-with-rhel-entitlements/01-role-bc.yaml role.rbac.authorization.k8s.io/shared-resource-my-share-bc created pkumari$ oc apply -f ./examples/build-with-rhel-entitlements/01-rolebinding-bc.yaml rolebinding.rbac.authorization.k8s.io/shared-resource-my-share-bc created pkumari$ oc apply -f ./examples/build-with-rhel-entitlements/02-csi-share-bc.yaml error: unable to recognize "./examples/build-with-rhel-entitlements/02-csi-share-bc.yaml": no matches for kind "SharedSecret" in version "sharedresource.openshift.io/v1alpha1" pkumari$ oc apply -f ./examples/build-with-rhel-entitlements/03-bc.yaml buildconfig.build.openshift.io/my-csi-bc created pkumari$ oc start-build my-csi-bc build.build.openshift.io/my-csi-bc-1 started pkumari$ oc get build NAME TYPE FROM STATUS STARTED DURATION my-csi-bc-1 Docker Dockerfile New (CannotCreateBuildPodSpec) pkumari$ oc describe build my-csi-bc-1 Name: my-csi-bc-1 Namespace: my-csi-app-namespace Created: About a minute ago Labels: buildconfig=my-csi-bc openshift.io/build-config.name=my-csi-bc openshift.io/build.start-policy=Serial Annotations: openshift.io/build-config.name=my-csi-bc openshift.io/build.number=1 Status: New (Failed to create pod spec: failed to create a build pod spec for build my-csi-app-namespace/my-csi-bc-1: csi volumes require the BuildCSIVolumes feature gate to be enabled) Duration: waiting for 1m56s Build Config: my-csi-bc Build Pod: my-csi-bc-1-build Strategy: Docker Dockerfile: FROM registry.redhat.io/ubi8/ubi:latest RUN ls -la /etc/pki/entitlement RUN rm /etc/rhsm-host RUN yum repolist --disablerepo=* RUN subscription-manager repos --enable rhocp-4.9-for-rhel-8-x86_64-rpms RUN yum -y update RUN yum install -y openshift-clients.x86_64 Empty Source: no input source provided Build trigger cause: Manually triggered Events: <none> 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 |