--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-19 11:48:57] Verification-am pre : N/A ________________________________________________________________________________ [2024-04-19 11:48:57] - INFO: Timeout for this Task has changed to 14h (50400 seconds) [2024-04-19 11:48:57] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset ________________________________________________________________________________ [2024-04-19 11:48:57] Verification-am step1 : Wait until pods are in Running state and check number of running pods ________________________________________________________________________________ 2024-04-19 11:48:57,198 INFO 2024-04-19 11:48:57,219 INFO --------------------- Get expected number of pods --------------------- 2024-04-19 11:48:57,220 INFO 2024-04-19 11:48:57,220 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-19 11:48:57,220 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-19 11:48:58,224 INFO [loop_until]: OK (rc = 0) 2024-04-19 11:48:58,224 DEBUG --- stdout --- 2024-04-19 11:48:58,234 DEBUG 3 2024-04-19 11:48:58,235 DEBUG --- stderr --- 2024-04-19 11:48:58,236 DEBUG 2024-04-19 11:48:58,236 INFO 2024-04-19 11:48:58,236 INFO -------------- Waiting for 3 expected pod(s) to be ready -------------- 2024-04-19 11:48:58,237 INFO 2024-04-19 11:48:58,237 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-19 11:48:58,237 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2024-04-19 11:48:59,120 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-19 11:48:59,125 INFO [loop_until]: OK (rc = 0) 2024-04-19 11:48:59,125 DEBUG --- stdout --- 2024-04-19 11:48:59,125 DEBUG ready:3 replicas:3 2024-04-19 11:48:59,125 DEBUG --- stderr --- 2024-04-19 11:48:59,125 DEBUG ________________________________________________________________________________ [2024-04-19 11:48:59] Verification-am step2 : Discovering pods ________________________________________________________________________________ 2024-04-19 11:48:59,126 INFO 2024-04-19 11:48:59,126 INFO --------------------- Get expected number of pods --------------------- 2024-04-19 11:48:59,126 INFO 2024-04-19 11:48:59,126 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-19 11:48:59,129 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-19 11:49:00,028 INFO [loop_until]: OK (rc = 0) 2024-04-19 11:49:00,028 DEBUG --- stdout --- 2024-04-19 11:49:00,028 DEBUG 3 2024-04-19 11:49:00,028 DEBUG --- stderr --- 2024-04-19 11:49:00,028 DEBUG 2024-04-19 11:49:00,028 INFO 2024-04-19 11:49:00,028 INFO ---------------------------- Get pod list ---------------------------- 2024-04-19 11:49:00,029 INFO 2024-04-19 11:49:00,029 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-19 11:49:00,029 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0] 2024-04-19 11:49:00,911 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found 2024-04-19 11:49:00,912 INFO [loop_until]: OK (rc = 0) 2024-04-19 11:49:00,912 DEBUG --- stdout --- 2024-04-19 11:49:00,912 DEBUG am-6fd554f8f7-6rhpf am-6fd554f8f7-hvvkw am-6fd554f8f7-pmj4b 2024-04-19 11:49:00,912 DEBUG --- stderr --- 2024-04-19 11:49:00,912 DEBUG ________________________________________________________________________________ [2024-04-19 11:49:00] Verification-am step3 : Check component is alive ________________________________________________________________________________ 2024-04-19 11:49:00,913 INFO Livecheck to https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/health/ready 2024-04-19 11:49:00,913 INFO [http_cmd]: curl -L --request GET "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/health/ready" 2024-04-19 11:49:01,170 INFO [http_cmd]: http status code OK 2024-04-19 11:49:01,170 DEBUG --- status code --- 2024-04-19 11:49:01,170 DEBUG http status code is 200 (expected 200) 2024-04-19 11:49:01,170 DEBUG --- http response --- 2024-04-19 11:49:01,170 DEBUG 2024-04-19 11:49:01,170 INFO Authenticate user amadmin via REST 2024-04-19 11:49:01,170 INFO [http_cmd]: curl -L --request POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/" 2024-04-19 11:49:01,399 INFO [http_cmd]: http status code OK 2024-04-19 11:49:01,399 DEBUG --- status code --- 2024-04-19 11:49:01,399 DEBUG http status code is 200 (expected 200) 2024-04-19 11:49:01,399 DEBUG --- http response --- 2024-04-19 11:49:01,400 DEBUG { "tokenId": "q_jUs5-wYuyHPLM6ilpkApzVOyg.*AAJTSQACMDIAAlNLABxuNDJvVGtLaTdlNko3MnNpU3F0M1poSWo2ckU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*", "successUrl": "/am/console", "realm": "/" } PASS : component am is alive ________________________________________________________________________________ [2024-04-19 11:49:01] Verification-am step4 : Record version ________________________________________________________________________________ 2024-04-19 11:49:01,412 INFO 2024-04-19 11:49:01,412 INFO ----------------------- Get AM software version ----------------------- 2024-04-19 11:49:01,413 INFO Getting product version from https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/serverinfo/version 2024-04-19 11:49:01,703 INFO [LoginSession] Get "token_id" token for user "amadmin" 2024-04-19 11:49:01,704 DEBUG [LoginSession] re-using "token_id" token that remains valid for 29m 49s 2024-04-19 11:49:01,704 INFO [http_cmd]: curl -L --request GET --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=RDPYOR6aC8W2I7v6ynYXoBEzJ8k.*AAJTSQACMDIAAlNLABxCaTlWclFLUWpPUzRDOC9qNW1qOTF5QkQ0bUk9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/serverinfo/version" 2024-04-19 11:49:01,976 INFO [http_cmd]: http status code OK 2024-04-19 11:49:01,976 DEBUG --- status code --- 2024-04-19 11:49:01,976 DEBUG http status code is 200 (expected 200) 2024-04-19 11:49:01,976 DEBUG --- http response --- 2024-04-19 11:49:01,976 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-19 11:49:01] Verification-am step5 : Checking pod restart counts ________________________________________________________________________________ 2024-04-19 11:49:01,983 INFO 2024-04-19 11:49:01,983 INFO ------------- Check pod am-6fd554f8f7-6rhpf restart count ------------- 2024-04-19 11:49:01,984 INFO 2024-04-19 11:49:01,984 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-6fd554f8f7-6rhpf --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-19 11:49:01,984 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-19 11:49:02,387 INFO [loop_until]: OK (rc = 0) 2024-04-19 11:49:02,387 DEBUG --- stdout --- 2024-04-19 11:49:02,387 DEBUG 0 2024-04-19 11:49:02,387 DEBUG --- stderr --- 2024-04-19 11:49:02,387 DEBUG 2024-04-19 11:49:02,387 INFO Pod am-6fd554f8f7-6rhpf has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases 2024-04-19 11:49:02,387 INFO 2024-04-19 11:49:02,387 INFO ------------- Check pod am-6fd554f8f7-hvvkw restart count ------------- 2024-04-19 11:49:02,388 INFO 2024-04-19 11:49:02,388 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-6fd554f8f7-hvvkw --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-19 11:49:02,388 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-19 11:49:02,875 INFO [loop_until]: OK (rc = 0) 2024-04-19 11:49:02,875 DEBUG --- stdout --- 2024-04-19 11:49:02,876 DEBUG 0 2024-04-19 11:49:02,876 DEBUG --- stderr --- 2024-04-19 11:49:02,876 DEBUG 2024-04-19 11:49:02,876 INFO Pod am-6fd554f8f7-hvvkw has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases 2024-04-19 11:49:02,876 INFO 2024-04-19 11:49:02,876 INFO ------------- Check pod am-6fd554f8f7-pmj4b restart count ------------- 2024-04-19 11:49:02,876 INFO 2024-04-19 11:49:02,876 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod am-6fd554f8f7-pmj4b --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-19 11:49:02,876 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-19 11:49:03,668 INFO [loop_until]: OK (rc = 0) 2024-04-19 11:49:03,668 DEBUG --- stdout --- 2024-04-19 11:49:03,668 DEBUG 0 2024-04-19 11:49:03,668 DEBUG --- stderr --- 2024-04-19 11:49:03,668 DEBUG 2024-04-19 11:49:03,669 INFO Pod am-6fd554f8f7-pmj4b has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ________________________________________________________________________________ [2024-04-19 11:49:03] Verification-am post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped