cloud-native-toolkit / planning

The is the planning repo to manage the cross project Epics and Issues. Tasks and Bugs
3 stars 1 forks source link

Pipeline Error if we rerun #246

Open balasgit opened 4 years ago

balasgit commented 4 years ago

Describe the bug I tried to rerun the pipeline but am getting error whenever i rerun any pipeline run

To Reproduce Click pipeline rerun and you will get this weird error

Expected behavior expected pipeline to relaunch successfully

Screenshots image

Refer (A) , (B) & (C) as it failed if i click rerun via (C) image

IBM Cloud Select the services and tools affected

Desktop (please complete the following information):

Additional context

Test Stage Logs test(5).log

step-git-source-ocp4-aus-cp5-git-pn945
{"level":"info","ts":1585700285.7330852,"logger":"fallback-logger","caller":"logging/config.go:69","msg":"Fetch GitHub commit ID from kodata failed: \"KO_DATA_PATH\" does not exist or is empty"}
{"level":"info","ts":1585700288.7598166,"logger":"fallback-logger","caller":"logging/config.go:69","msg":"Fetch GitHub commit ID from kodata failed: \"KO_DATA_PATH\" does not exist or is empty"}
{"level":"info","ts":1585700290.4348805,"logger":"fallback-logger","caller":"git/git.go:102","msg":"Successfully cloned https://github.com/gsi-enablement-one/ocp4-aus-cp5.git @ master in path /workspace/source"}
{"level":"info","ts":1585700290.5253153,"logger":"fallback-logger","caller":"git/git.go:130","msg":"Successfully initialized and updated submodules in path /workspace/source"}

step-setup
{"level":"info","ts":1585700286.2064278,"logger":"fallback-logger","caller":"logging/config.go:69","msg":"Fetch GitHub commit ID from kodata failed: \"KO_DATA_PATH\" does not exist or is empty"}
+ set +e
+ git fetch origin master --tags
From https://github.com/gsi-enablement-one/ocp4-aus-cp5
 * branch            master     -> FETCH_HEAD
 * [new tag]         0.0.1      -> 0.0.1
 * [new tag]         0.0.2      -> 0.0.2
 * [new branch]      master     -> origin/master
+ git checkout master
Already on 'master'
++ git describe --abbrev=0 --tags
+ echo IMAGE_VERSION=0.0.2
++ tr '[:upper:]' '[:lower:]'
++ sed s/_/-/g
+++ git config --get remote.origin.url
++ basename -s .git https://github.com/gsi-enablement-one/ocp4-aus-cp5.git
+ echo IMAGE_NAME=ocp4-aus-cp5
+ source ./env-config
++ IMAGE_VERSION=0.0.2
++ IMAGE_NAME=ocp4-aus-cp5
+ [[ -z 0.0.2 ]]
+ [[ -z ocp4-aus-cp5 ]]

step-deploy
{"level":"info","ts":1585700286.6762643,"logger":"fallback-logger","caller":"logging/config.go:69","msg":"Fetch GitHub commit ID from kodata failed: \"KO_DATA_PATH\" does not exist or is empty"}
Initializing environment...
REGISTRY_URL: uk.icr.io
REGISTRY_NAMESPACE: gsi-cloudnative-squad
IMAGE_NAME: ocp4-aus-cp5
IMAGE_VERSION: 0.0.2
CHART_ROOT: ./chart
CHART: ./chart/base/Chart.yaml
CHART_NAME: base
Renaming chart from base to ocp4-aus-cp5
RELEASE_NAME: ocp4-aus-cp5
INITIALIZING helm with client-only (no Tiller)
Client: &version.Version{SemVer:"v2.16.1", GitCommit:"bbdfe5e7803a12bbdf97e94cd847859890cf4050", GitTreeState:"clean"}
CHECKING CHART (lint)
==> Linting ./chart/ocp4-aus-cp5
[INFO] Chart.yaml: icon is recommended

1 chart(s) linted, no failures
global: {}
replicaCount: 1
logLevel: INFO
image:
  repository: uk.icr.io/gsi-cloudnative-squad/ocp4-aus-cp5
  tag: 0.0.2
  pullPolicy: IfNotPresent
  port: 9080
nameOverride: ocp4-aus-cp5
fullnameOverride: ocp4-aus-cp5
service:
  type: ClusterIP
  port: 80
route:
  enabled: true
ingress:
  enabled: false
  appid:
    enabled: false
    requestType: web
  namespaceInHost: true
  subdomain: containers.appdomain.cloud
  path: /
Generated release yaml for: dev-cp1/ocp4-aus-cp5
---
# Source: ocp4-aus-cp5/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
  name: ocp4-aus-cp5
  labels:
    app.kubernetes.io/name: ocp4-aus-cp5
    helm.sh/chart: ocp4-aus-cp5-0.0.2
    app.kubernetes.io/instance: ocp4-aus-cp5
    app: ocp4-aus-cp5
spec:
  type: ClusterIP
  ports:
    - port: 80
      targetPort: 9080
      protocol: TCP
      name: http
  selector:
    app.kubernetes.io/name: ocp4-aus-cp5
    app.kubernetes.io/instance: ocp4-aus-cp5

---
# Source: ocp4-aus-cp5/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ocp4-aus-cp5
  labels:
    app.kubernetes.io/name: ocp4-aus-cp5
    helm.sh/chart: ocp4-aus-cp5-0.0.2
    app.kubernetes.io/instance: ocp4-aus-cp5
    app: ocp4-aus-cp5
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: ocp4-aus-cp5
      app.kubernetes.io/instance: ocp4-aus-cp5
  template:
    metadata:
      labels:
        app.kubernetes.io/name: ocp4-aus-cp5
        app.kubernetes.io/instance: ocp4-aus-cp5
    spec:
      containers:
        - name: ocp4-aus-cp5
          image: "uk.icr.io/gsi-cloudnative-squad/ocp4-aus-cp5:0.0.2"
          imagePullPolicy: IfNotPresent

          ports:
            - name: http
              containerPort: 9080
              protocol: TCP
          livenessProbe:
            httpGet:
              path: /
              port: http
          readinessProbe:
            httpGet:
              path: /
              port: http
          env:
            - name: INGRESS_HOST
              value: ""
            - name: PROTOCOLS
              value: ""
            - name: LOG_LEVEL
              value: "INFO"
          resources:
            null

---
# Source: ocp4-aus-cp5/templates/route.yaml
kind: Route
apiVersion: route.openshift.io/v1
metadata:
  name: ocp4-aus-cp5
  annotations:
    argocd.argoproj.io/sync-options: Validate=false
spec:
  to:
    kind: Service
    name: ocp4-aus-cp5
    weight: 100
  tls:
    termination: edge
  wildcardPolicy: None
---
# Source: ocp4-aus-cp5/templates/ingress.yaml

Deploying into: dev-cp1/ocp4-aus-cp5
service/ocp4-aus-cp5 created
deployment.apps/ocp4-aus-cp5 created
route.route.openshift.io/ocp4-aus-cp5 created
seansund commented 4 years ago

I see that it fails but the logs you posted don't seem to match the failed build

balasgit commented 4 years ago

Note: Rerun is blocking all of my code pattern testing..

tkn pipeline describe igc-nodejs Name: igc-nodejs Namespace: dev-cp1

πŸ“¦ Resources

NAME TYPE βˆ™ git-source git βˆ™ docker-image image

βš“ Params

No params

πŸ—’ Tasks

NAME TASKREF RUNAFTER βˆ™ test igc-nodejs-test
βˆ™ build igc-build-tag-push test βˆ™ deploy igc-deploy build βˆ™ health igc-health-check deploy βˆ™ package igc-helm-package health βˆ™ gitops igc-gitops package

β›© PipelineRuns

NAME STARTED DURATION STATUS βˆ™ igc-nodejs-yt2dys 13 hours ago 1 second Failed βˆ™ ocp4-aus-cp1-run-17132ddb4eb 14 hours ago 11 minutes Failed βˆ™ ocp4-aus-cp2-run-17132e9ee2b 14 hours ago 18 minutes Failed βˆ™ ocp4-aus-cp3-run-17132fe727b 14 hours ago 4 minutes Failed βˆ™ ocp4-aus-cp3-run-17133210819 13 hours ago 1 second Failed βˆ™ ocp4-aus-cp4-run-171330789e9 14 hours ago 8 minutes Failed balas-mbp:argo-aus-bala bala$ tkn pipelinerun logs igc-nodejs-yt2dys task test has failed: Missing or invalid Task dev-cp1/igc-nodejs-test: translating Build to Pod: multiple volumes with same name "tekton-internal-secret-volume-gsi-enablement-one-ocp4-aus-cp3": name TaskRun igc-nodejs-yt2dys-test-92w2x has failed