--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_all_components'] wait_for: [] preceding_task: None options: {} group_name: None Current dir: /mnt/disks/data/xslou/lodestar-fork/pyrock ________________________________________________________________________________ [2024-04-16 21:08:31] Deploy_or_discover_overseer pre : Initialising task parameters ________________________________________________________________________________ task will be executed on controller (localhost) ________________________________________________________________________________ [2024-04-16 21:08:31] Deploy_or_discover_overseer step1 : Discover or deploy overseer ________________________________________________________________________________ 2024-04-16 21:08:31,690 INFO 2024-04-16 21:08:31,690 INFO [loop_until]: kubectl --namespace=xlou get deployments -l "release=overseer" -o name 2024-04-16 21:08:31,690 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-16 21:08:31,986 INFO [loop_until]: OK (rc = 0) 2024-04-16 21:08:31,987 DEBUG --- stdout --- 2024-04-16 21:08:31,987 DEBUG deployment.apps/overseer-0 2024-04-16 21:08:31,987 DEBUG --- stderr --- 2024-04-16 21:08:31,987 DEBUG Discover overseer pod: overseer-0 2024-04-16 21:08:32,235 INFO 2024-04-16 21:08:32,235 INFO --------------------- Get expected number of pods --------------------- 2024-04-16 21:08:32,235 INFO 2024-04-16 21:08:32,235 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-04-16 21:08:32,235 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-16 21:08:32,576 INFO [loop_until]: OK (rc = 0) 2024-04-16 21:08:32,576 DEBUG --- stdout --- 2024-04-16 21:08:32,577 DEBUG 1 2024-04-16 21:08:32,577 DEBUG --- stderr --- 2024-04-16 21:08:32,577 DEBUG 2024-04-16 21:08:32,577 INFO 2024-04-16 21:08:32,577 INFO ---------------------------- Get pod list ---------------------------- 2024-04-16 21:08:32,577 INFO 2024-04-16 21:08:32,577 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-04-16 21:08:32,577 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0] 2024-04-16 21:08:32,912 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found 2024-04-16 21:08:32,912 INFO [loop_until]: OK (rc = 0) 2024-04-16 21:08:32,912 DEBUG --- stdout --- 2024-04-16 21:08:32,912 DEBUG overseer-0-7c9b667974-9mr2s 2024-04-16 21:08:32,912 DEBUG --- stderr --- 2024-04-16 21:08:32,912 DEBUG 2024-04-16 21:08:32,913 INFO 2024-04-16 21:08:32,913 INFO ---------- Check pod overseer-0-7c9b667974-9mr2s is running ---------- 2024-04-16 21:08:32,913 INFO 2024-04-16 21:08:32,913 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-7c9b667974-9mr2s -o=jsonpath={.status.phase} | grep "Running" 2024-04-16 21:08:32,913 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2024-04-16 21:08:33,236 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-16 21:08:33,236 INFO [loop_until]: OK (rc = 0) 2024-04-16 21:08:33,236 DEBUG --- stdout --- 2024-04-16 21:08:33,236 DEBUG Running 2024-04-16 21:08:33,237 DEBUG --- stderr --- 2024-04-16 21:08:33,237 DEBUG 2024-04-16 21:08:33,237 INFO 2024-04-16 21:08:33,237 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-7c9b667974-9mr2s -o=jsonpath={.status.containerStatuses[*].ready} | grep "true" 2024-04-16 21:08:33,237 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2024-04-16 21:08:33,528 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-16 21:08:33,528 INFO [loop_until]: OK (rc = 0) 2024-04-16 21:08:33,528 DEBUG --- stdout --- 2024-04-16 21:08:33,528 DEBUG true 2024-04-16 21:08:33,529 DEBUG --- stderr --- 2024-04-16 21:08:33,529 DEBUG 2024-04-16 21:08:33,529 INFO 2024-04-16 21:08:33,529 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-7c9b667974-9mr2s --output jsonpath={.status.startTime} 2024-04-16 21:08:33,529 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-16 21:08:33,832 INFO [loop_until]: OK (rc = 0) 2024-04-16 21:08:33,832 DEBUG --- stdout --- 2024-04-16 21:08:33,832 DEBUG 2024-04-16T17:55:20Z 2024-04-16 21:08:33,832 DEBUG --- stderr --- 2024-04-16 21:08:33,832 DEBUG 2024-04-16 21:08:33,833 INFO 2024-04-16 21:08:33,833 INFO --- Check pod overseer-0-7c9b667974-9mr2s filesystem is accessible --- 2024-04-16 21:08:34,616 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-16 21:08:34,616 INFO 2024-04-16 21:08:34,616 INFO --------- Check pod overseer-0-7c9b667974-9mr2s restart count --------- 2024-04-16 21:08:34,617 INFO 2024-04-16 21:08:34,617 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-7c9b667974-9mr2s --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-16 21:08:34,617 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-16 21:08:34,909 INFO [loop_until]: OK (rc = 0) 2024-04-16 21:08:34,909 DEBUG --- stdout --- 2024-04-16 21:08:34,909 DEBUG 0 2024-04-16 21:08:34,909 DEBUG --- stderr --- 2024-04-16 21:08:34,909 DEBUG 2024-04-16 21:08:34,909 INFO Pod overseer-0-7c9b667974-9mr2s has been restarted 0 times. 2024-04-16 21:08:34,909 INFO 2024-04-16 21:08:34,909 INFO --------------------- Get expected number of pods --------------------- 2024-04-16 21:08:34,910 INFO 2024-04-16 21:08:34,910 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-04-16 21:08:34,910 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-16 21:08:35,231 INFO [loop_until]: OK (rc = 0) 2024-04-16 21:08:35,231 DEBUG --- stdout --- 2024-04-16 21:08:35,231 DEBUG 1 2024-04-16 21:08:35,231 DEBUG --- stderr --- 2024-04-16 21:08:35,231 DEBUG 2024-04-16 21:08:35,232 INFO 2024-04-16 21:08:35,232 INFO -------------- Waiting for 1 expected pod(s) to be ready -------------- 2024-04-16 21:08:35,232 INFO 2024-04-16 21:08:35,232 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-04-16 21:08:35,232 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2024-04-16 21:08:35,558 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-16 21:08:35,558 INFO [loop_until]: OK (rc = 0) 2024-04-16 21:08:35,558 DEBUG --- stdout --- 2024-04-16 21:08:35,558 DEBUG ready:1 replicas:1 2024-04-16 21:08:35,558 DEBUG --- stderr --- 2024-04-16 21:08:35,558 DEBUG 2024-04-16 21:08:35,558 INFO Livecheck to https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com 2024-04-16 21:08:35,559 INFO [http_cmd]: curl --insecure -L --request GET "https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com" 2024-04-16 21:08:35,812 INFO [http_cmd]: http status code OK 2024-04-16 21:08:35,812 DEBUG --- status code --- 2024-04-16 21:08:35,813 DEBUG http status code is 200 (expected 200) 2024-04-16 21:08:35,813 DEBUG --- http response --- 2024-04-16 21:08:35,813 DEBUG