Bug 1977414
Summary: | Build Config timed out waiting for condition 400: Bad Request | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Divyam Pateriya <dpateriy> |
Component: | Build | Assignee: | Alice Rum <irum> |
Status: | CLOSED ERRATA | QA Contact: | Jitendar Singh <jitsingh> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 4.6.z | CC: | aos-bugs, cdaley, joachim.burket, sasakshi, xiuwang |
Target Milestone: | --- | ||
Target Release: | 4.10.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-03-10 16:04:21 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
Divyam Pateriya
2021-06-29 17:08:01 UTC
The build timed out because the pod created for the build remains in a perpetual "PodInitializing" state, waiting for the referenced ConfigMap to appear. Unfortunately there is nothing directly in the pod status or information returned from `oc` that makes it clear the build can't run because it references a ConfigMap that doesn't exist yet. The same thing occurs if a BuildConfig references a Secret that doesn't exist. The better user experience in this situation is for the build to fail immediately, with a reason and message indicating that the referenced ConfigMap (or Secret) does not exist. Users will then be able to take corrective action. This can be reproduced with a BuildConfig that references a ConfigMap or Secret that doesn't exist and uses Binary source. *** Bug 1978627 has been marked as a duplicate of this bug. *** VERIFIED =========== jsingh@fugaku /usr/local/go/src/github.com/openshift/ruby-hello-world master ± oc new-project build-test Now using project "build-test" on server "https://api.ci-ln-yqvddv2-f76d1.origin-ci-int-gce.dev.openshift.com:6443". You can add applications to this project with the 'new-app' command. For example, try: oc new-app rails-postgresql-example to build a new example application in Ruby. Or use kubectl to deploy a simple Kubernetes application: kubectl create deployment hello-node --image=k8s.gcr.io/serve_hostname jsingh@fugaku /usr/local/go/src/github.com/openshift/ruby-hello-world master ± oc get bc NAME TYPE FROM LATEST example Docker Binary 1 jsingh@fugaku /usr/local/go/src/github.com/openshift/ruby-hello-world master ± oc start-build example --from-dir=. --wait --follow Uploading directory "." as binary input for the build ... Uploading finished Error from server (BadRequest): build example-2 failed: InvalidOutputReference: Output image could not be resolved. ====================================================================================================================== kind: BuildConfig apiVersion: build.openshift.io/v1 metadata: name: example namespace: build-test uid: f5df1936-8de4-4973-8b6e-eb8b4412fb8b resourceVersion: '33654' generation: 3 creationTimestamp: '2021-09-30T12:05:38Z' managedFields: - manager: Mozilla operation: Update apiVersion: build.openshift.io/v1 time: '2021-09-30T12:05:38Z' fieldsType: FieldsV1 fieldsV1: 'f:spec': 'f:failedBuildsHistoryLimit': {} 'f:output': 'f:to': .: {} 'f:kind': {} 'f:name': {} 'f:runPolicy': {} 'f:source': 'f:binary': {} 'f:configMaps': {} 'f:type': {} 'f:strategy': 'f:dockerStrategy': .: {} 'f:dockerfilePath': {} 'f:forcePull': {} 'f:type': {} 'f:successfulBuildsHistoryLimit': {} 'f:triggers': {} - manager: openshift-apiserver operation: Update apiVersion: build.openshift.io/v1 time: '2021-09-30T12:05:38Z' fieldsType: FieldsV1 fieldsV1: 'f:status': 'f:lastVersion': {} spec: nodeSelector: null output: to: kind: ImageStreamTag name: 'test-configmap-input-is:0.1.0' resources: {} successfulBuildsHistoryLimit: 3 failedBuildsHistoryLimit: 3 strategy: type: Docker dockerStrategy: forcePull: true dockerfilePath: Dockerfile postCommit: {} source: type: Binary binary: {} configMaps: - configMap: name: yum-satellite-repos destinationDir: yum.repos.d triggers: - type: ConfigChange runPolicy: Parallel status: lastVersion: 2 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 Container Platform 4.10.3 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:0056 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |