Загрузка данных


Running with gitlab-runner 15.8.0 (12335144)
  on gitlab-runner-gitlab-runner-6f4d49d99-h585b 8W3Nm2Mz, system ID: r_DYVWgNUEigZr
Preparing the "kubernetes" executor
00:00
Using Kubernetes namespace: gitlab-runners
Using Kubernetes executor with image registry.rshbdev.ru/appfarm/infra/images/kube-client-apps:8.21.18 ...
Using attach strategy to execute scripts...
Preparing environment
00:06
Waiting for pod gitlab-runners/runner-8w3nm2mz-project-18981-concurrent-0cvt69 to be running, status is Pending
Waiting for pod gitlab-runners/runner-8w3nm2mz-project-18981-concurrent-0cvt69 to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Running on runner-8w3nm2mz-project-18981-concurrent-0cvt69 via gitlab-runner-gitlab-runner-6f4d49d99-h585b...
Getting source from Git repository
00:01
$ git config --global --add url."https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/".insteadOf "https://${CI_SERVER_HOST}" # collapsed multi-line command
Fetching changes with git depth set to 20...
Initialized empty Git repository in /builds/rshbintech/crft/dboul/ndbo/backend/owb-ms-prd-salary-adapter/.git/
Created fresh repository.
Checking out ffe47472 as master...
Skipping Git submodules setup
Downloading artifacts
00:01
Downloading artifacts for devsecops_antivirus_scan (25285468)...
Downloading artifacts from coordinator... ok        id=25285468 responseStatus=200 OK token=64_ogNDM
Downloading artifacts for build (25285475)...
Downloading artifacts from coordinator... ok        id=25285475 responseStatus=200 OK token=64_ogNDM
Downloading artifacts for dockerfilegen (25285472)...
Downloading artifacts from coordinator... ok        id=25285472 responseStatus=200 OK token=64_ogNDM
Executing "step_script" stage of the job script
22:21
$ ( umask 0077; mkdir -p ~/.kube && echo "$KUBECONFIG_COMBINED" | base64 -d > ~/.kube/config )
$ if [[ ${IS_SENSITIVE_SYSTEM} = true ]]; then export K8S_CLUSTERS=$K8S_CLUSTERS_SENSITIVE; fi
$ echo 'IS_SENSITIVE_SYSTEM:' $IS_SENSITIVE_SYSTEM
IS_SENSITIVE_SYSTEM: true
$ echo 'TARGET_CLUSTERS:' $K8S_CLUSTERS
TARGET_CLUSTERS: devstbl
$ set -x
++ echo '$ for CLUSTER in $K8S_CLUSTERS; do'
$ for CLUSTER in $K8S_CLUSTERS; do
++ for CLUSTER in $K8S_CLUSTERS
++ echo '$ export CLUSTER=$CLUSTER'
$ export CLUSTER=$CLUSTER
++ export CLUSTER=devstbl
++ CLUSTER=devstbl
++ echo '$ if [[ ${CI_ENVIRONMENT_SLUG} = production ]]; then export NAMESPACE=isys-${ISYS_NAME}; else export NAMESPACE=isys-${ISYS_NAME}-${CI_ENVIRONMENT_SLUG}; fi'
$ if [[ ${CI_ENVIRONMENT_SLUG} = production ]]; then export NAMESPACE=isys-${ISYS_NAME}; else export NAMESPACE=isys-${ISYS_NAME}-${CI_ENVIRONMENT_SLUG}; fi
++ [[ dev = production ]]
++ export NAMESPACE=isys-ndbo-dev
++ NAMESPACE=isys-ndbo-dev
++ echo '$ read -r REVISION STATUS < <(helm --kube-context ${CLUSTER:-default} -n $NAMESPACE history $CI_PROJECT_NAME | tail -1 | cut -f1,3) || true'
$ read -r REVISION STATUS < <(helm --kube-context ${CLUSTER:-default} -n $NAMESPACE history $CI_PROJECT_NAME | tail -1 | cut -f1,3) || true
++ read -r REVISION STATUS
+++ helm --kube-context devstbl -n isys-ndbo-dev history owb-ms-prd-salary-adapter
+++ tail -1
+++ cut -f1,3
++ echo '$ if [[ "$STATUS" =~ "pending" ]]; then helm --kube-context ${CLUSTER:-default} -n $NAMESPACE rollback $CI_PROJECT_NAME $REVISION || true; fi'
$ if [[ "$STATUS" =~ "pending" ]]; then helm --kube-context ${CLUSTER:-default} -n $NAMESPACE rollback $CI_PROJECT_NAME $REVISION || true; fi
++ [[ failed =~ pending ]]
++ echo '$ helmfile ${HELMFILE_DEFAULT_NAMESPACE:+--namespace $HELMFILE_DEFAULT_NAMESPACE} --environment ${CLUSTER:-default} -f deploy/helmfile.yaml --log-level info apply --suppress-secrets --set "additionalWorkloadAnnotations.gitlabPipeline=${CI_PIPELINE_URL}" --set "additionalWorkloadAnnotations.gitlabCommit=${CI_COMMIT_SHA}"'
$ helmfile ${HELMFILE_DEFAULT_NAMESPACE:+--namespace $HELMFILE_DEFAULT_NAMESPACE} --environment ${CLUSTER:-default} -f deploy/helmfile.yaml --log-level info apply --suppress-secrets --set "additionalWorkloadAnnotations.gitlabPipeline=${CI_PIPELINE_URL}" --set "additionalWorkloadAnnotations.gitlabCommit=${CI_COMMIT_SHA}"
++ helmfile --environment devstbl -f deploy/helmfile.yaml --log-level info apply --suppress-secrets --set additionalWorkloadAnnotations.gitlabPipeline=https://gitlab.rshbdev.ru/rshbintech/crft/dboul/ndbo/backend/owb-ms-prd-salary-adapter/-/pipelines/3632249 --set additionalWorkloadAnnotations.gitlabCommit=ffe4747292110f289d6469146553781fbabb3885
== /usr/local/link/helmfile: Initialize base deploy hierarchy in /builds/rshbintech/crft/dboul/ndbo/backend/owb-ms-prd-salary-adapter
no matches for path: envs/dev/devstbl/helmfile.yaml.gotmpl
Adding repo rshb-charts https://nexus.rshbdev.ru/repository/charts/
"rshb-charts" has been added to your repositories
Comparing release=vault-secrets-owb-ms-prd-salary-adapter, chart=rshb-charts/raw
Comparing release=psvc-owb-ms-prd-salary-adapter, chart=rshb-charts/raw
Comparing release=links-owb-ms-prd-salary-adapter, chart=rshb-charts/raw
Comparing release=owb-ms-prd-salary-adapter, chart=rshb-charts/base
isys-ndbo-dev, owb-ms-prd-salary-adapter, Deployment (apps) has changed:
  # Source: base/templates/workload.yaml
  apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: owb-ms-prd-salary-adapter
    labels:
      app: owb-ms-prd-salary-adapter
      fullname: owb-ms-prd-salary-adapter
      chart: base-1.15.3
      release: owb-ms-prd-salary-adapter
      heritage: Helm
      isys: "ndbo-dev"
      psvc: "owb-ms-prd-salary-adapter"
      version: "master"    
      workload.topology.app.farm/zone: "rumsk1"
    annotations:
-     gitlabCommit: c6d30d736e0bbd02eb8f2a97bedd8b543849c6cc
-     gitlabPipeline: https://gitlab.rshbdev.ru/rshbintech/crft/dboul/ndbo/backend/owb-ms-prd-salary-adapter/-/pipelines/3632185
-     platform.ckpr.integrations.rshbintech.ru/gitlab-commit-sha: c6d30d73
-     platform.ckpr.integrations.rshbintech.ru/gitlab-pipeline-id: "3632185"
+     gitlabCommit: ffe4747292110f289d6469146553781fbabb3885
+     gitlabPipeline: https://gitlab.rshbdev.ru/rshbintech/crft/dboul/ndbo/backend/owb-ms-prd-salary-adapter/-/pipelines/3632249
+     platform.ckpr.integrations.rshbintech.ru/gitlab-commit-sha: ffe47472
+     platform.ckpr.integrations.rshbintech.ru/gitlab-pipeline-id: "3632249"
  spec:
    strategy:
      type: Recreate
    replicas: 1
    selector:
      matchLabels:
        app: owb-ms-prd-salary-adapter
        fullname: owb-ms-prd-salary-adapter
        release: owb-ms-prd-salary-adapter
    template:
      metadata:
        labels:
          app: owb-ms-prd-salary-adapter
          fullname: owb-ms-prd-salary-adapter
          chart: base-1.15.3
          release: owb-ms-prd-salary-adapter
          heritage: Helm
          isys: "ndbo-dev"
          psvc: "owb-ms-prd-salary-adapter"
          version: "master"        
          workload.topology.app.farm/zone: "rumsk1"
        annotations:
          checksum/configMapsEnv: "0df61a5f372c9b21315f667b585ec718e4184bd522f48355f90c4bb8d35e086e"
          checksum/secretEnv: "ef9cebb5188ee613fd46e46f40c42ba864e158dbfa5ab95aea6d96906006f057"
-         ci/commithash: "c6d30d73"
+         ci/commithash: "ffe47472"
          inject.istio.io/templates: "sidecar,custom"
          prometheus.io/path: "/metrics"
          prometheus.io/port: "8080"
          prometheus.io/scrape: "true"
          sidecar.istio.io/userVolume: "[{\"name\": \"wasmfilters-dir\",\"configMap\": {\"name\": \"ndbo-dev-envoy-filters\"}}]"
          sidecar.istio.io/userVolumeMount: "[{\"mountPath\":\"/var/local/lib/wasm-filters\",\"name\":\"wasmfilters-dir\"}]"
      spec:
        automountServiceAccountToken: false
        serviceAccountName: default
        nodeSelector:
          workload.topology.app.farm/zone: rumsk1
        priorityClassName: rumsk1
        containers:
          - name: app
            image: registry.rshbdev.ru/rshbintech/crft/dboul/ndbo/backend/owb-ms-prd-salary-adapter:master
            imagePullPolicy: Always
            envFrom:
              - configMapRef:
                  name: owb-ms-prd-salary-adapter-app-cm-env
              - secretRef:
                  name: owb-ms-prd-salary-adapter-app-secret-env
            resources:
              limits:
                cpu: 800m
                memory: 2Gi
              requests:
                cpu: 200m
                memory: 512Mi
            ports:
            livenessProbe:
              failureThreshold: 5
              httpGet:
                path: /health/liveness
                port: 8080
              initialDelaySeconds: 30
              periodSeconds: 5
              successThreshold: 1
              timeoutSeconds: 1
            readinessProbe:
              failureThreshold: 3
              httpGet:
                path: /health/readiness
                port: 8080
              initialDelaySeconds: 15
              periodSeconds: 5
              successThreshold: 1
              timeoutSeconds: 1
            volumeMounts:
              - name: app-vault-secrets
                mountPath: /secrets
                readOnly: true
            securityContext: 
              allowPrivilegeEscalation: false
              capabilities:
                drop:
                - ALL
              privileged: false
              procMount: Default
              readOnlyRootFilesystem: false
              runAsGroup: 1001
              runAsNonRoot: true
              runAsUser: 1001
        securityContext: 
          fsGroup: 1001
          fsGroupChangePolicy: OnRootMismatch
          runAsGroup: 1001
          runAsNonRoot: true
          runAsUser: 1001
        tolerations: 
          - effect: NoSchedule
            key: workload.topology.app.farm/zone
            operator: Exists
        hostNetwork: false
        volumes:
          - name: app-vault-secrets
            csi:
              driver: secrets-store.csi.k8s.io
              readOnly: true
              volumeAttributes:
                secretProviderClass: owb-ms-prd-salary-adapter-app-secret-provider
