--Task-- name: Verification-am enabled: True class_name: VerificationTask source_name: am source_namespace: >default< target_name: am target_namespace: >default< start: 0.0 stop: None timeout: not yet initialized for this Task as timeout was not explicitly defined, see updates bellow loop: False interval: None dependencies: [] wait_for: [] preceding_task: None options: {} group_name: None Current dir: /mnt/disks/data/xslou/lodestar-fork/pyrock ________________________________________________________________________________ [2024-04-13 02:24:15] Verification-am pre : N/A ________________________________________________________________________________ [2024-04-13 02:24:15] - INFO: Timeout for this Task has changed to 12h (43200 seconds) [2024-04-13 02:24:15] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset ________________________________________________________________________________ [2024-04-13 02:24:15] Verification-am step1 : Wait until pods are in Running state and check number of running pods ________________________________________________________________________________ 2024-04-13 02:24:15,181 INFO 2024-04-13 02:24:15,182 INFO --------------------- Get expected number of pods --------------------- 2024-04-13 02:24:15,183 INFO 2024-04-13 02:24:15,248 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get deployments --selector app=am --output jsonpath={.items[*].spec.replicas} 2024-04-13 02:24:15,253 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-13 02:24:16,324 INFO [loop_until]: OK (rc = 0) 2024-04-13 02:24:16,324 DEBUG --- stdout --- 2024-04-13 02:24:16,324 DEBUG 3 2024-04-13 02:24:16,324 DEBUG --- stderr --- 2024-04-13 02:24:16,324 DEBUG 2024-04-13 02:24:16,325 INFO 2024-04-13 02:24:16,325 INFO -------------- Waiting for 3 expected pod(s) to be ready -------------- 2024-04-13 02:24:16,325 INFO 2024-04-13 02:24:16,325 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get deployments am --output jsonpath="ready:{.status.readyReplicas} replicas:{.status.replicas}" | grep "ready:3 replicas:3" 2024-04-13 02:24:16,325 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2024-04-13 02:24:17,415 INFO [loop_until]: Function succeeded after 1s (rc=0) - expected pattern found 2024-04-13 02:24:17,415 INFO [loop_until]: OK (rc = 0) 2024-04-13 02:24:17,415 DEBUG --- stdout --- 2024-04-13 02:24:17,415 DEBUG ready:3 replicas:3 2024-04-13 02:24:17,415 DEBUG --- stderr --- 2024-04-13 02:24:17,415 DEBUG ________________________________________________________________________________ [2024-04-13 02:24:17] Verification-am step2 : Discovering pods ________________________________________________________________________________ 2024-04-13 02:24:17,416 INFO 2024-04-13 02:24:17,416 INFO --------------------- Get expected number of pods --------------------- 2024-04-13 02:24:17,416 INFO 2024-04-13 02:24:17,416 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get deployments --selector app=am --output jsonpath={.items[*].spec.replicas} 2024-04-13 02:24:17,416 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-13 02:24:18,165 INFO [loop_until]: OK (rc = 0) 2024-04-13 02:24:18,166 DEBUG --- stdout --- 2024-04-13 02:24:18,166 DEBUG 3 2024-04-13 02:24:18,166 DEBUG --- stderr --- 2024-04-13 02:24:18,166 DEBUG 2024-04-13 02:24:18,166 INFO 2024-04-13 02:24:18,166 INFO ---------------------------- Get pod list ---------------------------- 2024-04-13 02:24:18,167 INFO 2024-04-13 02:24:18,167 INFO [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods --selector app=am --output jsonpath={.items[*].metadata.name}` | grep 3 2024-04-13 02:24:18,167 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0] 2024-04-13 02:24:18,881 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found 2024-04-13 02:24:18,881 INFO [loop_until]: OK (rc = 0) 2024-04-13 02:24:18,881 DEBUG --- stdout --- 2024-04-13 02:24:18,881 DEBUG am-6d96779b5d-pfljh am-6d96779b5d-qbg7l am-6d96779b5d-zn69c 2024-04-13 02:24:18,881 DEBUG --- stderr --- 2024-04-13 02:24:18,881 DEBUG ________________________________________________________________________________ [2024-04-13 02:24:18] Verification-am step3 : Check component is alive ________________________________________________________________________________ 2024-04-13 02:24:18,882 INFO Livecheck to https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/health/ready 2024-04-13 02:24:18,882 INFO [http_cmd]: curl -L --request GET "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/health/ready" 2024-04-13 02:24:19,132 INFO [http_cmd]: http status code OK 2024-04-13 02:24:19,133 DEBUG --- status code --- 2024-04-13 02:24:19,133 DEBUG http status code is 200 (expected 200) 2024-04-13 02:24:19,133 DEBUG --- http response --- 2024-04-13 02:24:19,133 DEBUG 2024-04-13 02:24:19,133 INFO Authenticate user amadmin via REST 2024-04-13 02:24:19,133 INFO [http_cmd]: curl -L --request POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/" 2024-04-13 02:24:19,370 INFO [http_cmd]: http status code OK 2024-04-13 02:24:19,370 DEBUG --- status code --- 2024-04-13 02:24:19,370 DEBUG http status code is 200 (expected 200) 2024-04-13 02:24:19,370 DEBUG --- http response --- 2024-04-13 02:24:19,370 DEBUG { "tokenId": "kEhlPcZsrG1V5bf7FyF-EvTlvf4.*AAJTSQACMDIAAlNLABxJNkt4VVl3U094TkFhTTlNdXRXYmJXUmFkYk09AAR0eXBlAANDVFMAAlMxAAIwMQ..*", "successUrl": "/am/console", "realm": "/" } PASS : component am is alive ________________________________________________________________________________ [2024-04-13 02:24:19] Verification-am step4 : Record version ________________________________________________________________________________ 2024-04-13 02:24:19,374 INFO 2024-04-13 02:24:19,374 INFO ----------------------- Get AM software version ----------------------- 2024-04-13 02:24:19,375 INFO Getting product version from https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/serverinfo/version 2024-04-13 02:24:19,921 INFO [LoginSession] Get "token_id" token for user "amadmin" 2024-04-13 02:24:19,921 DEBUG [LoginSession] re-using "token_id" token that remains valid for 2m 48s 2024-04-13 02:24:19,922 INFO [http_cmd]: curl -L --request GET --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=OTeuYrnbK3JOzhKcYS7v8_jxZaM.*AAJTSQACMDIAAlNLABxZMHBwK2p2M2gxaWZBQW5XL0gvaVFEZURDSU09AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1712975060.297.38548.642134|f60edb382037eb2df1e800d563ad78a7" "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/serverinfo/version" 2024-04-13 02:24:20,199 INFO [http_cmd]: http status code OK 2024-04-13 02:24:20,199 DEBUG --- status code --- 2024-04-13 02:24:20,199 DEBUG http status code is 200 (expected 200) 2024-04-13 02:24:20,199 DEBUG --- http response --- 2024-04-13 02:24:20,200 DEBUG { "_id": "version", "_rev": "-2070515436", "version": "7.6.0-SNAPSHOT", "fullVersion": "ForgeRock Access Management 7.6.0-SNAPSHOT Build 0449af26230b3dbde39b69d27b76a420998ce4a5 (2024-April-11 15:09)", "revision": "0449af26230b3dbde39b69d27b76a420998ce4a5", "date": "2024-April-11 15:09" } Version is 7.6.0-SNAPSHOT Revision is 0449af26230b3dbde39b69d27b76a420998ce4a5 ________________________________________________________________________________ [2024-04-13 02:24:20] Verification-am step5 : Checking pod restart counts ________________________________________________________________________________ 2024-04-13 02:24:20,204 INFO 2024-04-13 02:24:20,204 INFO ------------- Check pod am-6d96779b5d-pfljh restart count ------------- 2024-04-13 02:24:20,210 INFO 2024-04-13 02:24:20,210 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-6d96779b5d-pfljh --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-13 02:24:20,210 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-13 02:24:20,600 INFO [loop_until]: OK (rc = 0) 2024-04-13 02:24:20,600 DEBUG --- stdout --- 2024-04-13 02:24:20,600 DEBUG 0 2024-04-13 02:24:20,600 DEBUG --- stderr --- 2024-04-13 02:24:20,600 DEBUG 2024-04-13 02:24:20,600 INFO Pod am-6d96779b5d-pfljh has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases 2024-04-13 02:24:20,600 INFO 2024-04-13 02:24:20,600 INFO ------------- Check pod am-6d96779b5d-qbg7l restart count ------------- 2024-04-13 02:24:20,600 INFO 2024-04-13 02:24:20,600 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-6d96779b5d-qbg7l --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-13 02:24:20,600 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-13 02:24:20,974 INFO [loop_until]: OK (rc = 0) 2024-04-13 02:24:20,974 DEBUG --- stdout --- 2024-04-13 02:24:20,975 DEBUG 0 2024-04-13 02:24:20,975 DEBUG --- stderr --- 2024-04-13 02:24:20,975 DEBUG 2024-04-13 02:24:20,975 INFO Pod am-6d96779b5d-qbg7l has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases 2024-04-13 02:24:20,975 INFO 2024-04-13 02:24:20,975 INFO ------------- Check pod am-6d96779b5d-zn69c restart count ------------- 2024-04-13 02:24:20,975 INFO 2024-04-13 02:24:20,975 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-6d96779b5d-zn69c --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-13 02:24:20,976 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-13 02:24:21,678 INFO [loop_until]: OK (rc = 0) 2024-04-13 02:24:21,679 DEBUG --- stdout --- 2024-04-13 02:24:21,679 DEBUG 0 2024-04-13 02:24:21,679 DEBUG --- stderr --- 2024-04-13 02:24:21,679 DEBUG 2024-04-13 02:24:21,680 INFO Pod am-6d96779b5d-zn69c has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ________________________________________________________________________________ [2024-04-13 02:24:21] Verification-am post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped