Загрузка данных
Running with gitlab-runner 15.8.0 (12335144)
on gitlab-runner-gitlab-runner-5c5d8dfd84-fc2jj x3T1Qxkg, system ID: r_0t1aE5p8nfLN
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.4 ...
Using attach strategy to execute scripts...
Preparing environment
00:07
Waiting for pod gitlab-runners/runner-x3t1qxkg-project-50954-concurrent-0zdgx5 to be running, status is Pending
Waiting for pod gitlab-runners/runner-x3t1qxkg-project-50954-concurrent-0zdgx5 to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Running on runner-x3t1qxkg-project-50954-concurrent-0zdgx5 via gitlab-runner-gitlab-runner-5c5d8dfd84-fc2jj...
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/abs/banking-accounting/amkkr/selfai-front/.git/
Created fresh repository.
Checking out b34860b5 as master...
Skipping Git submodules setup
Downloading artifacts
00:01
Downloading artifacts for devsecops_antivirus_scan (22098534)...
Downloading artifacts from coordinator... ok id=22098534 responseStatus=200 OK token=64_11tae
Downloading artifacts for dockerfilegen (22098538)...
Downloading artifacts from coordinator... ok id=22098538 responseStatus=200 OK token=64_11tae
Executing "step_script" stage of the job script
10:34
$ ( 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-amkkr-dev
++ NAMESPACE=isys-amkkr-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-amkkr-dev history selfai-front
+++ 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
++ [[ deployed =~ 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/abs/banking-accounting/amkkr/selfai-front/-/pipelines/3171312 --set additionalWorkloadAnnotations.gitlabCommit=b34860b59ba9e057ad71f03abdd6bd602f25fa21
== /usr/local/link/helmfile: Initialize base deploy hierarchy in /builds/rshbintech/abs/banking-accounting/amkkr/selfai-front
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=psvc-selfai-front, chart=rshb-charts/raw
Comparing release=assets-config-selfai-front, chart=rshb-charts/raw
Comparing release=links-selfai-front, chart=rshb-charts/raw
Comparing release=selfai-front, chart=rshb-charts/base
isys-amkkr-dev, selfai-front, Deployment (apps) has changed:
# Source: base/templates/workload.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: selfai-front
labels:
app: selfai-front
fullname: selfai-front
- chart: base-1.12.0
+ chart: base-1.14.2
release: selfai-front
heritage: Helm
isys: "amkkr-dev"
psvc: "selfai-front"
version: "master"
workload.topology.app.farm/zone: "rumsk1"
annotations:
- platform.ckpr.integrations.rshbintech.ru/gitlab-commit-sha: 95cf69e2
- platform.ckpr.integrations.rshbintech.ru/gitlab-pipeline-id: "1536520"
+ gitlabCommit: b34860b59ba9e057ad71f03abdd6bd602f25fa21
+ gitlabPipeline: https://gitlab.rshbdev.ru/rshbintech/abs/banking-accounting/amkkr/selfai-front/-/pipelines/3171312
+ platform.ckpr.integrations.rshbintech.ru/gitlab-commit-sha: b34860b5
+ platform.ckpr.integrations.rshbintech.ru/gitlab-pipeline-id: "3171312"
spec:
strategy:
type: RollingUpdate
replicas: 1
selector:
matchLabels:
app: selfai-front
fullname: selfai-front
release: selfai-front
template:
metadata:
labels:
app: selfai-front
fullname: selfai-front
- chart: base-1.12.0
+ chart: base-1.14.2
release: selfai-front
heritage: Helm
isys: "amkkr-dev"
psvc: "selfai-front"
version: "master"
workload.topology.app.farm/zone: "rumsk1"
annotations:
checksum/configMapsEnv: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
checksum/secretEnv: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
- ci/commithash: "95cf69e2"
+ ci/commithash: "b34860b5"
inject.istio.io/templates: "sidecar,custom"
sidecar.istio.io/userVolume: "[{\"name\": \"wasmfilters-dir\",\"configMap\": {\"name\": \"amkkr-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/abs/banking-accounting/amkkr/selfai-front:master
imagePullPolicy: Always
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: 500m
memory: 512Mi
ports:
livenessProbe:
failureThreshold: 5
httpGet:
path: /health/liveness
port: 8080
initialDelaySeconds: 5
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-usr-share-nginx-html-assets-config
mountPath: /usr/share/nginx/html/assets/config
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-usr-share-nginx-html-assets-config
configMap:
name: selfai-front-assets-config
defaultMode: 420
isys-amkkr-dev, selfai-front, Service (v1) has changed:
# Source: base/templates/svc.yaml
apiVersion: v1
kind: Service
metadata:
name: selfai-front
labels:
app: selfai-front
fullname: selfai-front
- chart: base-1.12.0
+ chart: base-1.14.2
release: selfai-front
heritage: Helm
isys: "amkkr-dev"
psvc: "selfai-front"
version: "master"
spec:
ports:
- name: web
port: 80
protocol: TCP
targetPort: 8080
selector:
app: selfai-front
fullname: selfai-front
release: selfai-front
type: ClusterIP
Listing releases matching ^vault-secrets-selfai-front$
Listing releases matching ^pjob-selfai-front$
Listing releases matching ^exsvc-selfai-front$
Listing releases matching ^data-selfai-front$
Listing releases matching ^platform-database-selfai-front$
Listing releases matching ^selfai-front-raw$
Listing releases matching ^selfai-front-grafana-dashboard$
Listing releases matching ^selfai-front-rumsk1$
Listing releases matching ^selfai-front-rumsk2$
Upgrading release=selfai-front, chart=rshb-charts/base
FAILED RELEASES:
NAME
selfai-front
in deploy/helmfile.yaml: failed processing release selfai-front: 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: selfai-front (12 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-amkkr-dev (14 bytes)
18: --values (8 bytes)
19: /tmp/helmfile723971442/isys-amkkr-dev-selfai-front-values-64f987b78c (68 bytes)
20: --values (8 bytes)
21: /tmp/helmfile2313251564/isys-amkkr-dev-selfai-front-values-6bc76f8467 (69 bytes)
22: --set (5 bytes)
23: additionalWorkloadAnnotations.gitlabPipeline=https://gitlab.rshbdev.ru/rshbintech/abs/banking-accounting/amkkr/selfai-front/-/pipelines/3171312 (143 bytes)
24: --set (5 bytes)
25: additionalWorkloadAnnotations.gitlabCommit=b34860b59ba9e057ad71f03abdd6bd602f25fa21 (83 bytes)
26: --history-max (13 bytes)
27: 10 (2 bytes)
ERROR:
exit status 1
EXIT STATUS
1
STDERR:
Error: UPGRADE FAILED: release selfai-front failed, and has been rolled back due to atomic being set: timed out waiting for the condition
COMBINED OUTPUT:
Error: UPGRADE FAILED: release selfai-front failed, and has been rolled back 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=22124956 responseStatus=201 Created token=64_11tae
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: command terminated with exit code 1