--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 ________________________________________________________________________________ [20/May/2023 07:26:27] Verification_am pre : N/A ________________________________________________________________________________ [20/May/2023 07:26:27] - INFO: Timeout for this Task has changed to 1d (86400 seconds) [20/May/2023 07:26:27] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset ________________________________________________________________________________ [20/May/2023 07:26:27] 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 -l app=am -o 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 -o 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 --- ________________________________________________________________________________ [20/May/2023 07:26:29] Verification_am step2 : Discovering pods ________________________________________________________________________________ --------------------- Get expected number of pods --------------------- [loop_until]: kubectl --namespace=xlou get deployments -l app=am -o 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 -l app=am -o 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-7849cf7bdb-j4rs8 am-7849cf7bdb-lxfkl am-7849cf7bdb-td7js --- stderr --- ________________________________________________________________________________ [20/May/2023 07:26:31] Verification_am step3 : Check component is alive ________________________________________________________________________________ Livecheck to https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/health/ready [http_cmd]: curl -L -X 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 -H "X-OpenAM-Username: amadmin" -H "X-OpenAM-Password: HTTPNLAYqqHzQEXyTFWI3wfA" -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0, protocol=1.0" -L -X 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": "xXB14VeYrmOELvz_7mYS9-f9bc8.*AAJTSQACMDIAAlNLABxRTi9leEpNRDBZRnd3eXlhVFlzekt4T1FOcGs9AAR0eXBlAANDVFMAAlMxAAIwMQ..*", "successUrl": "/am/console", "realm": "/" } PASS : component am is alive ________________________________________________________________________________ [20/May/2023 07:26:31] 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 -H "X-OpenAM-Username: amadmin" -H "X-OpenAM-Password: HTTPNLAYqqHzQEXyTFWI3wfA" -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0, protocol=1.0" -L -X 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": "qo_3q5MSScZsSsUSBeg-D7VaKvk.*AAJTSQACMDIAAlNLABxHZE0xSlBXVE5tNUdFZ3BjYjFTUVVYWDIraFU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*", "successUrl": "/am/console", "realm": "/" } [LoginSession] Obtaining session info [http_cmd]: curl -H "iPlanetDirectoryPro: qo_3q5MSScZsSsUSBeg-D7VaKvk.*AAJTSQACMDIAAlNLABxHZE0xSlBXVE5tNUdFZ3BjYjFTUVVYWDIraFU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" -H "Content-Type: application/json" -H "Accept-API-Version: resource=3.0, protocol=2.1" -H "filters_cookie: qo_3q5MSScZsSsUSBeg-D7VaKvk.*AAJTSQACMDIAAlNLABxHZE0xSlBXVE5tNUdFZ3BjYjFTUVVYWDIraFU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" -L -X 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-05-20T07:26:32Z", "maxIdleExpirationTime": "2023-05-20T07:56:32Z", "maxSessionExpirationTime": "2023-05-20T09:26:31Z", "properties": { "AMCtxId": "a45bf98f-c695-4008-a317-84097aebbcb9-429167582" } } [http_cmd]: curl -L -X GET --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=qo_3q5MSScZsSsUSBeg-D7VaKvk.*AAJTSQACMDIAAlNLABxHZE0xSlBXVE5tNUdFZ3BjYjFTUVVYWDIraFU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1684567592.771.144903.61015|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": "557845788", "version": "7.3.1-SNAPSHOT", "fullVersion": "ForgeRock Access Management 7.3.1-SNAPSHOT Build 2199bb185f3287050d915730f821400e00b2f8fe (2023-May-17 10:32)", "revision": "2199bb185f3287050d915730f821400e00b2f8fe", "date": "2023-May-17 10:32" } Version is 7.3.1-SNAPSHOT Revision is 2199bb185f3287050d915730f821400e00b2f8fe ________________________________________________________________________________ [20/May/2023 07:26:32] Verification_am step5 : Checking pod restart counts ________________________________________________________________________________ ------------- Check pod am-7849cf7bdb-j4rs8 restart count ------------- [loop_until]: kubectl --namespace=xlou get pod am-7849cf7bdb-j4rs8 -o jsonpath={.status.containerStatuses[*].restartCount} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 0 --- stderr --- Pod am-7849cf7bdb-j4rs8 has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ------------- Check pod am-7849cf7bdb-lxfkl restart count ------------- [loop_until]: kubectl --namespace=xlou get pod am-7849cf7bdb-lxfkl -o jsonpath={.status.containerStatuses[*].restartCount} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 0 --- stderr --- Pod am-7849cf7bdb-lxfkl has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ------------- Check pod am-7849cf7bdb-td7js restart count ------------- [loop_until]: kubectl --namespace=xlou get pod am-7849cf7bdb-td7js -o jsonpath={.status.containerStatuses[*].restartCount} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 0 --- stderr --- Pod am-7849cf7bdb-td7js has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ________________________________________________________________________________ [20/May/2023 07:26:33] Verification_am post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped