--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-10-17 04:24:16] Deploy_or_discover_overseer pre : Initialising task parameters ________________________________________________________________________________ task will be executed on controller (localhost) ________________________________________________________________________________ [2024-10-17 04:24:16] Deploy_or_discover_overseer step1 : Discover or deploy overseer ________________________________________________________________________________ 2024-10-17 04:24:16,695 INFO 2024-10-17 04:24:16,696 INFO [loop_until]: kubectl --namespace=xlou get deployments -l "release=overseer" -o name 2024-10-17 04:24:16,696 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-10-17 04:24:16,983 INFO [loop_until]: OK (rc = 0) 2024-10-17 04:24:16,983 DEBUG --- stdout --- 2024-10-17 04:24:16,983 DEBUG deployment.apps/overseer-0 2024-10-17 04:24:16,983 DEBUG --- stderr --- 2024-10-17 04:24:16,983 DEBUG Discover overseer pod: overseer-0 2024-10-17 04:24:17,161 INFO 2024-10-17 04:24:17,161 INFO --------------------- Get expected number of pods --------------------- 2024-10-17 04:24:17,161 INFO 2024-10-17 04:24:17,161 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-10-17 04:24:17,162 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-10-17 04:24:17,429 INFO [loop_until]: OK (rc = 0) 2024-10-17 04:24:17,429 DEBUG --- stdout --- 2024-10-17 04:24:17,429 DEBUG 1 2024-10-17 04:24:17,430 DEBUG --- stderr --- 2024-10-17 04:24:17,430 DEBUG 2024-10-17 04:24:17,430 INFO 2024-10-17 04:24:17,430 INFO ------------- Reloading pod list for product "overseer-0" ------------- 2024-10-17 04:24:17,430 INFO 2024-10-17 04:24:17,430 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-10-17 04:24:17,430 INFO [loop_until]: (max_time=360.0, interval=10, expected_rc=[0] 2024-10-17 04:24:17,720 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found 2024-10-17 04:24:17,720 INFO [loop_until]: OK (rc = 0) 2024-10-17 04:24:17,720 DEBUG --- stdout --- 2024-10-17 04:24:17,721 DEBUG overseer-0-68b86489-ztj5j 2024-10-17 04:24:17,721 DEBUG --- stderr --- 2024-10-17 04:24:17,721 DEBUG 2024-10-17 04:24:17,721 INFO 2024-10-17 04:24:17,721 INFO ----------- Check pod overseer-0-68b86489-ztj5j is running ----------- 2024-10-17 04:24:17,721 INFO 2024-10-17 04:24:17,721 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-68b86489-ztj5j -o=jsonpath={.status.phase} | grep "Running" 2024-10-17 04:24:17,721 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2024-10-17 04:24:18,006 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-10-17 04:24:18,006 INFO [loop_until]: OK (rc = 0) 2024-10-17 04:24:18,007 DEBUG --- stdout --- 2024-10-17 04:24:18,007 DEBUG Running 2024-10-17 04:24:18,007 DEBUG --- stderr --- 2024-10-17 04:24:18,007 DEBUG 2024-10-17 04:24:18,007 INFO 2024-10-17 04:24:18,007 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-68b86489-ztj5j -o=jsonpath={.status.containerStatuses[*].ready} | grep "true" 2024-10-17 04:24:18,007 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2024-10-17 04:24:18,273 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-10-17 04:24:18,273 INFO [loop_until]: OK (rc = 0) 2024-10-17 04:24:18,273 DEBUG --- stdout --- 2024-10-17 04:24:18,273 DEBUG true 2024-10-17 04:24:18,273 DEBUG --- stderr --- 2024-10-17 04:24:18,273 DEBUG 2024-10-17 04:24:18,273 INFO 2024-10-17 04:24:18,273 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-68b86489-ztj5j --output jsonpath={.status.startTime} 2024-10-17 04:24:18,273 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-10-17 04:24:18,539 INFO [loop_until]: OK (rc = 0) 2024-10-17 04:24:18,539 DEBUG --- stdout --- 2024-10-17 04:24:18,539 DEBUG 2024-10-16T18:56:10Z 2024-10-17 04:24:18,539 DEBUG --- stderr --- 2024-10-17 04:24:18,539 DEBUG 2024-10-17 04:24:18,539 INFO 2024-10-17 04:24:18,540 INFO ---- Check pod overseer-0-68b86489-ztj5j filesystem is accessible ---- 2024-10-17 04:24:19,345 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-10-17 04:24:19,345 INFO 2024-10-17 04:24:19,345 INFO ---------- Check pod overseer-0-68b86489-ztj5j restart count ---------- 2024-10-17 04:24:19,345 INFO 2024-10-17 04:24:19,345 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-68b86489-ztj5j --output jsonpath={.status.containerStatuses[*].restartCount} 2024-10-17 04:24:19,345 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-10-17 04:24:19,614 INFO [loop_until]: OK (rc = 0) 2024-10-17 04:24:19,615 DEBUG --- stdout --- 2024-10-17 04:24:19,615 DEBUG 0 2024-10-17 04:24:19,615 DEBUG --- stderr --- 2024-10-17 04:24:19,615 DEBUG 2024-10-17 04:24:19,615 INFO Pod overseer-0-68b86489-ztj5j has been restarted 0 times. 2024-10-17 04:24:19,615 INFO 2024-10-17 04:24:19,615 INFO --------------------- Get expected number of pods --------------------- 2024-10-17 04:24:19,615 INFO 2024-10-17 04:24:19,615 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-10-17 04:24:19,615 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-10-17 04:24:19,887 INFO [loop_until]: OK (rc = 0) 2024-10-17 04:24:19,887 DEBUG --- stdout --- 2024-10-17 04:24:19,887 DEBUG 1 2024-10-17 04:24:19,887 DEBUG --- stderr --- 2024-10-17 04:24:19,887 DEBUG 2024-10-17 04:24:19,887 INFO 2024-10-17 04:24:19,887 INFO -------------- Waiting for 1 expected pod(s) to be ready -------------- 2024-10-17 04:24:19,888 INFO 2024-10-17 04:24:19,888 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-10-17 04:24:19,888 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2024-10-17 04:24:20,197 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-10-17 04:24:20,197 INFO [loop_until]: OK (rc = 0) 2024-10-17 04:24:20,197 DEBUG --- stdout --- 2024-10-17 04:24:20,197 DEBUG ready:1 replicas:1 2024-10-17 04:24:20,197 DEBUG --- stderr --- 2024-10-17 04:24:20,197 DEBUG 2024-10-17 04:24:20,197 INFO Livecheck to https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com 2024-10-17 04:24:20,197 INFO [http_cmd]: curl --insecure -L --request GET "https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com" 2024-10-17 04:24:20,503 INFO [http_cmd]: http status code OK 2024-10-17 04:24:20,503 DEBUG --- status code --- 2024-10-17 04:24:20,503 DEBUG http status code is 200 (expected 200) 2024-10-17 04:24:20,503 DEBUG --- http response --- 2024-10-17 04:24:20,503 DEBUG