Running with gitlab-runner 14.1.0 (8925d9a0)  on gitlab-runners-bigbang-gl-packages-privileged-gitlab-runneb7dvc L_wAsvdS section_start:1631057560:resolve_secrets Resolving secrets section_end:1631057560:resolve_secrets section_start:1631057560:prepare_executor Preparing the "kubernetes" executor Using Kubernetes namespace: gitlab-runners Using Kubernetes executor with image registry.dso.mil/platform-one/big-bang/pipeline-templates/pipeline-templates/k3d-builder:0.0.5 ... Using attach strategy to execute scripts... section_end:1631057560:prepare_executor section_start:1631057560:prepare_script Preparing environment Waiting for pod gitlab-runners/runner-lwasvds-project-2324-concurrent-04pwcz to be running, status is Pending Running on runner-lwasvds-project-2324-concurrent-04pwcz via gitlab-runners-bigbang-gl-packages-privileged-gitlab-runneb7dvc... section_end:1631057567:prepare_script section_start:1631057567:get_sources Getting source from Git repository Fetching changes with git depth set to 50... Initialized empty Git repository in /builds/L_wAsvdS/0/platform-one/big-bang/apps/security-tools/keycloak/.git/ Created fresh repository. Checking out b55aa0ac as refs/merge-requests/35/head... Skipping Git submodules setup section_end:1631057576:get_sources section_start:1631057576:step_script Executing "step_script" stage of the job script $ echo -e "\e[0Ksection_start:`date +%s`:cluster_setup[collapsed=true]\r\e[0KCluster Setup" section_start:1631057576:cluster_setup[collapsed=true] Cluster Setup $ if [ -z ${PIPELINE_REPO_BRANCH} ]; then # collapsed multi-line command $ git clone -b ${PIPELINE_REPO_BRANCH} ${PIPELINE_REPO} ${PIPELINE_REPO_DESTINATION} Cloning into '../pipeline-repo'... $ source ${WAIT_PATH} $ i=0; while [ "$i" -lt 12 ]; do docker info &>/dev/null && break; sleep 5; i=$(( i + 1 )) ; done $ docker network create ${CI_JOB_ID} --driver=bridge -o "com.docker.network.driver.mtu"="1450" e02b19ba223d24f4058332180c32bc31d8a2436e494afa6d78027b97f7785572 $ k3d cluster create ${CI_JOB_ID} --config ${K3D_CONFIG_PATH} --network ${CI_JOB_ID} INFO[0000] Using config file ../pipeline-repo/jobs/k3d-ci/config.yaml INFO[0000] Prep: Network INFO[0000] Network with name '6308812' already exists with ID 'e02b19ba223d24f4058332180c32bc31d8a2436e494afa6d78027b97f7785572' INFO[0000] Created volume 'k3d-6308812-images' INFO[0001] Creating node 'k3d-6308812-server-0' INFO[0002] Pulling image 'docker.io/rancher/k3s:v1.20.4-k3s1' INFO[0004] Creating LoadBalancer 'k3d-6308812-serverlb' INFO[0005] Pulling image 'docker.io/rancher/k3d-proxy:v4.3.0' INFO[0007] Starting cluster '6308812' INFO[0007] Starting servers... INFO[0007] Starting Node 'k3d-6308812-server-0' INFO[0012] Starting agents... INFO[0012] Starting helpers... INFO[0012] Starting Node 'k3d-6308812-serverlb' INFO[0012] (Optional) Trying to get IP of the docker host and inject it into the cluster as 'host.k3d.internal' for easy access INFO[0016] Successfully added host record to /etc/hosts in 2/2 nodes and to the CoreDNS ConfigMap INFO[0016] Cluster '6308812' created successfully! INFO[0016] --kubeconfig-update-default=false --> sets --kubeconfig-switch-context=false INFO[0016] You can now use it like this: kubectl config use-context k3d-6308812 kubectl cluster-info $ until kubectl get deployment coredns -n kube-system -o go-template='{{.status.availableReplicas}}' | grep -v -e ''; do sleep 1s; done 1 $ if [ ! -z ${PROJECT_NAME} ]; then # collapsed multi-line command namespace/keycloak created secret/private-registry created secret/private-registry-mil created $ echo -e "\e[0Ksection_end:`date +%s`:cluster_setup\r\e[0K" section_end:1631057617:cluster_setup  $ echo -e "\e[0Ksection_start:`date +%s`:dependency_clean[collapsed=true]\r\e[0KDependency Install and Wait" section_start:1631057617:dependency_clean[collapsed=true] Dependency Install and Wait $ if [ -f "tests/dependencies.yaml" ]; then # collapsed multi-line command $ if [ -f "tests/dependencies.yaml" ]; then # collapsed multi-line command $ echo -e "\e[0Ksection_end:`date +%s`:dependency_clean\r\e[0K" section_end:1631057617:dependency_clean  $ if [ ! -z ${PROJECT_NAME} ]; then # collapsed multi-line command Helm installing keycloak/chart into keycloak namespace using keycloak/tests/test-values.yaml for values Release "keycloak" does not exist. Installing it now. NAME: keycloak LAST DEPLOYED: Tue Sep 7 23:33:37 2021 NAMESPACE: keycloak STATUS: deployed REVISION: 1 NOTES: *********************************************************************** * * * Keycloak Helm Chart by codecentric AG * * * *********************************************************************** Keycloak was installed with a Service of type ClusterIP Create a port-forwarding with the following commands: export POD_NAME=$(kubectl get pods --namespace keycloak -l "app.kubernetes.io/name=keycloak,app.kubernetes.io/instance=keycloak" -o name) echo "Visit http://127.0.0.1:8080 to use your application" kubectl --namespace keycloak port-forward "$POD_NAME" 8080 $ sleep 10 # collapsed multi-line command $ if [ -d "chart/templates/tests" ]; then # collapsed multi-line command NAME: keycloak LAST DEPLOYED: Tue Sep 7 23:33:37 2021 NAMESPACE: keycloak STATUS: deployed REVISION: 1 TEST SUITE: keycloak-cypress-sa Last Started: Tue Sep 7 23:36:00 2021 Last Completed: Tue Sep 7 23:36:00 2021 Phase: Succeeded TEST SUITE: keycloak-cypress-config Last Started: Tue Sep 7 23:36:00 2021 Last Completed: Tue Sep 7 23:36:00 2021 Phase: Succeeded TEST SUITE: keycloak-cypress-role Last Started: Tue Sep 7 23:36:00 2021 Last Completed: Tue Sep 7 23:36:00 2021 Phase: Succeeded TEST SUITE: keycloak-cypress-rolebinding Last Started: Tue Sep 7 23:36:00 2021 Last Completed: Tue Sep 7 23:36:00 2021 Phase: Succeeded TEST SUITE: keycloak-cypress-test Last Started: Tue Sep 7 23:36:00 2021 Last Completed: Tue Sep 7 23:36:39 2021 Phase: Succeeded NOTES: *********************************************************************** * * * Keycloak Helm Chart by codecentric AG * * * *********************************************************************** Keycloak was installed with a Service of type ClusterIP Create a port-forwarding with the following commands: export POD_NAME=$(kubectl get pods --namespace keycloak -l "app.kubernetes.io/name=keycloak,app.kubernetes.io/instance=keycloak" -o name) echo "Visit http://127.0.0.1:8080 to use your application" kubectl --namespace keycloak port-forward "$POD_NAME" 8080 ***** Start Helm Test Logs ***** ====================================================================================================  (Run Starting)  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ Cypress: 5.0.0 │  │ Browser: Chrome 83 (headless) │  │ Specs: 1 found (keycloak-health.spec.js) │  └────────────────────────────────────────────────────────────────────────────────────────────────┘ ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: keycloak-health.spec.js (1 of 1) Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db   Keycloak Healthcheck  ✓ Check if Keycloak admin console is accessible (775ms)  ✓ Check if Keycloak registration page loads (354ms)  ✓ Check Keycloak unauthenticated user get login page (153ms)   3 passing (2s)  (Results)  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ Tests: 3 │  │ Passing: 3 │  │ Failing: 0 │  │ Pending: 0 │  │ Skipped: 0 │  │ Screenshots: 0 │  │ Video: true │  │ Duration: 2 seconds │  │ Spec Ran: keycloak-health.spec.js │  └────────────────────────────────────────────────────────────────────────────────────────────────┘  (Video)   - Started processing: Compressing to 32 CRF   - Finished processing: /test/cypress/videos/keycloak-health.spec.js.mp4 (0 seconds) ====================================================================================================  (Run Finished)   Spec Tests Passing Failing Pending Skipped    ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ ✔ keycloak-health.spec.js 00:02 3 3 - - - │  └────────────────────────────────────────────────────────────────────────────────────────────────┘   ✔ All specs passed! 00:02 3 3 - - -   tar: Removing leading `/' from member names configmap/cypress-videos created ***** End Helm Test Logs ***** $ touch $CI_PROJECT_DIR/success $ echo -e "\e[0Ksection_start:`date +%s`:image_fetch[collapsed=true]\r\e[0KFetch Images" section_start:1631057799:image_fetch[collapsed=true] Fetch Images $ images=$(timeout 65 bash -c "until docker exec -i k3d-${CI_JOB_ID}-server-0 crictl images -o json; do sleep 10; done;") $ echo $images | jq -r '.images[].repoTags[0] | select(. != null)' | tee images.txt docker.io/rancher/coredns-coredns:1.8.0 docker.io/rancher/library-busybox:1.32.1 docker.io/rancher/local-path-provisioner:v0.0.19 docker.io/rancher/metrics-server:v0.3.6 docker.io/rancher/pause:3.1 registry.dso.mil/platform-one/big-bang/apps/security-tools/keycloak/busybox:1.32 registry.dso.mil/platform-one/big-bang/apps/security-tools/keycloak/keycloak-ib:14.0.0-1.0.4-1 registry.dso.mil/platform-one/big-bang/apps/security-tools/keycloak/postgresql:11.8.0-debian-10-r61 registry.dso.mil/platform-one/big-bang/pipeline-templates/pipeline-templates/cypress/kubectl:5.0.0 $ sed -i '/docker.io\/rancher\//d' images.txt $ if [ -f tests/images.txt ]; then # collapsed multi-line command $ echo -e "\e[0Ksection_end:`date +%s`:image_fetch\r\e[0K" section_end:1631057800:image_fetch  section_end:1631057800:step_script section_start:1631057800:after_script Running after_script Running after script... $ if [ -e success ]; then # collapsed multi-line command section_start:1631057800:cluster_status[collapsed=true] Cluster Status Job Succeeded, cluster status: NAMESPACE NAME READY STATUS RESTARTS AGE kube-system pod/local-path-provisioner-5ff76fc89d-shfg5 1/1 Running 0 3m14s kube-system pod/metrics-server-86cbb8457f-jtp8s 1/1 Running 0 3m14s kube-system pod/coredns-854c77959c-6h7mn 1/1 Running 0 3m14s keycloak pod/keycloak-postgresql-0 1/1 Running 0 3m2s keycloak pod/keycloak-0 1/1 Running 0 3m2s keycloak pod/keycloak-cypress-test 0/1 Completed 0 39s NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE default service/kubernetes ClusterIP 10.43.0.1 443/TCP 3m30s kube-system service/kube-dns ClusterIP 10.43.0.10 53/UDP,53/TCP,9153/TCP 3m28s kube-system service/metrics-server ClusterIP 10.43.201.248 443/TCP 3m28s keycloak service/keycloak-postgresql-headless ClusterIP None 5432/TCP 3m2s keycloak service/keycloak-headless ClusterIP None 80/TCP 3m2s keycloak service/keycloak-http ClusterIP 10.43.152.145 80/TCP,8443/TCP,9990/TCP,7600/TCP 3m2s keycloak service/keycloak-postgresql ClusterIP 10.43.127.162 5432/TCP 3m2s NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE kube-system deployment.apps/local-path-provisioner 1/1 1 1 3m28s kube-system deployment.apps/metrics-server 1/1 1 1 3m28s kube-system deployment.apps/coredns 1/1 1 1 3m28s NAMESPACE NAME DESIRED CURRENT READY AGE kube-system replicaset.apps/local-path-provisioner-5ff76fc89d 1 1 1 3m14s kube-system replicaset.apps/metrics-server-86cbb8457f 1 1 1 3m14s kube-system replicaset.apps/coredns-854c77959c 1 1 1 3m14s NAMESPACE NAME READY AGE keycloak statefulset.apps/keycloak-postgresql 1/1 3m2s keycloak statefulset.apps/keycloak 1/1 3m2s section_end:1631057800:cluster_status  $ echo -e "\e[0Ksection_start:`date +%s`:cluster_clean[collapsed=true]\r\e[0KCluster Cleanup" section_start:1631057800:cluster_clean[collapsed=true] Cluster Cleanup $ k3d cluster delete ${CI_JOB_ID} INFO[0000] Deleting cluster '6308812' INFO[0000] Deleted k3d-6308812-serverlb INFO[0004] Deleted k3d-6308812-server-0 INFO[0004] Deleting image volume 'k3d-6308812-images' INFO[0004] Removing cluster details from default kubeconfig... INFO[0004] Removing standalone kubeconfig file (if there is one)... INFO[0004] Successfully deleted cluster 6308812! $ docker network rm ${CI_JOB_ID} 6308812 $ echo -e "\e[0Ksection_end:`date +%s`:cluster_clean\r\e[0K" section_end:1631057805:cluster_clean  section_end:1631057805:after_script section_start:1631057805:upload_artifacts_on_success Uploading artifacts for successful job Uploading artifacts... images.txt: found 1 matching files and directories WARNING: tests/cypress/screenshots: no matching files WARNING: tests/cypress/videos: no matching files  cypress-artifacts: found 3 matching files and directories Uploading artifacts as "archive" to coordinator... ok id=6308812 responseStatus=201 Created token=YhpQe-Vx section_end:1631057806:upload_artifacts_on_success section_start:1631057806:cleanup_file_variables Cleaning up file based variables section_end:1631057807:cleanup_file_variables Job succeeded