Загрузка данных
Running with gitlab-runner 15.8.0 (12335144)
on gitlab-runner-gitlab-runner-695bb55d66-shwwf y_Hs9d7d, system ID: r_unkj9zgbP7CT
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:14
Waiting for pod gitlab-runners/runner-yhs9d7d-project-19908-concurrent-0p7g2t to be running, status is Pending
Waiting for pod gitlab-runners/runner-yhs9d7d-project-19908-concurrent-0p7g2t to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab-runners/runner-yhs9d7d-project-19908-concurrent-0p7g2t to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab-runners/runner-yhs9d7d-project-19908-concurrent-0p7g2t to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab-runners/runner-yhs9d7d-project-19908-concurrent-0p7g2t to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab-runners/runner-yhs9d7d-project-19908-concurrent-0p7g2t to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Running on runner-yhs9d7d-project-19908-concurrent-0p7g2t via gitlab-runner-gitlab-runner-695bb55d66-shwwf...
Getting source from Git repository
00:02
$ 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/integrations/cki/ip2-services/flow-adapters/sdlc-flow/.git/
Created fresh repository.
Checking out 3f7f97a2 as master...
Skipping Git submodules setup
Downloading artifacts
00:02
Downloading artifacts for devsecops_antivirus_scan (22278340)...
Downloading artifacts from coordinator... ok id=22278340 responseStatus=200 OK token=64_Nepem
Downloading artifacts for dockerfilegen (22278345)...
Downloading artifacts from coordinator... ok id=22278345 responseStatus=200 OK token=64_Nepem
Downloading artifacts for build (22278349)...
Downloading artifacts from coordinator... ok id=22278349 responseStatus=200 OK token=64_Nepem
Downloading artifacts for unit (22278351)...
Downloading artifacts from coordinator... ok id=22278351 responseStatus=200 OK token=64_Nepem
Executing "step_script" stage of the job script
21:15
$ ( 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-flow-adapters-dev
++ NAMESPACE=isys-flow-adapters-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-flow-adapters-dev history sdlc-flow
+++ 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/integrations/cki/ip2-services/flow-adapters/sdlc-flow/-/pipelines/3196052 --set additionalWorkloadAnnotations.gitlabCommit=3f7f97a2d0bd1b246fbce0b8e3991494ab514894
== /usr/local/link/helmfile: Initialize base deploy hierarchy in /builds/rshbintech/integrations/cki/ip2-services/flow-adapters/sdlc-flow
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-sdlc-flow, chart=rshb-charts/raw
Comparing release=psvc-sdlc-flow, chart=rshb-charts/raw
Comparing release=links-sdlc-flow, chart=rshb-charts/raw
Comparing release=sdlc-flow, chart=rshb-charts/base
isys-flow-adapters-dev, sdlc-flow, Deployment (apps) has changed:
# Source: base/templates/workload.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: sdlc-flow
labels:
app: sdlc-flow
fullname: sdlc-flow
- chart: base-1.11.0
+ chart: base-1.14.2
release: sdlc-flow
heritage: Helm
isys: "flow-adapters-dev"
psvc: "sdlc-flow"
version: "master"
workload.topology.app.farm/zone: "rumsk1"
annotations:
- platform.ckpr.integrations.rshbintech.ru/gitlab-commit-sha: 2863b468
- platform.ckpr.integrations.rshbintech.ru/gitlab-pipeline-id: "978349"
+ gitlabCommit: 3f7f97a2d0bd1b246fbce0b8e3991494ab514894
+ gitlabPipeline: https://gitlab.rshbdev.ru/rshbintech/integrations/cki/ip2-services/flow-adapters/sdlc-flow/-/pipelines/3196052
+ platform.ckpr.integrations.rshbintech.ru/gitlab-commit-sha: 3f7f97a2
+ platform.ckpr.integrations.rshbintech.ru/gitlab-pipeline-id: "3196052"
spec:
strategy:
type: RollingUpdate
replicas: 1
selector:
matchLabels:
app: sdlc-flow
fullname: sdlc-flow
release: sdlc-flow
template:
metadata:
labels:
app: sdlc-flow
fullname: sdlc-flow
- chart: base-1.11.0
+ chart: base-1.14.2
release: sdlc-flow
heritage: Helm
isys: "flow-adapters-dev"
psvc: "sdlc-flow"
version: "master"
workload.topology.app.farm/zone: "rumsk1"
annotations:
- checksum/configMapsEnv: "fd756ff28613717f8067f72eb28780600b90ecf0abcaae9600c7972b65d2a9ac"
- checksum/secretEnv: "cf01813489878c8d26679273bea9ec99b4f8037ab32a2931b403676f133f402f"
- ci/commithash: "2863b468"
+ checksum/configMapsEnv: "331858ba56eacb8d5d6379c04b4ccf27b87b69d635d4f085dcbcddbd76d0abc3"
+ checksum/secretEnv: "ab04c8faaf0d4dbc2970a81d70c0709d085de5ae7d973b3330b5cfbe9076bff9"
+ ci/commithash: "3f7f97a2"
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\": \"flow-adapters-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/integrations/cki/ip2-services/flow-adapters/sdlc-flow:master
imagePullPolicy: Always
envFrom:
- configMapRef:
name: sdlc-flow-app-cm-env
- secretRef:
name: sdlc-flow-app-secret-env
resources:
limits:
cpu: 400m
memory: 768Mi
requests:
cpu: 400m
memory: 768Mi
ports:
startupProbe:
failureThreshold: 60
httpGet:
path: /health/liveness
port: 8080
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
livenessProbe:
failureThreshold: 5
httpGet:
path: /health/liveness
port: 8080
initialDelaySeconds: 0
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 3
readinessProbe:
failureThreshold: 3
httpGet:
path: /health/readiness
port: 8080
initialDelaySeconds: 0
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 3
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-flow-adapters-dev, sdlc-flow, Service (v1) has changed:
# Source: base/templates/svc.yaml
apiVersion: v1
kind: Service
metadata:
name: sdlc-flow
labels:
app: sdlc-flow
fullname: sdlc-flow
- chart: base-1.11.0
+ chart: base-1.14.2
release: sdlc-flow
heritage: Helm
isys: "flow-adapters-dev"
psvc: "sdlc-flow"
version: "master"
spec:
ports:
- name: web
port: 80
protocol: TCP
targetPort: 8080
selector:
app: sdlc-flow
fullname: sdlc-flow
release: sdlc-flow
type: ClusterIP
isys-flow-adapters-dev, sdlc-flow-app-cm-env, ConfigMap (v1) has changed:
# Source: base/templates/cm-env.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: sdlc-flow-app-cm-env
labels:
app: sdlc-flow
fullname: sdlc-flow
- chart: base-1.11.0
+ chart: base-1.14.2
release: sdlc-flow
heritage: Helm
isys: "flow-adapters-dev"
psvc: "sdlc-flow"
version: "master"
workload.topology.app.farm/zone: "rumsk1"
data:
APP_FARM_TOKEN_URL: "https://auth.rshbdev.ru/auth/realms/platform/protocol/openid-connect/token"
APP_LOG_LEVEL_RU_RSHB: "TRACE"
APP_LOG_LEVEL_RU_RSHBINTECH: "TRACE"
APP_LOG_LEVEL_RU_RSHBINTECH_LOGGING_STARTER_ASPECT: "TRACE"
APP_LOG_LEVEL_SPRINGFRAMEWORK: "INFO"
EXTERNAL_ADDRESS: "https://10.7.60.209:8081"
INTEGRATIONCORE_BDVALIDATOR: "http://bd-validator.isys-integration-core-dev"
JAVA_OPTS: "-XX:+PrintFlagsFinal -XX:MaxRAMPercentage=75.0 -XX:MinRAMPercentage=75.0 -XX:+UseTransparentHugePages"
KUBERNETES_CLUSTER: "DEV"
LOG_DATE_FORMAT: "yyyy-MM-dd HH:mm:ss.SSS"
LOG_MESSAGEFORMAT: "false"
LOG_ORDER_CLUSTER: "90"
LOG_ORDER_ENDPOINT: "50"
LOG_ORDER_LEVEL: "20"
LOG_ORDER_LOGGERNAME: "40"
LOG_ORDER_MESSAGE: "30"
LOG_ORDER_OFFSET: "80"
LOG_ORDER_THREAD: "70"
LOG_ORDER_TIMESTAMP: "10"
LOG_ORDER_TRACEID: "60"
LOG_SHOW_SENSITIVE_DATA: "true"
SPRING_PROFILES_ACTIVE: "dev"
isys-flow-adapters-dev, sdlc-flow-app-secret-env, Secret (v1) has changed:
+ Changes suppressed on sensitive content of type Secret
Listing releases matching ^pjob-sdlc-flow$
Listing releases matching ^exsvc-sdlc-flow$
Listing releases matching ^data-sdlc-flow$
Listing releases matching ^assets-config-sdlc-flow$
Listing releases matching ^platform-database-sdlc-flow$
Listing releases matching ^sdlc-flow-raw$
Listing releases matching ^sdlc-flow-grafana-dashboard$
Listing releases matching ^sdlc-flow-rumsk1$
Listing releases matching ^sdlc-flow-rumsk2$
Upgrading release=sdlc-flow, chart=rshb-charts/base
FAILED RELEASES:
NAME
sdlc-flow
in deploy/helmfile.yaml: failed processing release sdlc-flow: 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: sdlc-flow (9 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-flow-adapters-dev (22 bytes)
18: --values (8 bytes)
19: /tmp/helmfile3339411522/isys-flow-adapters-dev-sdlc-flow-values-79d7fb7c87 (74 bytes)
20: --values (8 bytes)
21: /tmp/helmfile3715180440/isys-flow-adapters-dev-sdlc-flow-values-7b89d9d967 (74 bytes)
22: --set (5 bytes)
23: additionalWorkloadAnnotations.gitlabPipeline=https://gitlab.rshbdev.ru/rshbintech/integrations/cki/ip2-services/flow-adapters/sdlc-flow/-/pipelines/3196052 (155 bytes)
24: --set (5 bytes)
25: additionalWorkloadAnnotations.gitlabCommit=3f7f97a2d0bd1b246fbce0b8e3991494ab514894 (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 sdlc-flow 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 sdlc-flow 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=24766349 responseStatus=201 Created token=64_Nepem
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: command terminated with exit code 1