--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-10 05:48:40] Verification-am pre : N/A ________________________________________________________________________________ [2024-04-10 05:48:40] - INFO: Timeout for this Task has changed to 14h (50400 seconds) [2024-04-10 05:48:40] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset ________________________________________________________________________________ [2024-04-10 05:48:40] Verification-am step1 : Wait until pods are in Running state and check number of running pods ________________________________________________________________________________ 2024-04-10 05:48:40,258 INFO 2024-04-10 05:48:40,258 INFO --------------------- Get expected number of pods --------------------- 2024-04-10 05:48:40,259 INFO 2024-04-10 05:48:40,263 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-10 05:48:40,318 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-10 05:48:41,533 INFO [loop_until]: OK (rc = 0) 2024-04-10 05:48:41,533 DEBUG --- stdout --- 2024-04-10 05:48:41,533 DEBUG 3 2024-04-10 05:48:41,533 DEBUG --- stderr --- 2024-04-10 05:48:41,533 DEBUG 2024-04-10 05:48:41,534 INFO 2024-04-10 05:48:41,534 INFO -------------- Waiting for 3 expected pod(s) to be ready -------------- 2024-04-10 05:48:41,534 INFO 2024-04-10 05:48:41,534 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-10 05:48:41,534 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2024-04-10 05:48:42,539 INFO [loop_until]: Function succeeded after 1s (rc=0) - expected pattern found 2024-04-10 05:48:42,547 INFO [loop_until]: OK (rc = 0) 2024-04-10 05:48:42,547 DEBUG --- stdout --- 2024-04-10 05:48:42,548 DEBUG ready:3 replicas:3 2024-04-10 05:48:42,548 DEBUG --- stderr --- 2024-04-10 05:48:42,548 DEBUG ________________________________________________________________________________ [2024-04-10 05:48:42] Verification-am step2 : Discovering pods ________________________________________________________________________________ 2024-04-10 05:48:42,549 INFO 2024-04-10 05:48:42,549 INFO --------------------- Get expected number of pods --------------------- 2024-04-10 05:48:42,549 INFO 2024-04-10 05:48:42,549 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-10 05:48:42,550 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-10 05:48:43,417 INFO [loop_until]: OK (rc = 0) 2024-04-10 05:48:43,417 DEBUG --- stdout --- 2024-04-10 05:48:43,417 DEBUG 3 2024-04-10 05:48:43,417 DEBUG --- stderr --- 2024-04-10 05:48:43,417 DEBUG 2024-04-10 05:48:43,417 INFO 2024-04-10 05:48:43,418 INFO ---------------------------- Get pod list ---------------------------- 2024-04-10 05:48:43,418 INFO 2024-04-10 05:48:43,418 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-10 05:48:43,418 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0] 2024-04-10 05:48:44,385 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found 2024-04-10 05:48:44,385 INFO [loop_until]: OK (rc = 0) 2024-04-10 05:48:44,385 DEBUG --- stdout --- 2024-04-10 05:48:44,385 DEBUG am-654c4fcbcf-487cv am-654c4fcbcf-9scrj am-654c4fcbcf-v5qb5 2024-04-10 05:48:44,385 DEBUG --- stderr --- 2024-04-10 05:48:44,385 DEBUG ________________________________________________________________________________ [2024-04-10 05:48:44] Verification-am step3 : Check component is alive ________________________________________________________________________________ 2024-04-10 05:48:44,386 INFO Livecheck to https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/health/ready 2024-04-10 05:48:44,386 INFO [http_cmd]: curl -L --request GET "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/health/ready" 2024-04-10 05:48:44,618 INFO [http_cmd]: http status code OK 2024-04-10 05:48:44,618 DEBUG --- status code --- 2024-04-10 05:48:44,618 DEBUG http status code is 200 (expected 200) 2024-04-10 05:48:44,618 DEBUG --- http response --- 2024-04-10 05:48:44,618 DEBUG 2024-04-10 05:48:44,619 INFO Authenticate user amadmin via REST 2024-04-10 05:48:44,619 INFO [http_cmd]: curl -L --request POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/" 2024-04-10 05:48:44,856 INFO [http_cmd]: http status code OK 2024-04-10 05:48:44,856 DEBUG --- status code --- 2024-04-10 05:48:44,856 DEBUG http status code is 200 (expected 200) 2024-04-10 05:48:44,856 DEBUG --- http response --- 2024-04-10 05:48:44,856 DEBUG { "tokenId": "XEVTweJdepqyLkrq1S_bwj2jubQ.*AAJTSQACMDIAAlNLABxKKzJjakhJZWFYWkVYM2dxY3hkT25EWDEvV0E9AAR0eXBlAANDVFMAAlMxAAIwMQ..*", "successUrl": "/am/console", "realm": "/" } PASS : component am is alive ________________________________________________________________________________ [2024-04-10 05:48:44] Verification-am step4 : Record version ________________________________________________________________________________ 2024-04-10 05:48:44,860 INFO 2024-04-10 05:48:44,860 INFO ----------------------- Get AM software version ----------------------- 2024-04-10 05:48:44,860 INFO Getting product version from https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/serverinfo/version 2024-04-10 05:48:45,375 INFO [LoginSession] Get "token_id" token for user "amadmin" 2024-04-10 05:48:45,376 DEBUG [LoginSession] re-using "token_id" token that remains valid for 2m 48s 2024-04-10 05:48:45,379 INFO [http_cmd]: curl -L --request GET --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=4t0tt-_zPocGKdeg-pB2de23j2c.*AAJTSQACMDIAAlNLABxtak5ydUFqOGk1eFgwZFFZczlXeUdiMUJhdFk9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1712728125.609.162106.635045|f60edb382037eb2df1e800d563ad78a7" "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/serverinfo/version" 2024-04-10 05:48:45,658 INFO [http_cmd]: http status code OK 2024-04-10 05:48:45,658 DEBUG --- status code --- 2024-04-10 05:48:45,658 DEBUG http status code is 200 (expected 200) 2024-04-10 05:48:45,658 DEBUG --- http response --- 2024-04-10 05:48:45,659 DEBUG { "_id": "version", "_rev": "-1131776936", "version": "7.6.0-SNAPSHOT", "fullVersion": "ForgeRock Access Management 7.6.0-SNAPSHOT Build 46abf9899004dcd77f0fdad8a152a3749b4a9c88 (2024-April-08 17:51)", "revision": "46abf9899004dcd77f0fdad8a152a3749b4a9c88", "date": "2024-April-08 17:51" } Version is 7.6.0-SNAPSHOT Revision is 46abf9899004dcd77f0fdad8a152a3749b4a9c88 ________________________________________________________________________________ [2024-04-10 05:48:45] Verification-am step5 : Checking pod restart counts ________________________________________________________________________________ 2024-04-10 05:48:45,662 INFO 2024-04-10 05:48:45,662 INFO ------------- Check pod am-654c4fcbcf-487cv restart count ------------- 2024-04-10 05:48:45,662 INFO 2024-04-10 05:48:45,662 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-654c4fcbcf-487cv --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-10 05:48:45,662 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-10 05:48:46,109 INFO [loop_until]: OK (rc = 0) 2024-04-10 05:48:46,109 DEBUG --- stdout --- 2024-04-10 05:48:46,109 DEBUG 0 2024-04-10 05:48:46,109 DEBUG --- stderr --- 2024-04-10 05:48:46,109 DEBUG 2024-04-10 05:48:46,110 INFO Pod am-654c4fcbcf-487cv has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases 2024-04-10 05:48:46,110 INFO 2024-04-10 05:48:46,110 INFO ------------- Check pod am-654c4fcbcf-9scrj restart count ------------- 2024-04-10 05:48:46,110 INFO 2024-04-10 05:48:46,110 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-654c4fcbcf-9scrj --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-10 05:48:46,110 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-10 05:48:46,654 INFO [loop_until]: OK (rc = 0) 2024-04-10 05:48:46,654 DEBUG --- stdout --- 2024-04-10 05:48:46,654 DEBUG 0 2024-04-10 05:48:46,654 DEBUG --- stderr --- 2024-04-10 05:48:46,654 DEBUG 2024-04-10 05:48:46,654 INFO Pod am-654c4fcbcf-9scrj has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases 2024-04-10 05:48:46,655 INFO 2024-04-10 05:48:46,655 INFO ------------- Check pod am-654c4fcbcf-v5qb5 restart count ------------- 2024-04-10 05:48:46,655 INFO 2024-04-10 05:48:46,655 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-654c4fcbcf-v5qb5 --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-10 05:48:46,655 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-10 05:48:47,223 INFO [loop_until]: OK (rc = 0) 2024-04-10 05:48:47,223 DEBUG --- stdout --- 2024-04-10 05:48:47,224 DEBUG 0 2024-04-10 05:48:47,224 DEBUG --- stderr --- 2024-04-10 05:48:47,224 DEBUG 2024-04-10 05:48:47,224 INFO Pod am-654c4fcbcf-v5qb5 has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ________________________________________________________________________________ [2024-04-10 05:48:47] Verification-am post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped