Comments (10)
I had the same error today (25 Sep 2020) with OCP 4.5. I fixed it by using the latest "buildah" task from [0]. After the following steps, the first half of the tutorial should work. I did not try the rest of the tutorial.
Create the latest buildah task:
oc create -f https://raw.githubusercontent.com/tektoncd/catalog/master/task/buildah/0.1/buildah.yaml
Remove the "ClusterTask" reference in the build-and-deploy pipeline with the "buildah" task:
oc edit pipeline build-and-deploy
...
- fetch-repository
taskRef:
kind: Task # Replace ClusterTask with Task
name: buildah
...
[0] https://github.com/tektoncd/catalog/blob/master/task/buildah/0.1/buildah.yaml#L15
from pipelines-tutorial.
Follow the latest doc --> https://docs.openshift.com/container-platform/4.4/pipelines/creating-applications-with-cicd-pipelines.html
from pipelines-tutorial.
If you installed OpenShift Pipelines 1.0, follow https://github.com/openshift/pipelines-tutorial/tree/release-tech-preview-1
For Pipelines 1.1 (in preview channel now), follow https://github.com/openshift/pipelines-tutorial/tree/release-tech-preview-2
from pipelines-tutorial.
@ppitonak Thanks, I used the link for Openshift Pipelines 1.0. The first time I ran the pipeline I got this error:
Failed to create build pod "build-and-deploy-run-bkcv7-build-image-qfcc6": pods "build-and-deploy-run-bkcv7-build-image-qfcc6-pod-nzb8d" is forbidden: maximum cpu usage per Pod is 2, but limit is 2500m
The pipeline run succeeded for me after i increased the cpu limits in pipelines-tutorial-core-resource-limits
as follows:
kind: LimitRange
apiVersion: v1
metadata:
name: pipelines-tutorial-core-resource-limits
namespace: pipelines-tutorial
spec:
limits:
- type: Container
max:
cpu: '3'
memory: 6Gi
default:
cpu: 500m
memory: 1536Mi
defaultRequest:
cpu: 50m
memory: 256Mi
- type: Pod
max:
cpu: '3'
memory: 12Gi
from pipelines-tutorial.
I had the same error today (25 Sep 2020) with OCP 4.5. I fixed it by using the latest "buildah" task from [0]. After the following steps, the first half of the tutorial should work. I did not try the rest of the tutorial.
Create the latest buildah task:
oc create -f https://raw.githubusercontent.com/tektoncd/catalog/master/task/buildah/0.1/buildah.yaml
Remove the "ClusterTask" reference in the build-and-deploy pipeline with the "buildah" task:
oc edit pipeline build-and-deploy ... - fetch-repository taskRef: kind: Task # Replace ClusterTask with Task name: buildah ...
[0] https://github.com/tektoncd/catalog/blob/master/task/buildah/0.1/buildah.yaml#L15
@sjbylo This solution worked for me, thank you!
from pipelines-tutorial.
thanks
@sjbylo sjbylo
Client version: 0.11.0
Pipeline version: v0.11.3
Triggers version: v0.4.0
openshift pipeline operator: 1.0.1
Openshift 4.5
- Create the latest buildah task:
oc create -f https://raw.githubusercontent.com/tektoncd/catalog/master/task/buildah/0.1/buildah.yaml
Remove the "ClusterTask" reference in the build-and-deploy pipeline with the "buildah" task:
oc edit pipeline build-and-deploy ... - fetch-repository taskRef: kind: Task # Replace ClusterTask with Task name: buildah ...
2.correct step 3 (Oficial doc Red Hat openshift 4.5) in parameter deployment-name=vote-ui
tkn pipeline start build-and-deploy -w name=shared-workspace,claimName=source-pvc -p deployment-name=vote-ui -p git-url=http://github.com/openshift-pipelines/vote-ui.git -p IMAGE=image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/vote-ui
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 12
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.