Closed
Description
Expected Behavior
the task to execute from pipelineRun as it executes from taskRun
Actual Behavior
task backup-prometheus-snapshot has failed: more than one PersistentVolumeClaim is bound
pod for taskrun prometheus-snapshot-run-8cdnx-backup-prometheus-snapshot-fpcgx not available yet
Tasks Completed: 2 (Failed: 1, Cancelled 0), Skipped: 0
Steps to Reproduce the Problem
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
creationTimestamp: null
generateName: prometheus-snapshot-run-
spec:
serviceAccountNames:
- taskName: new-prometheus-snapshot
serviceAccountName: prometheus-backup
podTemplate:
nodeSelector:
kubernetes.io/hostname:
params:
- name: oc-image
value: quay.io/openshift/origin-cli:4.5.0
- name: oc-prometheus
value: prometheus-k8s-1
pipelineRef:
name: prometheus-snapshot
workspaces:
- name: prometheus-pvc
persistentVolumeClaim:
claimName: "prometheus-k8s-db-$(params.oc-prometheus)"
- name: backup-pvc
persistentVolumeClaim:
claimName: bkp
status: {}
---
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
creationTimestamp: null
generateName: oc-snapshot-bkp-run-
spec:
podTemplate:
nodeSelector:
kubernetes.io/hostname:
params:
- name: oc-image
value: quay.io/openshift/origin-cli:4.5.0
resources: {}
serviceAccountName: ""
taskRef:
name: oc-snapshot-bkp
workspaces:
- name: prometheus
persistentVolumeClaim:
claimName: prometheus-k8s-db-prometheus-k8s-1
subPath: prometheus-db/snapshots
- name: backup
persistentVolumeClaim:
claimName: bkp
status:
podName: ""
Additional Info
-
Kubernetes version: v1.18.3
-
Tekton Pipeline version:
Client version: 0.12.1
Pipeline version: v0.17.2
Triggers version: unknown