Description of problem: When multiple builds are queued and the running build fails, the next build is not always started immediately, and the failed build does not get its completion time/duration set properly. Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. define a buildconfig that will fail to build (e.g. points to an invalid source repository) 2. start 4 builds 3. watch the builds, observe that when the first build fails, the next build does not necessarily start immediately. 4. oc describe the failed build, observe that the duration reports that the build is "waiting for Xs" and X continues to change each time oc describe is run. Actual results: See above (step 3, 4). Expected results: next build should start immediately, build should report a fixed duration based on how long it actually took to run.
PR https://github.com/openshift/origin/pull/13670
This has been merged into ocp and is in OCP v3.5.5.7 or newer.
When previous build fail, the following one start immediately, so moving this bug to verified on OCP 3.5.5.7: [wzheng@openshift-qe work]$ oc get builds --watch NAME TYPE FROM STATUS STARTED DURATION s2i-httpd-example-11 Source Git@eaa1387 Failed (PullBuilderImageFailed) 29 seconds ago 3s s2i-httpd-example-12 Source Git@eaa1387 Failed (PullBuilderImageFailed) 22 seconds ago 2s s2i-httpd-example-13 Source Git@eaa1387 Failed (PullBuilderImageFailed) 16 seconds ago 2s s2i-httpd-example-14 Source Git@eaa1387 Failed (PullBuilderImageFailed) 12 seconds ago 3s s2i-httpd-example-15 Source Git@eaa1387 Failed (PullBuilderImageFailed) 7 seconds ago 3s s2i-httpd-example-16 Source Git Pending s2i-httpd-example-17 Source Git New NAME TYPE FROM STATUS STARTED DURATION s2i-httpd-example-16 Source Git Running 1 second ago s2i-httpd-example-16 Source Git@eaa1387 Running 2 seconds ago s2i-httpd-example-16 Source Git@eaa1387 Failed (PullBuilderImageFailed) 2 seconds ago s2i-httpd-example-16 Source Git@eaa1387 Failed (PullBuilderImageFailed) 3 seconds ago 2s s2i-httpd-example-17 Source Git New s2i-httpd-example-17 Source Git Pending s2i-httpd-example-17 Source Git Running 2 seconds ago s2i-httpd-example-17 Source Git@eaa1387 Running 4 seconds ago s2i-httpd-example-17 Source Git@eaa1387 Failed (PullBuilderImageFailed) 5 seconds ago s2i-httpd-example-17 Source Git@eaa1387 Failed (PullBuilderImageFailed) 6 seconds ago 4s
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, 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/RHBA-2017:1129