--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-16 22:09:44] Verification-am pre : N/A ________________________________________________________________________________ [2024-04-16 22:09:44] - INFO: Timeout for this Task has changed to 2h (7200 seconds) [2024-04-16 22:09:44] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset ________________________________________________________________________________ [2024-04-16 22:09:44] Verification-am step1 : Wait until pods are in Running state and check number of running pods ________________________________________________________________________________ 2024-04-16 22:09:44,267 INFO 2024-04-16 22:09:44,268 INFO --------------------- Get expected number of pods --------------------- 2024-04-16 22:09:44,268 INFO 2024-04-16 22:09:44,269 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-16 22:09:44,269 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-16 22:09:45,227 INFO [loop_until]: OK (rc = 0) 2024-04-16 22:09:45,227 DEBUG --- stdout --- 2024-04-16 22:09:45,227 DEBUG 3 2024-04-16 22:09:45,227 DEBUG --- stderr --- 2024-04-16 22:09:45,228 DEBUG 2024-04-16 22:09:45,228 INFO 2024-04-16 22:09:45,228 INFO -------------- Waiting for 3 expected pod(s) to be ready -------------- 2024-04-16 22:09:45,228 INFO 2024-04-16 22:09:45,228 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-16 22:09:45,228 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2024-04-16 22:09:46,119 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-16 22:09:46,120 INFO [loop_until]: OK (rc = 0) 2024-04-16 22:09:46,120 DEBUG --- stdout --- 2024-04-16 22:09:46,120 DEBUG ready:3 replicas:3 2024-04-16 22:09:46,120 DEBUG --- stderr --- 2024-04-16 22:09:46,120 DEBUG ________________________________________________________________________________ [2024-04-16 22:09:46] Verification-am step2 : Discovering pods ________________________________________________________________________________ 2024-04-16 22:09:46,121 INFO 2024-04-16 22:09:46,121 INFO --------------------- Get expected number of pods --------------------- 2024-04-16 22:09:46,121 INFO 2024-04-16 22:09:46,121 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-16 22:09:46,121 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-16 22:09:47,003 INFO [loop_until]: OK (rc = 0) 2024-04-16 22:09:47,004 DEBUG --- stdout --- 2024-04-16 22:09:47,004 DEBUG 3 2024-04-16 22:09:47,004 DEBUG --- stderr --- 2024-04-16 22:09:47,004 DEBUG 2024-04-16 22:09:47,004 INFO 2024-04-16 22:09:47,004 INFO ---------------------------- Get pod list ---------------------------- 2024-04-16 22:09:47,004 INFO 2024-04-16 22:09:47,004 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-16 22:09:47,005 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0] 2024-04-16 22:09:47,738 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found 2024-04-16 22:09:47,738 INFO [loop_until]: OK (rc = 0) 2024-04-16 22:09:47,738 DEBUG --- stdout --- 2024-04-16 22:09:47,738 DEBUG am-555f4db595-4lbss am-555f4db595-fz8sn am-555f4db595-kzxsp 2024-04-16 22:09:47,738 DEBUG --- stderr --- 2024-04-16 22:09:47,738 DEBUG ________________________________________________________________________________ [2024-04-16 22:09:47] Verification-am step3 : Check component is alive ________________________________________________________________________________ 2024-04-16 22:09:47,739 INFO Livecheck to https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/health/ready 2024-04-16 22:09:47,739 INFO [http_cmd]: curl -L --request GET "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/health/ready" 2024-04-16 22:09:48,036 INFO [http_cmd]: http status code OK 2024-04-16 22:09:48,036 DEBUG --- status code --- 2024-04-16 22:09:48,036 DEBUG http status code is 200 (expected 200) 2024-04-16 22:09:48,036 DEBUG --- http response --- 2024-04-16 22:09:48,036 DEBUG 2024-04-16 22:09:48,036 INFO Authenticate user amadmin via REST 2024-04-16 22:09:48,036 INFO [http_cmd]: curl -L --request POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/" 2024-04-16 22:09:48,323 INFO [http_cmd]: http status code OK 2024-04-16 22:09:48,323 DEBUG --- status code --- 2024-04-16 22:09:48,323 DEBUG http status code is 200 (expected 200) 2024-04-16 22:09:48,323 DEBUG --- http response --- 2024-04-16 22:09:48,323 DEBUG { "tokenId": "zmV0lk7IdaY5vjorrGcUyiiWgK0.*AAJTSQACMDIAAlNLABw5Q2p5YzFoMWwzZ3J4bEFwMy95ZzhETEJvZHM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*", "successUrl": "/am/console", "realm": "/" } PASS : component am is alive ________________________________________________________________________________ [2024-04-16 22:09:48] Verification-am step4 : Record version ________________________________________________________________________________ 2024-04-16 22:09:48,328 INFO 2024-04-16 22:09:48,328 INFO ----------------------- Get AM software version ----------------------- 2024-04-16 22:09:48,328 INFO Getting product version from https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/serverinfo/version 2024-04-16 22:09:49,175 INFO [LoginSession] Get "token_id" token for user "amadmin" 2024-04-16 22:09:49,176 DEBUG [LoginSession] re-using "token_id" token that remains valid for 29m 49s 2024-04-16 22:09:49,176 INFO [http_cmd]: curl -L --request GET --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=k5JC8MHlynzKIc0JNYjkidjcvtY.*AAJTSQACMDIAAlNLABxKYUxvTDVJM1FueXJaSitvbU1HTXFFeVlYOFU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/serverinfo/version" 2024-04-16 22:09:49,426 INFO [http_cmd]: http status code OK 2024-04-16 22:09:49,426 DEBUG --- status code --- 2024-04-16 22:09:49,426 DEBUG http status code is 200 (expected 200) 2024-04-16 22:09:49,426 DEBUG --- http response --- 2024-04-16 22:09:49,427 DEBUG { "_id": "version", "_rev": "2117078800", "version": "7.6.0-SNAPSHOT", "fullVersion": "ForgeRock Access Management 7.6.0-SNAPSHOT Build 22d357546ce5875c6a5368e1656cb87cd71537f7 (2024-April-05 16:07)", "revision": "22d357546ce5875c6a5368e1656cb87cd71537f7", "date": "2024-April-05 16:07" } Version is 7.6.0-SNAPSHOT Revision is 22d357546ce5875c6a5368e1656cb87cd71537f7 ________________________________________________________________________________ [2024-04-16 22:09:49] Verification-am step5 : Checking pod restart counts ________________________________________________________________________________ 2024-04-16 22:09:49,430 INFO 2024-04-16 22:09:49,430 INFO ------------- Check pod am-555f4db595-4lbss restart count ------------- 2024-04-16 22:09:49,431 INFO 2024-04-16 22:09:49,432 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-555f4db595-4lbss --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-16 22:09:49,432 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-16 22:09:49,861 INFO [loop_until]: OK (rc = 0) 2024-04-16 22:09:49,862 DEBUG --- stdout --- 2024-04-16 22:09:49,862 DEBUG 0 2024-04-16 22:09:49,862 DEBUG --- stderr --- 2024-04-16 22:09:49,862 DEBUG 2024-04-16 22:09:49,862 INFO Pod am-555f4db595-4lbss has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases 2024-04-16 22:09:49,862 INFO 2024-04-16 22:09:49,862 INFO ------------- Check pod am-555f4db595-fz8sn restart count ------------- 2024-04-16 22:09:49,862 INFO 2024-04-16 22:09:49,862 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-555f4db595-fz8sn --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-16 22:09:49,862 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-16 22:09:50,277 INFO [loop_until]: OK (rc = 0) 2024-04-16 22:09:50,277 DEBUG --- stdout --- 2024-04-16 22:09:50,277 DEBUG 0 2024-04-16 22:09:50,277 DEBUG --- stderr --- 2024-04-16 22:09:50,277 DEBUG 2024-04-16 22:09:50,277 INFO Pod am-555f4db595-fz8sn has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases 2024-04-16 22:09:50,277 INFO 2024-04-16 22:09:50,277 INFO ------------- Check pod am-555f4db595-kzxsp restart count ------------- 2024-04-16 22:09:50,278 INFO 2024-04-16 22:09:50,278 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-555f4db595-kzxsp --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-16 22:09:50,278 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-16 22:09:50,874 INFO [loop_until]: OK (rc = 0) 2024-04-16 22:09:50,875 DEBUG --- stdout --- 2024-04-16 22:09:50,875 DEBUG 0 2024-04-16 22:09:50,875 DEBUG --- stderr --- 2024-04-16 22:09:50,875 DEBUG 2024-04-16 22:09:50,875 INFO Pod am-555f4db595-kzxsp has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ________________________________________________________________________________ [2024-04-16 22:09:50] Verification-am post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped