Description of problem: When building a Docker image that uses more than the resources limit (for example memory) the build fails with Generic Build failure with nothing in the logs. The error message mentions to check the logs but there is nothing telling that the build was actually killed because resource constraints. It would be much better if OpenShift told what exactly had happened. Version-Release number of selected component (if applicable): OpenShift Master: v3.9.31 Kubernetes Master: v1.9.1+a0ce1bc657 OpenShift Web Console: v3.9.31 How reproducible: Always Steps to Reproduce: 1. Create a project and set a low resources limit 2. Create a build config to build a docker image which requires more memory than the amount allowed by the resources limit. 3. Try to build and watch the Web UI and the build logs. The build will have the error state and no useful information will be given on the logs. For example try to build https://gitlab.com/cloudigrade/frontigrade.git with the following limitrange: $ oc describe limitrange Name: resource-limits Namespace: cloudigrade-review Type Resource Min Max Default Request Default Limit Max Limit/Request Ratio ---- -------- --- --- --------------- ------------- ----------------------- Pod memory 50Mi 2Gi - - - Pod cpu 100m 1 - - - Container cpu - - 200m 300m 10 Container memory - - 100Mi 200Mi - Actual results: The build fails with Generic Build failure and no useful information is provided even though was OpenShift that actually killed it. Expected results: The build fails with a more specific failure and stating that it was killed by OpenShift because resource constraints. Additional info:
*** This bug has been marked as a duplicate of bug 1596440 ***