--Task-- name: Verification_am enabled: True class_name: VerificationTask source_name: am source_namespace: >default< target_name: am target_namespace: >default< start: 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: [] options: {} group_name: None Current dir: /mnt/disks/data/xslou/lodestar-fork/pyrock ________________________________________________________________________________ [12/Aug/2023 03:17:48] Verification_am pre : N/A ________________________________________________________________________________ [12/Aug/2023 03:17:48] - INFO: Timeout for this Task has changed to 4h (14400 seconds) [12/Aug/2023 03:17:48] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset ________________________________________________________________________________ [12/Aug/2023 03:17:48] Verification_am step1 : Wait until pods are in Running state and check number of running pods ________________________________________________________________________________ --------------------- Get expected number of pods --------------------- [loop_until]: kubectl --namespace=xlou get deployments --selector app=am --output jsonpath={.items[*].spec.replicas} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 3 --- stderr --- -------------- Waiting for 3 expected pod(s) to be ready -------------- [loop_until]: kubectl --namespace=xlou get deployments am --output jsonpath="ready:{.status.readyReplicas} replicas:{.status.replicas}" | grep "ready:3 replicas:3" [loop_until]: (max_time=900, interval=30, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found [loop_until]: OK (rc = 0) --- stdout --- ready:3 replicas:3 --- stderr --- ________________________________________________________________________________ [12/Aug/2023 03:17:49] Verification_am step2 : Discovering pods ________________________________________________________________________________ --------------------- Get expected number of pods --------------------- [loop_until]: kubectl --namespace=xlou get deployments --selector app=am --output jsonpath={.items[*].spec.replicas} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 3 --- stderr --- ---------------------------- Get pod list ---------------------------- [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=xlou get pods --selector app=am --output jsonpath={.items[*].metadata.name}` | grep 3 [loop_until]: (max_time=180, interval=10, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found [loop_until]: OK (rc = 0) --- stdout --- am-55f77847b7-d6t28 am-55f77847b7-l482k am-55f77847b7-qhqgg --- stderr --- ________________________________________________________________________________ [12/Aug/2023 03:17:50] Verification_am step3 : Check component is alive ________________________________________________________________________________ Livecheck to https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/health/ready [http_cmd]: curl -L --request GET "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/health/ready" [http_cmd]: http status code OK --- status code --- http status code is 200 (expected 200) --- http response --- Authenticate user amadmin via REST [http_cmd]: curl --header "X-OpenAM-Username: amadmin" --header "X-OpenAM-Password: b2Zz1Zmqw8bC8fFFmGFmOVFt" --header "Content-Type: application/json" --header "Accept-API-Version: resource=2.0, protocol=1.0" -L --request POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/" [http_cmd]: http status code OK --- status code --- http status code is 200 (expected 200) --- http response --- { "tokenId": "jrHAec_5gK8YkWCY-z5e1yfSUh4.*AAJTSQACMDIAAlNLABxHdDVZS3p1QkpGUndHdFJvRlJ4L29ndmkxeVU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*", "successUrl": "/am/console", "realm": "/" } PASS : component am is alive ________________________________________________________________________________ [12/Aug/2023 03:17:51] Verification_am step4 : Record version ________________________________________________________________________________ ----------------------- Get AM software version ----------------------- Getting product version from https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/serverinfo/version [LoginSession] Get "token_id" token for user "amadmin" [LoginSession] Obtaining new "token_id" token from server because it has expired Authenticate user amadmin via REST [http_cmd]: curl --header "X-OpenAM-Username: amadmin" --header "X-OpenAM-Password: b2Zz1Zmqw8bC8fFFmGFmOVFt" --header "Content-Type: application/json" --header "Accept-API-Version: resource=2.0, protocol=1.0" -L --request POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/" [http_cmd]: http status code OK --- status code --- http status code is 200 (expected 200) --- http response --- { "tokenId": "J--GfTTqnd6x5zWWkQOPGmoizzM.*AAJTSQACMDIAAlNLABxIQXROSTlsMXg5TXRjTlV0NGVVMGt1S0RLUk09AAR0eXBlAANDVFMAAlMxAAIwMQ..*", "successUrl": "/am/console", "realm": "/" } [LoginSession] Obtaining session info [http_cmd]: curl --header "iPlanetDirectoryPro: J--GfTTqnd6x5zWWkQOPGmoizzM.*AAJTSQACMDIAAlNLABxIQXROSTlsMXg5TXRjTlV0NGVVMGt1S0RLUk09AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --header "Content-Type: application/json" --header "Accept-API-Version: resource=3.0, protocol=2.1" --header "filters_cookie: J--GfTTqnd6x5zWWkQOPGmoizzM.*AAJTSQACMDIAAlNLABxIQXROSTlsMXg5TXRjTlV0NGVVMGt1S0RLUk09AAR0eXBlAANDVFMAAlMxAAIwMQ..*" -L --request POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/realms/root/sessions?_action=getSessionInfo" [http_cmd]: http status code OK --- status code --- http status code is 200 (expected 200) --- http response --- { "username": "amadmin", "universalId": "id=amadmin,ou=user,ou=am-config", "realm": "/", "latestAccessTime": "2023-08-12T03:17:51Z", "maxIdleExpirationTime": "2023-08-12T03:47:51Z", "maxSessionExpirationTime": "2023-08-12T05:17:50Z", "properties": { "AMCtxId": "8978d4fa-b5ba-4fe6-bf1b-2bb4178abca5-4518" } } [http_cmd]: curl -L --request GET --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=J--GfTTqnd6x5zWWkQOPGmoizzM.*AAJTSQACMDIAAlNLABxIQXROSTlsMXg5TXRjTlV0NGVVMGt1S0RLUk09AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1691810272.383.35653.343461|f60edb382037eb2df1e800d563ad78a7" "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/serverinfo/version" [http_cmd]: http status code OK --- status code --- http status code is 200 (expected 200) --- http response --- { "_id": "version", "_rev": "-2057111088", "version": "7.4.0-SNAPSHOT", "fullVersion": "ForgeRock Access Management 7.4.0-SNAPSHOT Build 16a55dc7186cc129cdbe51ec3aa13468678cca6b (2023-August-11 00:56)", "revision": "16a55dc7186cc129cdbe51ec3aa13468678cca6b", "date": "2023-August-11 00:56" } Version is 7.4.0-SNAPSHOT Revision is 16a55dc7186cc129cdbe51ec3aa13468678cca6b ________________________________________________________________________________ [12/Aug/2023 03:17:51] Verification_am step5 : Checking pod restart counts ________________________________________________________________________________ ------------- Check pod am-55f77847b7-d6t28 restart count ------------- [loop_until]: kubectl --namespace=xlou get pod am-55f77847b7-d6t28 --output jsonpath={.status.containerStatuses[*].restartCount} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 0 --- stderr --- Pod am-55f77847b7-d6t28 has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ------------- Check pod am-55f77847b7-l482k restart count ------------- [loop_until]: kubectl --namespace=xlou get pod am-55f77847b7-l482k --output jsonpath={.status.containerStatuses[*].restartCount} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 0 --- stderr --- Pod am-55f77847b7-l482k has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ------------- Check pod am-55f77847b7-qhqgg restart count ------------- [loop_until]: kubectl --namespace=xlou get pod am-55f77847b7-qhqgg --output jsonpath={.status.containerStatuses[*].restartCount} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 0 --- stderr --- Pod am-55f77847b7-qhqgg has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ________________________________________________________________________________ [12/Aug/2023 03:17:53] Verification_am post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped