--Task-- name: Deploy_or_discover_overseer enabled: True class_name: DeployOrDiscoverOverseerTask source_name: controller source_namespace: >default< target_name: controller target_namespace: >default< start: 0.0 stop: None timeout: no timeout loop: False interval: None dependencies: ['Discover_Tenant'] wait_for: [] preceding_task: None options: {} group_name: None Current dir: /mnt/disk1/xslou/workshop/lodestar-fork/pyrock ________________________________________________________________________________ [2024-12-28 07:09:30] Deploy_or_discover_overseer pre : Initialising task parameters ________________________________________________________________________________ task will be executed on controller (localhost) ________________________________________________________________________________ [2024-12-28 07:09:30] Deploy_or_discover_overseer step1 : Discover or deploy overseer ________________________________________________________________________________ 2024-12-28 07:09:31,180 INFO 2024-12-28 07:09:31,180 INFO [loop_until]: kubectl --namespace=xlou get deployments -l "release=overseer" -o name 2024-12-28 07:09:31,180 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-12-28 07:09:31,472 INFO [loop_until]: OK (rc = 0) 2024-12-28 07:09:31,472 DEBUG --- stdout --- 2024-12-28 07:09:31,472 DEBUG deployment.apps/overseer-0 2024-12-28 07:09:31,472 DEBUG --- stderr --- 2024-12-28 07:09:31,472 DEBUG Discover overseer pod: overseer-0 2024-12-28 07:09:31,638 INFO 2024-12-28 07:09:31,638 INFO --------------------- Get expected number of pods --------------------- 2024-12-28 07:09:31,638 INFO 2024-12-28 07:09:31,638 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get deployments --selector app=overseer-0 --output jsonpath={.items[*].spec.replicas} 2024-12-28 07:09:31,639 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-12-28 07:09:31,918 INFO [loop_until]: OK (rc = 0) 2024-12-28 07:09:31,918 DEBUG --- stdout --- 2024-12-28 07:09:31,918 DEBUG 1 2024-12-28 07:09:31,918 DEBUG --- stderr --- 2024-12-28 07:09:31,918 DEBUG 2024-12-28 07:09:31,918 INFO 2024-12-28 07:09:31,918 INFO ------------- Reloading pod list for product "overseer-0" ------------- 2024-12-28 07:09:31,918 INFO 2024-12-28 07:09:31,918 INFO [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods --selector app=overseer-0 --output jsonpath={.items[*].metadata.name}` | grep 1 2024-12-28 07:09:31,918 INFO [loop_until]: (max_time=360.0, interval=10, expected_rc=[0] 2024-12-28 07:09:32,216 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found 2024-12-28 07:09:32,216 INFO [loop_until]: OK (rc = 0) 2024-12-28 07:09:32,216 DEBUG --- stdout --- 2024-12-28 07:09:32,216 DEBUG overseer-0-5865b977f-9sbfx 2024-12-28 07:09:32,216 DEBUG --- stderr --- 2024-12-28 07:09:32,216 DEBUG 2024-12-28 07:09:32,216 INFO 2024-12-28 07:09:32,216 INFO ----------- Check pod overseer-0-5865b977f-9sbfx is running ----------- 2024-12-28 07:09:32,216 INFO 2024-12-28 07:09:32,216 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-5865b977f-9sbfx -o=jsonpath={.status.phase} | grep "Running" 2024-12-28 07:09:32,216 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2024-12-28 07:09:32,507 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-12-28 07:09:32,507 INFO [loop_until]: OK (rc = 0) 2024-12-28 07:09:32,507 DEBUG --- stdout --- 2024-12-28 07:09:32,507 DEBUG Running 2024-12-28 07:09:32,507 DEBUG --- stderr --- 2024-12-28 07:09:32,508 DEBUG 2024-12-28 07:09:32,508 INFO 2024-12-28 07:09:32,508 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-5865b977f-9sbfx -o=jsonpath={.status.containerStatuses[*].ready} | grep "true" 2024-12-28 07:09:32,508 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2024-12-28 07:09:32,782 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-12-28 07:09:32,783 INFO [loop_until]: OK (rc = 0) 2024-12-28 07:09:32,783 DEBUG --- stdout --- 2024-12-28 07:09:32,783 DEBUG true 2024-12-28 07:09:32,783 DEBUG --- stderr --- 2024-12-28 07:09:32,783 DEBUG 2024-12-28 07:09:32,783 INFO 2024-12-28 07:09:32,783 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-5865b977f-9sbfx --output jsonpath={.status.startTime} 2024-12-28 07:09:32,783 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-12-28 07:09:33,055 INFO [loop_until]: OK (rc = 0) 2024-12-28 07:09:33,055 DEBUG --- stdout --- 2024-12-28 07:09:33,055 DEBUG 2024-12-17T17:48:52Z 2024-12-28 07:09:33,055 DEBUG --- stderr --- 2024-12-28 07:09:33,055 DEBUG 2024-12-28 07:09:33,055 INFO 2024-12-28 07:09:33,055 INFO ---- Check pod overseer-0-5865b977f-9sbfx filesystem is accessible ---- 2024-12-28 07:09:33,793 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-12-28 07:09:33,793 INFO 2024-12-28 07:09:33,793 INFO --------- Check pod overseer-0-5865b977f-9sbfx restart count --------- 2024-12-28 07:09:33,793 INFO 2024-12-28 07:09:33,793 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-5865b977f-9sbfx --output jsonpath={.status.containerStatuses[*].restartCount} 2024-12-28 07:09:33,793 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-12-28 07:09:34,062 INFO [loop_until]: OK (rc = 0) 2024-12-28 07:09:34,062 DEBUG --- stdout --- 2024-12-28 07:09:34,062 DEBUG 0 2024-12-28 07:09:34,062 DEBUG --- stderr --- 2024-12-28 07:09:34,062 DEBUG 2024-12-28 07:09:34,062 INFO Pod overseer-0-5865b977f-9sbfx has been restarted 0 times. 2024-12-28 07:09:34,062 INFO 2024-12-28 07:09:34,062 INFO --------------------- Get expected number of pods --------------------- 2024-12-28 07:09:34,063 INFO 2024-12-28 07:09:34,063 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get deployments --selector app=overseer-0 --output jsonpath={.items[*].spec.replicas} 2024-12-28 07:09:34,063 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-12-28 07:09:34,334 INFO [loop_until]: OK (rc = 0) 2024-12-28 07:09:34,335 DEBUG --- stdout --- 2024-12-28 07:09:34,335 DEBUG 1 2024-12-28 07:09:34,335 DEBUG --- stderr --- 2024-12-28 07:09:34,335 DEBUG 2024-12-28 07:09:34,335 INFO 2024-12-28 07:09:34,335 INFO -------------- Waiting for 1 expected pod(s) to be ready -------------- 2024-12-28 07:09:34,335 INFO 2024-12-28 07:09:34,335 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get deployments overseer-0 --output jsonpath="ready:{.status.readyReplicas} replicas:{.status.replicas}" | grep "ready:1 replicas:1" 2024-12-28 07:09:34,335 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2024-12-28 07:09:34,627 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-12-28 07:09:34,627 INFO [loop_until]: OK (rc = 0) 2024-12-28 07:09:34,627 DEBUG --- stdout --- 2024-12-28 07:09:34,627 DEBUG ready:1 replicas:1 2024-12-28 07:09:34,627 DEBUG --- stderr --- 2024-12-28 07:09:34,627 DEBUG 2024-12-28 07:09:34,627 INFO Livecheck to https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com 2024-12-28 07:09:34,627 INFO [http_cmd]: curl --insecure -L --request GET "https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com" 2024-12-28 07:09:34,964 INFO [http_cmd]: http status code OK 2024-12-28 07:09:34,964 DEBUG --- status code --- 2024-12-28 07:09:34,964 DEBUG http status code is 200 (expected 200) 2024-12-28 07:09:34,964 DEBUG --- http response --- 2024-12-28 07:09:34,964 DEBUG [print_head_tail]: Print head (10 lines) and tail (10 lines) of input string (21 lines): 2024-12-28 07:09:34,964 DEBUG ----- output ----- 2024-12-28 07:09:34,964 DEBUG 2024-12-28 07:09:34,964 DEBUG 2024-12-28 07:09:34,964 DEBUG 2024-12-28 07:09:34,965 DEBUG 2024-12-28 07:09:34,965 DEBUG Directory listing for / 2024-12-28 07:09:34,965 DEBUG 2024-12-28 07:09:34,965 DEBUG 2024-12-28 07:09:34,965 DEBUG

Directory listing for /

2024-12-28 07:09:34,965 DEBUG
2024-12-28 07:09:34,965 DEBUG 2024-12-28 07:09:34,965 DEBUG
2024-12-28 07:09:34,965 DEBUG 2024-12-28 07:09:34,965 DEBUG 2024-12-28 07:09:34,965 DEBUG ________________________________________________________________________________ [2024-12-28 07:09:34] Deploy_or_discover_overseer post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped