--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 ________________________________________________________________________________ [03/May/2023 01:10:44] Verification_am pre : N/A ________________________________________________________________________________ [03/May/2023 01:10:44] - INFO: Timeout for this Task has changed to 2h (7200 seconds) [03/May/2023 01:10:44] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset ________________________________________________________________________________ [03/May/2023 01:10:44] 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 --- ________________________________________________________________________________ [03/May/2023 01:10:45] 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-5lrgg am-7849cf7bdb-rjn9j am-7849cf7bdb-vs2xm --- stderr --- ________________________________________________________________________________ [03/May/2023 01:10:46] 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 via REST [http_cmd]: curl -H "X-OpenAM-Username: amadmin" -H "X-OpenAM-Password: pCsRxetHp5aqJb7NaWzHwXvC" -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": "dtnnzpgG5T3plM_lnaMU3cHXf0g.*AAJTSQACMDIAAlNLABxIWDFBWnU1NFRQV3ZBZXBuZnljcTl6TzA2a2c9AAR0eXBlAANDVFMAAlMxAAIwMQ..*", "successUrl": "/am/console", "realm": "/" } PASS : component am is alive ________________________________________________________________________________ [03/May/2023 01:10:47] Verification_am step4 : Record version ________________________________________________________________________________ ----------------------- Get AM software version ----------------------- Getting product version from https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/serverinfo/version - Login amadmin to get token Authenticate user via REST [http_cmd]: curl -H "X-OpenAM-Username: amadmin" -H "X-OpenAM-Password: pCsRxetHp5aqJb7NaWzHwXvC" -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": "X_uPkGVQoqfbCiVL0uxGPpSZgdE.*AAJTSQACMDIAAlNLABw5WFE2UmVQVGpvV2pnRUtjSlRQcWxOTHdENUU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*", "successUrl": "/am/console", "realm": "/" } [http_cmd]: curl -L -X GET --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=X_uPkGVQoqfbCiVL0uxGPpSZgdE.*AAJTSQACMDIAAlNLABw5WFE2UmVQVGpvV2pnRUtjSlRQcWxOTHdENUU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1683076248.275.381056.419771|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": "697098186", "version": "7.3.1-SNAPSHOT", "fullVersion": "ForgeRock Access Management 7.3.1-SNAPSHOT Build b5ab7782f844a386ff6ffaa1d8874977a56d1195 (2023-April-28 21:19)", "revision": "b5ab7782f844a386ff6ffaa1d8874977a56d1195", "date": "2023-April-28 21:19" } Version is 7.3.1-SNAPSHOT Revision is b5ab7782f844a386ff6ffaa1d8874977a56d1195 ________________________________________________________________________________ [03/May/2023 01:10:47] Verification_am step5 : Checking pod restart counts ________________________________________________________________________________ ------------- Check pod am-7849cf7bdb-5lrgg restart count ------------- [loop_until]: kubectl --namespace=xlou get pod am-7849cf7bdb-5lrgg -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-5lrgg has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ------------- Check pod am-7849cf7bdb-rjn9j restart count ------------- [loop_until]: kubectl --namespace=xlou get pod am-7849cf7bdb-rjn9j -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-rjn9j has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ------------- Check pod am-7849cf7bdb-vs2xm restart count ------------- [loop_until]: kubectl --namespace=xlou get pod am-7849cf7bdb-vs2xm -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-vs2xm has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ________________________________________________________________________________ [03/May/2023 01:10:48] Verification_am post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped