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


Running with gitlab-runner 15.8.0 (12335144)
  on gitlab-runner-gitlab-runner-5c5d8dfd84-mrhn4 3Sduy7zd, system ID: r_pxlbVZdKVDlV
Preparing the "kubernetes" executor
00:00
Using Kubernetes namespace: gitlab-runners
Using Kubernetes executor with image registry.rshbdev.ru/rshbintech/integrations/ckpr/infra/images/kube-client-apps:8.21.1 ...
Using attach strategy to execute scripts...
Preparing environment
00:06
Waiting for pod gitlab-runners/runner-3sduy7zd-project-84965-concurrent-0cmd7w to be running, status is Pending
Waiting for pod gitlab-runners/runner-3sduy7zd-project-84965-concurrent-0cmd7w to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Running on runner-3sduy7zd-project-84965-concurrent-0cmd7w via gitlab-runner-gitlab-runner-5c5d8dfd84-mrhn4...
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/it-corp/middle-office/akpr/back-end/services/reports/.git/
Created fresh repository.
Checking out c43ccf84 as master...
Skipping Git submodules setup
Downloading artifacts
00:01
Downloading artifacts for devsecops_antivirus_scan (22500642)...
Downloading artifacts from coordinator... ok        id=22500642 responseStatus=200 OK token=64_yaiyk
Executing "step_script" stage of the job script
10:14
$ ( 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:
$ 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-akpr-dev
++ NAMESPACE=isys-akpr-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-akpr-dev history reports
+++ tail -1
+++ cut -f1,3
Error: release: not found
++ true
++ 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
++ [[ '' =~ pending ]]
++ echo '$ helmfile ${HELMFILE_DEFAULT_NAMESPACE:+--namespace $HELMFILE_DEFAULT_NAMESPACE} --environment ${CLUSTER:-default} -f deploy/helmfile.yaml --log-level info apply --suppress-secrets'
$ helmfile ${HELMFILE_DEFAULT_NAMESPACE:+--namespace $HELMFILE_DEFAULT_NAMESPACE} --environment ${CLUSTER:-default} -f deploy/helmfile.yaml --log-level info apply --suppress-secrets
++ helmfile --environment devstbl -f deploy/helmfile.yaml --log-level info apply --suppress-secrets
== /usr/local/link/helmfile: Initialize base deploy hierarchy in /builds/rshbintech/it-corp/middle-office/akpr/back-end/services/reports
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-reports, chart=rshb-charts/raw
Comparing release=psvc-reports, chart=rshb-charts/raw
Comparing release=platform-database-reports, chart=rshb-charts/raw
Comparing release=reports, chart=rshb-charts/base
********************
	Release was not present in Helm.  Diff will show entire contents as new.
********************
isys-akpr-dev, reports, Deployment (apps) has been added:
- 
+ # Source: base/templates/workload.yaml
+ apiVersion: apps/v1
+ kind: Deployment
+ metadata:
+   name: reports
+   labels:
+     app: reports
+     fullname: reports
+     chart: base-1.14.2
+     release: reports
+     heritage: Helm
+     isys: "akpr-dev"
+     psvc: "reports"
+     version: "master"    
+     workload.topology.app.farm/zone: "rumsk1"
+   annotations:
+     platform.ckpr.integrations.rshbintech.ru/gitlab-commit-sha: c43ccf84
+     platform.ckpr.integrations.rshbintech.ru/gitlab-pipeline-id: "3228064"
+ spec:
+   strategy:
+     type: Recreate
+   replicas: 1
+   selector:
+     matchLabels:
+       app: reports
+       fullname: reports
+       release: reports
+   template:
+     metadata:
+       labels:
+         app: reports
+         fullname: reports
+         chart: base-1.14.2
+         release: reports
+         heritage: Helm
+         isys: "akpr-dev"
+         psvc: "reports"
+         version: "master"        
+         workload.topology.app.farm/zone: "rumsk1"
+       annotations:
+         checksum/configMapsEnv: "2ca4162c85323e642a1c50950432656d766bdc894003a5f47ba8cef31c658980"
+         checksum/secretEnv: "6de8b14570c65a31dbd4e68eea65be4689f078d7730c50dae8f81f0ccd1b8c79"
+         ci/commithash: "c43ccf84"
+         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\": \"akpr-dev-envoy-filters\"}}]"
+         sidecar.istio.io/userVolumeMount: "[{\"mountPath\":\"/var/local/lib/wasm-filters\",\"name\":\"wasmfilters-dir\"}]"
+     spec:
+       serviceAccountName: default
+       nodeSelector:
+         workload.topology.app.farm/zone: rumsk1
+       priorityClassName:
+         rumsk1
+       containers:
+         - name: app
+           image: registry.rshbdev.ru/rshbintech/it-corp/middle-office/akpr/back-end/services/reports:master
+           imagePullPolicy: Always
+           envFrom:
+             - configMapRef:
+                 name: reports-app-cm-env
+             - secretRef:
+                 name: reports-app-secret-env
+           resources:
+             limits:
+               cpu: 700m
+               memory: 756Mi
+             requests:
+               cpu: 100m
+               memory: 256Mi
+           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
+           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:
isys-akpr-dev, reports, Service (v1) has been added:
- 
+ # Source: base/templates/svc.yaml
+ apiVersion: v1
+ kind: Service
+ metadata:
+   name: reports
+   labels:
+     app: reports
+     fullname: reports
+     chart: base-1.14.2
+     release: reports
+     heritage: Helm
+     isys: "akpr-dev"
+     psvc: "reports"
+     version: "master"
+ spec:
+   ports:
+     - name: web
+       port: 80
+       protocol: TCP
+       targetPort: 8080
+   selector:
+     app: reports
+     fullname: reports
+     release: reports
+   type: ClusterIP
isys-akpr-dev, reports-app-cm-env, ConfigMap (v1) has been added:
- 
+ # Source: base/templates/cm-env.yaml
+ apiVersion: v1
+ kind: ConfigMap
+ metadata:
+   name: reports-app-cm-env
+   labels:
+     app: reports
+     fullname: reports
+     chart: base-1.14.2
+     release: reports
+     heritage: Helm
+     isys: "akpr-dev"
+     psvc: "reports"
+     version: "master"    
+     workload.topology.app.farm/zone: "rumsk1"
+ data:
+   APP_POSTGRESQL_HOST: "10.7.24.5"
+   APP_POSTGRESQL_NAME: "akpr"
+   APP_POSTGRESQL_PORT: "5432"
+   ASPNETCORE_ENVIRONMENT: "Development"
+   ASPNETCORE_URLS: "http://+:8080"
+   ENABLE_AUTHENTICATION: "false"
+   GQL_TOOL_ENABLED: "true"
+   LOGGING_LEVEL_RU_RSHBINTECH: "info"
+   OAUTH2_ADMIN: "https://auth.rshbdev.ru/auth/admin/realms/platform"
+   OAUTH2_PATH: "https://auth.rshbdev.ru/auth/realms/platform"
isys-akpr-dev, reports-app-secret-env, Secret (v1) has been added:
+ Changes suppressed on sensitive content of type Secret
Listing releases matching ^pjob-reports$
Listing releases matching ^exsvc-reports$
Listing releases matching ^data-reports$
Listing releases matching ^assets-config-reports$
Listing releases matching ^reports-raw$
Listing releases matching ^reports-grafana-dashboard$
Listing releases matching ^links-reports$
Listing releases matching ^reports-rumsk1$
Listing releases matching ^reports-rumsk2$
Upgrading release=reports, chart=rshb-charts/base
Release "reports" does not exist. Installing it now.
FAILED RELEASES:
NAME
reports
in deploy/helmfile.yaml: failed processing release reports: 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: reports (7 bytes)
  7: rshb-charts/base (16 bytes)
  8: --version (9 bytes)
  9: 1.14.2 (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-akpr-dev (13 bytes)
  18: --values (8 bytes)
  19: /tmp/helmfile3220435757/isys-akpr-dev-reports-values-64f554bd6d (63 bytes)
  20: --values (8 bytes)
  21: /tmp/helmfile3360932619/isys-akpr-dev-reports-values-77c9ddbcd (62 bytes)
  22: --history-max (13 bytes)
  23: 10 (2 bytes)
ERROR:
  exit status 1
EXIT STATUS
  1
STDERR:
  Error: release reports failed, and has been uninstalled due to atomic being set: timed out waiting for the condition
COMBINED OUTPUT:
  Release "reports" does not exist. Installing it now.
  Error: release reports failed, and has been uninstalled due to atomic being set: 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=22519778 responseStatus=201 Created token=64_yaiyk
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: command terminated with exit code 1