--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-14 17:26:15] Deploy_or_discover_overseer pre : Initialising task parameters ________________________________________________________________________________ task will be executed on controller (localhost) ________________________________________________________________________________ [2024-04-14 17:26:15] Deploy_or_discover_overseer step1 : Discover or deploy overseer ________________________________________________________________________________ 2024-04-14 17:26:16,273 INFO 2024-04-14 17:26:16,274 INFO [loop_until]: kubectl --namespace=xlou get deployments -l "release=overseer" -o name 2024-04-14 17:26:16,274 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-14 17:26:16,595 INFO [loop_until]: OK (rc = 0) 2024-04-14 17:26:16,595 DEBUG --- stdout --- 2024-04-14 17:26:16,595 DEBUG deployment.apps/overseer-0 2024-04-14 17:26:16,595 DEBUG --- stderr --- 2024-04-14 17:26:16,595 DEBUG Discover overseer pod: overseer-0 2024-04-14 17:26:16,890 INFO 2024-04-14 17:26:16,891 INFO --------------------- Get expected number of pods --------------------- 2024-04-14 17:26:16,891 INFO 2024-04-14 17:26:16,891 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-14 17:26:16,891 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-14 17:26:17,266 INFO [loop_until]: OK (rc = 0) 2024-04-14 17:26:17,266 DEBUG --- stdout --- 2024-04-14 17:26:17,267 DEBUG 1 2024-04-14 17:26:17,267 DEBUG --- stderr --- 2024-04-14 17:26:17,267 DEBUG 2024-04-14 17:26:17,267 INFO 2024-04-14 17:26:17,267 INFO ---------------------------- Get pod list ---------------------------- 2024-04-14 17:26:17,267 INFO 2024-04-14 17:26:17,267 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-14 17:26:17,267 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0] 2024-04-14 17:26:17,608 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found 2024-04-14 17:26:17,608 INFO [loop_until]: OK (rc = 0) 2024-04-14 17:26:17,608 DEBUG --- stdout --- 2024-04-14 17:26:17,608 DEBUG overseer-0-5584f6c4db-bcn5q 2024-04-14 17:26:17,608 DEBUG --- stderr --- 2024-04-14 17:26:17,608 DEBUG 2024-04-14 17:26:17,608 INFO 2024-04-14 17:26:17,608 INFO ---------- Check pod overseer-0-5584f6c4db-bcn5q is running ---------- 2024-04-14 17:26:17,609 INFO 2024-04-14 17:26:17,609 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-5584f6c4db-bcn5q -o=jsonpath={.status.phase} | grep "Running" 2024-04-14 17:26:17,609 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2024-04-14 17:26:17,971 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-14 17:26:17,972 INFO [loop_until]: OK (rc = 0) 2024-04-14 17:26:17,972 DEBUG --- stdout --- 2024-04-14 17:26:17,972 DEBUG Running 2024-04-14 17:26:17,972 DEBUG --- stderr --- 2024-04-14 17:26:17,972 DEBUG 2024-04-14 17:26:17,972 INFO 2024-04-14 17:26:17,972 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-5584f6c4db-bcn5q -o=jsonpath={.status.containerStatuses[*].ready} | grep "true" 2024-04-14 17:26:17,972 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2024-04-14 17:26:18,317 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-14 17:26:18,317 INFO [loop_until]: OK (rc = 0) 2024-04-14 17:26:18,317 DEBUG --- stdout --- 2024-04-14 17:26:18,317 DEBUG true 2024-04-14 17:26:18,317 DEBUG --- stderr --- 2024-04-14 17:26:18,317 DEBUG 2024-04-14 17:26:18,318 INFO 2024-04-14 17:26:18,318 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-5584f6c4db-bcn5q --output jsonpath={.status.startTime} 2024-04-14 17:26:18,318 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-14 17:26:18,629 INFO [loop_until]: OK (rc = 0) 2024-04-14 17:26:18,629 DEBUG --- stdout --- 2024-04-14 17:26:18,629 DEBUG 2024-04-13T22:43:33Z 2024-04-14 17:26:18,629 DEBUG --- stderr --- 2024-04-14 17:26:18,629 DEBUG 2024-04-14 17:26:18,630 INFO 2024-04-14 17:26:18,630 INFO --- Check pod overseer-0-5584f6c4db-bcn5q filesystem is accessible --- 2024-04-14 17:26:19,405 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-14 17:26:19,405 INFO 2024-04-14 17:26:19,405 INFO --------- Check pod overseer-0-5584f6c4db-bcn5q restart count --------- 2024-04-14 17:26:19,406 INFO 2024-04-14 17:26:19,406 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-5584f6c4db-bcn5q --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-14 17:26:19,406 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-14 17:26:19,715 INFO [loop_until]: OK (rc = 0) 2024-04-14 17:26:19,715 DEBUG --- stdout --- 2024-04-14 17:26:19,715 DEBUG 0 2024-04-14 17:26:19,715 DEBUG --- stderr --- 2024-04-14 17:26:19,715 DEBUG 2024-04-14 17:26:19,715 INFO Pod overseer-0-5584f6c4db-bcn5q has been restarted 0 times. 2024-04-14 17:26:19,715 INFO 2024-04-14 17:26:19,715 INFO --------------------- Get expected number of pods --------------------- 2024-04-14 17:26:19,716 INFO 2024-04-14 17:26:19,716 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-14 17:26:19,716 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-14 17:26:20,056 INFO [loop_until]: OK (rc = 0) 2024-04-14 17:26:20,056 DEBUG --- stdout --- 2024-04-14 17:26:20,056 DEBUG 1 2024-04-14 17:26:20,057 DEBUG --- stderr --- 2024-04-14 17:26:20,057 DEBUG 2024-04-14 17:26:20,057 INFO 2024-04-14 17:26:20,057 INFO -------------- Waiting for 1 expected pod(s) to be ready -------------- 2024-04-14 17:26:20,057 INFO 2024-04-14 17:26:20,057 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-14 17:26:20,057 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2024-04-14 17:26:20,407 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-14 17:26:20,408 INFO [loop_until]: OK (rc = 0) 2024-04-14 17:26:20,408 DEBUG --- stdout --- 2024-04-14 17:26:20,408 DEBUG ready:1 replicas:1 2024-04-14 17:26:20,408 DEBUG --- stderr --- 2024-04-14 17:26:20,408 DEBUG 2024-04-14 17:26:20,408 INFO Livecheck to https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com 2024-04-14 17:26:20,409 INFO [http_cmd]: curl --insecure -L --request GET "https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com" 2024-04-14 17:26:20,686 INFO [http_cmd]: http status code OK 2024-04-14 17:26:20,686 DEBUG --- status code --- 2024-04-14 17:26:20,686 DEBUG http status code is 200 (expected 200) 2024-04-14 17:26:20,686 DEBUG --- http response --- 2024-04-14 17:26:20,686 DEBUG