--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-15 00:03:27] Verification-am pre : N/A ________________________________________________________________________________ [2024-04-15 00:03:27] - INFO: Timeout for this Task has changed to 14h (50400 seconds) [2024-04-15 00:03:27] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset ________________________________________________________________________________ [2024-04-15 00:03:27] Verification-am step1 : Wait until pods are in Running state and check number of running pods ________________________________________________________________________________ 2024-04-15 00:03:27,746 INFO 2024-04-15 00:03:27,746 INFO --------------------- Get expected number of pods --------------------- 2024-04-15 00:03:27,746 INFO 2024-04-15 00:03:27,746 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-15 00:03:27,746 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-15 00:03:28,605 INFO [loop_until]: OK (rc = 0) 2024-04-15 00:03:28,605 DEBUG --- stdout --- 2024-04-15 00:03:28,605 DEBUG 3 2024-04-15 00:03:28,605 DEBUG --- stderr --- 2024-04-15 00:03:28,605 DEBUG 2024-04-15 00:03:28,605 INFO 2024-04-15 00:03:28,605 INFO -------------- Waiting for 3 expected pod(s) to be ready -------------- 2024-04-15 00:03:28,606 INFO 2024-04-15 00:03:28,606 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-15 00:03:28,606 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2024-04-15 00:03:29,090 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-15 00:03:29,090 INFO [loop_until]: OK (rc = 0) 2024-04-15 00:03:29,090 DEBUG --- stdout --- 2024-04-15 00:03:29,090 DEBUG ready:3 replicas:3 2024-04-15 00:03:29,091 DEBUG --- stderr --- 2024-04-15 00:03:29,091 DEBUG ________________________________________________________________________________ [2024-04-15 00:03:29] Verification-am step2 : Discovering pods ________________________________________________________________________________ 2024-04-15 00:03:29,092 INFO 2024-04-15 00:03:29,092 INFO --------------------- Get expected number of pods --------------------- 2024-04-15 00:03:29,092 INFO 2024-04-15 00:03:29,093 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-15 00:03:29,093 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-15 00:03:29,994 INFO [loop_until]: OK (rc = 0) 2024-04-15 00:03:29,995 DEBUG --- stdout --- 2024-04-15 00:03:29,995 DEBUG 3 2024-04-15 00:03:29,995 DEBUG --- stderr --- 2024-04-15 00:03:29,995 DEBUG 2024-04-15 00:03:29,995 INFO 2024-04-15 00:03:29,995 INFO ---------------------------- Get pod list ---------------------------- 2024-04-15 00:03:29,995 INFO 2024-04-15 00:03:29,995 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-15 00:03:29,995 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0] 2024-04-15 00:03:31,055 INFO [loop_until]: Function succeeded after 1s (rc=0) - expected number of elements found 2024-04-15 00:03:31,056 INFO [loop_until]: OK (rc = 0) 2024-04-15 00:03:31,056 DEBUG --- stdout --- 2024-04-15 00:03:31,056 DEBUG am-7d597cf7d6-8ctft am-7d597cf7d6-8vr8f am-7d597cf7d6-9wz9h 2024-04-15 00:03:31,056 DEBUG --- stderr --- 2024-04-15 00:03:31,056 DEBUG ________________________________________________________________________________ [2024-04-15 00:03:31] Verification-am step3 : Check component is alive ________________________________________________________________________________ 2024-04-15 00:03:31,058 INFO Livecheck to https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/health/ready 2024-04-15 00:03:31,062 INFO [http_cmd]: curl -L --request GET "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/health/ready" 2024-04-15 00:03:31,343 INFO [http_cmd]: http status code OK 2024-04-15 00:03:31,343 DEBUG --- status code --- 2024-04-15 00:03:31,343 DEBUG http status code is 200 (expected 200) 2024-04-15 00:03:31,343 DEBUG --- http response --- 2024-04-15 00:03:31,344 DEBUG 2024-04-15 00:03:31,344 INFO Authenticate user amadmin via REST 2024-04-15 00:03:31,344 INFO [http_cmd]: curl -L --request POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/" 2024-04-15 00:03:31,632 INFO [http_cmd]: http status code OK 2024-04-15 00:03:31,632 DEBUG --- status code --- 2024-04-15 00:03:31,632 DEBUG http status code is 200 (expected 200) 2024-04-15 00:03:31,632 DEBUG --- http response --- 2024-04-15 00:03:31,632 DEBUG { "tokenId": "FMZwVvfokdaWWbrRAHjIjcl0HZ8.*AAJTSQACMDIAAlNLABwrc0t6OXkvZkFxVjNLbFROUENoR3lSLythVjA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*", "successUrl": "/am/console", "realm": "/" } PASS : component am is alive ________________________________________________________________________________ [2024-04-15 00:03:31] Verification-am step4 : Record version ________________________________________________________________________________ 2024-04-15 00:03:31,639 INFO 2024-04-15 00:03:31,639 INFO ----------------------- Get AM software version ----------------------- 2024-04-15 00:03:31,640 INFO Getting product version from https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/serverinfo/version 2024-04-15 00:03:31,640 INFO [LoginSession] Get "token_id" token for user "amadmin" 2024-04-15 00:03:31,640 INFO [LoginSession] Obtaining new "token_id" token from server because it has expired 2024-04-15 00:03:31,640 INFO Authenticate user amadmin via REST 2024-04-15 00:03:31,640 INFO [http_cmd]: curl -L --request POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/" 2024-04-15 00:03:31,874 INFO [http_cmd]: http status code OK 2024-04-15 00:03:31,874 DEBUG --- status code --- 2024-04-15 00:03:31,874 DEBUG http status code is 200 (expected 200) 2024-04-15 00:03:31,874 DEBUG --- http response --- 2024-04-15 00:03:31,874 DEBUG { "tokenId": "jC_CTNhP2LBUlyXBiHN610etJF0.*AAJTSQACMDIAAlNLABxCakJTaVNGZkx6VnNzUVhUVjhKY2NtVmNIckE9AAR0eXBlAANDVFMAAlMxAAIwMQ..*", "successUrl": "/am/console", "realm": "/" } 2024-04-15 00:03:31,874 INFO [LoginSession] Obtaining session info 2024-04-15 00:03:31,875 INFO [http_cmd]: curl -L --request POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/realms/root/sessions?_action=getSessionInfo" 2024-04-15 00:03:32,093 INFO [http_cmd]: http status code OK 2024-04-15 00:03:32,093 DEBUG --- status code --- 2024-04-15 00:03:32,093 DEBUG http status code is 200 (expected 200) 2024-04-15 00:03:32,093 DEBUG --- http response --- 2024-04-15 00:03:32,093 DEBUG { "username": "amadmin", "universalId": "id=amadmin,ou=user,ou=am-config", "realm": "/", "latestAccessTime": "2024-04-15T00:03:32Z", "maxIdleExpirationTime": "2024-04-15T00:06:32Z", "maxSessionExpirationTime": "2024-04-15T00:06:31Z", "properties": { "AMCtxId": "b5eef5cc-b013-4174-8d27-302dd8ef0203-1039214006" } } 2024-04-15 00:03:32,096 INFO [http_cmd]: curl -L --request GET --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=jC_CTNhP2LBUlyXBiHN610etJF0.*AAJTSQACMDIAAlNLABxCakJTaVNGZkx6VnNzUVhUVjhKY2NtVmNIckE9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1713139412.834.49430.8260|f60edb382037eb2df1e800d563ad78a7" "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/serverinfo/version" 2024-04-15 00:03:32,324 INFO [http_cmd]: http status code OK 2024-04-15 00:03:32,324 DEBUG --- status code --- 2024-04-15 00:03:32,324 DEBUG http status code is 200 (expected 200) 2024-04-15 00:03:32,324 DEBUG --- http response --- 2024-04-15 00:03:32,325 DEBUG { "_id": "version", "_rev": "509589602", "version": "7.6.0-SNAPSHOT", "fullVersion": "ForgeRock Access Management 7.6.0-SNAPSHOT Build bbf6791c961b39ef101ebad36686ee2c3cde94bb (2024-April-12 18:28)", "revision": "bbf6791c961b39ef101ebad36686ee2c3cde94bb", "date": "2024-April-12 18:28" } Version is 7.6.0-SNAPSHOT Revision is bbf6791c961b39ef101ebad36686ee2c3cde94bb ________________________________________________________________________________ [2024-04-15 00:03:32] Verification-am step5 : Checking pod restart counts ________________________________________________________________________________ 2024-04-15 00:03:32,328 INFO 2024-04-15 00:03:32,328 INFO ------------- Check pod am-7d597cf7d6-8ctft restart count ------------- 2024-04-15 00:03:32,329 INFO 2024-04-15 00:03:32,329 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-7d597cf7d6-8ctft --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-15 00:03:32,329 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-15 00:03:32,770 INFO [loop_until]: OK (rc = 0) 2024-04-15 00:03:32,770 DEBUG --- stdout --- 2024-04-15 00:03:32,770 DEBUG 0 2024-04-15 00:03:32,770 DEBUG --- stderr --- 2024-04-15 00:03:32,771 DEBUG 2024-04-15 00:03:32,771 INFO Pod am-7d597cf7d6-8ctft has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases 2024-04-15 00:03:32,771 INFO 2024-04-15 00:03:32,771 INFO ------------- Check pod am-7d597cf7d6-8vr8f restart count ------------- 2024-04-15 00:03:32,771 INFO 2024-04-15 00:03:32,771 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-7d597cf7d6-8vr8f --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-15 00:03:32,771 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-15 00:03:33,147 INFO [loop_until]: OK (rc = 0) 2024-04-15 00:03:33,147 DEBUG --- stdout --- 2024-04-15 00:03:33,147 DEBUG 0 2024-04-15 00:03:33,147 DEBUG --- stderr --- 2024-04-15 00:03:33,147 DEBUG 2024-04-15 00:03:33,147 INFO Pod am-7d597cf7d6-8vr8f has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases 2024-04-15 00:03:33,147 INFO 2024-04-15 00:03:33,147 INFO ------------- Check pod am-7d597cf7d6-9wz9h restart count ------------- 2024-04-15 00:03:33,147 INFO 2024-04-15 00:03:33,147 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-7d597cf7d6-9wz9h --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-15 00:03:33,147 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-15 00:03:33,536 INFO [loop_until]: OK (rc = 0) 2024-04-15 00:03:33,536 DEBUG --- stdout --- 2024-04-15 00:03:33,536 DEBUG 0 2024-04-15 00:03:33,536 DEBUG --- stderr --- 2024-04-15 00:03:33,536 DEBUG 2024-04-15 00:03:33,537 INFO Pod am-7d597cf7d6-9wz9h has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ________________________________________________________________________________ [2024-04-15 00:03:33] Verification-am post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped