Comments (9)
The error I received was
Failed to create build pod "petclinic-deploy-pipeline-run-l2qgm-build-8tpt5": pods "petclinic-deploy-pipeline-run-l2qgm-build-8tpt5-pod-f3696e" is forbidden: maximum cpu usage per Pod is 2, but limit is 3500m.
I updated the LimitRange resource to update the max cpu on the Container for the pipleline to not fail immegiately
kind: LimitRange
apiVersion: v1
metadata:
name: pipelines-tutorial-core-resource-limits
namespace: pipelines-tutorial
selfLink: >-
/api/v1/namespaces/pipelines-tutorial/limitranges/pipelines-tutorial-core-resource-limits
uid: 27429129-de34-11e9-98ce-12633bbe5f7a
resourceVersion: '120638'
creationTimestamp: '2019-09-23T18:58:38Z'
spec:
limits:
- type: Container
max:
cpu: '3'
memory: 6Gi
min:
memory: '0'
default:
cpu: 500m
memory: 1536Mi
defaultRequest:
cpu: 50m
memory: 256Mi
- type: Pod
max:
memory: 12Gi
min:
memory: '0'
from pipelines-tutorial.
This could be specific to RHDPS, but it looks like you need to edit the limit range for the pipelines-tutorial
project to set the limit ranges to a min memory of 0 instead of a min of 6Mi. Why there is a request of 0 as stated above is odd though.
The current workaround, as said in the paragraph above, is to go under the Administration tab, select the Limit Ranges option, select the pipelines-tutorial
project, and edit the limit range, as shown below, to set the min values for max/min for memory to 0:
kind: LimitRange
apiVersion: v1
metadata:
name: pipelines-tutorial-core-resource-limits
namespace: pipelines-tutorial
selfLink: >-
/api/v1/namespaces/pipelines-tutorial/limitranges/pipelines-tutorial-core-resource-limits
uid: 492a15c6-9d90-11e9-ae59-0a8e513d9bd0
resourceVersion: '1063283'
creationTimestamp: '2019-07-03T12:44:23Z'
spec:
limits:
- type: Container
max:
memory: 6Gi
min:
memory: '0'
default:
cpu: 500m
memory: 1536Mi
defaultRequest:
cpu: 50m
memory: 256Mi
- type: Pod
max:
memory: 12Gi
min:
memory: '0'
This allowed the pipeline to run and execute successfully on a 4.1 RHPDS cluster.
from pipelines-tutorial.
It's probably simpler to just delete the limitrange?
oc delete limitrange --all -n pipelines-tutorial
It would be great if you send the above comments as a PR with the instructions for RHPDS.
from pipelines-tutorial.
Deleting the LimitRange
leads to the following error message:
task build failed: resource name may not be empty
I verified that the resources as part of the tutorial had been created and that tasks were created as well. Steps to reproduce are below. I ran these after doing oc create
s to set up everything except the pipelinerun
.
$ oc delete limitrange --all -n pipelines-tutorial
limitrange "pipelines-tutorial-core-resource-limits" deleted
$ oc create -f petclinic-deploy-pipelinerun.yaml
pipelinerun.tekton.dev/petclinic-deploy-pipelinerun-h7jrn created
$ tkn pr ls
NAME STARTED DURATION STATUS
petclinic-deploy-pipelinerun-h7jrn 4 seconds ago 1 second Failed
$ tkn pr logs petclinic-deploy-pipelinerun-h7jrn
task build failed: resource name may not be empty
$tkn taskrun petclinic-deploy-pipelinerun-h7jrn-build-z626b
NAME STARTED DURATION STATUS
petclinic-deploy-pipelinerun-h7jrn-build-z626b 10 seconds ago --- Failed(CouldntGetTask)
$tkn taskrun logs petclinic-deploy-pipelinerun-h7jrn-build-z626b
Error: task s2i-java-8 failed: resource name may not be empty
However, lowering the LimitRange
minimums to 0 allowed for a successful run.
from pipelines-tutorial.
Daniel's fix for RHPDS 4.1 is also needed for the RHPDS 4.2. Thanks Daniel for the workaround!
from pipelines-tutorial.
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
from pipelines-tutorial.
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle rotten
/remove-lifecycle stale
from pipelines-tutorial.
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen
.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Exclude this issue from closing again by commenting /lifecycle frozen
.
/close
from pipelines-tutorial.
@openshift-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen
.
Mark the issue as fresh by commenting/remove-lifecycle rotten
.
Exclude this issue from closing again by commenting/lifecycle frozen
./close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
from pipelines-tutorial.
Related Issues (20)
- Error: invalid input format for workspace HOT 4
- Not available for OKD 4.x HOT 5
- Trigger Pipeline fails HOT 5
- Build Trigger when commiting change to git fails HOT 1
- Branch release-tech-preview-3 does not exist
- Tutorial fails validating Task - update-deployment HOT 5
- WebUI Error after Trigger Creation HOT 7
- requests.exceptions.ConnectionError to connect from vote-ui to vote-api HOT 2
- Unable to create trigger HOT 5
- PipleineRun - Push Fails Auth Required Error (for local registry) HOT 1
- git-clone login credetials HOT 2
- tkn pipeline start fails at build stage with integrated registry HOT 6
- Minor language changes to YAML files HOT 4
- Operatorhub installation does not perform as expected/defined in readme HOT 1
- Creating Trigger fails with sample yaml HOT 4
- README suggests try.openshift.com, but users cannot install operators HOT 7
- Error from server (MethodNotAllowed) while running oc appy -f triggers template HOT 4
- It comes up as Phase 404 in the guide.(http://try.openshift.com ). HOT 4
- trigger failed to trig the pipeline with "x509: certificate signed by unknown authority " HOT 5
- getting an error: the API version in the data (tekton.dev/v1beta1) does not match the expected API version (tekton.dev/v1) HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pipelines-tutorial.