Listing releases matching ^pjob-owb-ms-prd-salary-adapter$
Listing releases matching ^exsvc-owb-ms-prd-salary-adapter$
Listing releases matching ^data-owb-ms-prd-salary-adapter$
Listing releases matching ^assets-config-owb-ms-prd-salary-adapter$
Listing releases matching ^platform-database-owb-ms-prd-salary-adapter$
Listing releases matching ^owb-ms-prd-salary-adapter-raw$
Listing releases matching ^owb-ms-prd-salary-adapter-grafana-dashboard$
Listing releases matching ^owb-ms-prd-salary-adapter-prometheus-rules$
Listing releases matching ^owb-ms-prd-salary-adapter-rumsk1$
Listing releases matching ^owb-ms-prd-salary-adapter-rumsk2$
Upgrading release=owb-ms-prd-salary-adapter, chart=rshb-charts/base
FAILED RELEASES:
NAME
owb-ms-prd-salary-adapter
in deploy/helmfile.yaml: failed processing release owb-ms-prd-salary-adapter: command "/usr/local/link/helm" exited with non-zero status:
PATH:
  /usr/local/link/helm
ARGS:
  0: helm (4 bytes)
  1: --kube-context (14 bytes)
  2: devstbl (7 bytes)
  3: upgrade (7 bytes)
  4: --install (9 bytes)
  5: --reset-values (14 bytes)
  6: owb-ms-prd-salary-adapter (25 bytes)
  7: rshb-charts/base (16 bytes)
  8: --version (9 bytes)
  9: 1.15.3 (6 bytes)
  10: --wait (6 bytes)
  11: --timeout (9 bytes)
  12: 600s (4 bytes)
  13: --atomic (8 bytes)
  14: --kube-context (14 bytes)
  15: devstbl (7 bytes)
  16: --namespace (11 bytes)
  17: isys-ndbo-dev (13 bytes)
  18: --values (8 bytes)
  19: /tmp/helmfile3211662977/isys-ndbo-dev-owb-ms-prd-salary-adapter-values-68fc864d5c (81 bytes)
  20: --values (8 bytes)
  21: /tmp/helmfile609592999/isys-ndbo-dev-owb-ms-prd-salary-adapter-values-6b8665d49f (80 bytes)
  22: --set (5 bytes)
  23: additionalWorkloadAnnotations.gitlabPipeline=https://gitlab.rshbdev.ru/rshbintech/crft/dboul/ndbo/backend/owb-ms-prd-salary-adapter/-/pipelines/3632249 (151 bytes)
  24: --set (5 bytes)
  25: additionalWorkloadAnnotations.gitlabCommit=ffe4747292110f289d6469146553781fbabb3885 (83 bytes)
  26: --history-max (13 bytes)
  27: 10 (2 bytes)
ERROR:
  exit status 1
EXIT STATUS
  1
STDERR:
  Error: UPGRADE FAILED: an error occurred while rolling back the release. original upgrade error: timed out waiting for the condition: release owb-ms-prd-salary-adapter failed: timed out waiting for the condition
COMBINED OUTPUT:
  Error: UPGRADE FAILED: an error occurred while rolling back the release. original upgrade error: timed out waiting for the condition: release owb-ms-prd-salary-adapter failed: timed out waiting for the condition
Uploading artifacts for failed job
00:01
Uploading artifacts...
deploy.env: found 1 matching artifact files and directories 
Uploading artifacts as "dotenv" to coordinator... 201 Created  id=25289103 responseStatus=201 Created token=64_ogNDM
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: command terminated with exit code 1
dmitriev-aal@VDI-Dmitriev-A:~$ ktx devstbl
Switched to context "devstbl".
dmitriev-aal@VDI-Dmitriev-A:~$ kns isys-ndbo-dev
Set context namespace to "isys-ndbo-dev"
dmitriev-aal@VDI-Dmitriev-A:~$ kubectl get pods | grep owb-ms-prd-salary-adapter
owb-ms-prd-salary-adapter-54bc8f4786-6hn2g                  0/2     Terminating              0               6d17h
dmitriev-aal@VDI-Dmitriev-A:~$ kubectl get events | grep owb-ms-prd-salary-adapter
dmitriev-aal@VDI-Dmitriev-A:~$