--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 ________________________________________________________________________________ [2025-01-16 18:32:49] Deploy_or_discover_overseer pre : Initialising task parameters ________________________________________________________________________________ task will be executed on controller (localhost) ________________________________________________________________________________ [2025-01-16 18:32:49] Deploy_or_discover_overseer step1 : Discover or deploy overseer ________________________________________________________________________________ 2025-01-16 18:32:50,220 INFO 2025-01-16 18:32:50,220 INFO [loop_until]: kubectl --namespace=xlou get deployments -l "release=overseer" -o name 2025-01-16 18:32:50,220 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-01-16 18:32:50,525 INFO [loop_until]: OK (rc = 0) 2025-01-16 18:32:50,525 DEBUG --- stdout --- 2025-01-16 18:32:50,525 DEBUG deployment.apps/overseer-0 2025-01-16 18:32:50,525 DEBUG --- stderr --- 2025-01-16 18:32:50,525 DEBUG Discover overseer pod: overseer-0 2025-01-16 18:32:50,686 INFO 2025-01-16 18:32:50,686 INFO --------------------- Get expected number of pods --------------------- 2025-01-16 18:32:50,686 INFO 2025-01-16 18:32:50,686 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} 2025-01-16 18:32:50,686 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-01-16 18:32:50,961 INFO [loop_until]: OK (rc = 0) 2025-01-16 18:32:50,961 DEBUG --- stdout --- 2025-01-16 18:32:50,961 DEBUG 1 2025-01-16 18:32:50,961 DEBUG --- stderr --- 2025-01-16 18:32:50,961 DEBUG 2025-01-16 18:32:50,961 INFO 2025-01-16 18:32:50,961 INFO ------------- Reloading pod list for product "overseer-0" ------------- 2025-01-16 18:32:50,961 INFO 2025-01-16 18:32:50,961 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 2025-01-16 18:32:50,961 INFO [loop_until]: (max_time=360.0, interval=10, expected_rc=[0] 2025-01-16 18:32:51,272 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found 2025-01-16 18:32:51,272 INFO [loop_until]: OK (rc = 0) 2025-01-16 18:32:51,272 DEBUG --- stdout --- 2025-01-16 18:32:51,272 DEBUG overseer-0-5865b977f-pk2tz 2025-01-16 18:32:51,272 DEBUG --- stderr --- 2025-01-16 18:32:51,272 DEBUG 2025-01-16 18:32:51,272 INFO 2025-01-16 18:32:51,272 INFO ----------- Check pod overseer-0-5865b977f-pk2tz is running ----------- 2025-01-16 18:32:51,272 INFO 2025-01-16 18:32:51,272 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-5865b977f-pk2tz -o=jsonpath={.status.phase} | grep "Running" 2025-01-16 18:32:51,273 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2025-01-16 18:32:51,567 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-01-16 18:32:51,567 INFO [loop_until]: OK (rc = 0) 2025-01-16 18:32:51,567 DEBUG --- stdout --- 2025-01-16 18:32:51,567 DEBUG Running 2025-01-16 18:32:51,567 DEBUG --- stderr --- 2025-01-16 18:32:51,567 DEBUG 2025-01-16 18:32:51,568 INFO 2025-01-16 18:32:51,568 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-5865b977f-pk2tz -o=jsonpath={.status.containerStatuses[*].ready} | grep "true" 2025-01-16 18:32:51,568 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2025-01-16 18:32:51,841 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-01-16 18:32:51,841 INFO [loop_until]: OK (rc = 0) 2025-01-16 18:32:51,841 DEBUG --- stdout --- 2025-01-16 18:32:51,841 DEBUG true 2025-01-16 18:32:51,841 DEBUG --- stderr --- 2025-01-16 18:32:51,841 DEBUG 2025-01-16 18:32:51,842 INFO 2025-01-16 18:32:51,842 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-5865b977f-pk2tz --output jsonpath={.status.startTime} 2025-01-16 18:32:51,842 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-01-16 18:32:52,114 INFO [loop_until]: OK (rc = 0) 2025-01-16 18:32:52,114 DEBUG --- stdout --- 2025-01-16 18:32:52,114 DEBUG 2025-01-08T13:06:01Z 2025-01-16 18:32:52,114 DEBUG --- stderr --- 2025-01-16 18:32:52,114 DEBUG 2025-01-16 18:32:52,115 INFO 2025-01-16 18:32:52,115 INFO ---- Check pod overseer-0-5865b977f-pk2tz filesystem is accessible ---- 2025-01-16 18:32:52,874 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-01-16 18:32:52,874 INFO 2025-01-16 18:32:52,874 INFO --------- Check pod overseer-0-5865b977f-pk2tz restart count --------- 2025-01-16 18:32:52,874 INFO 2025-01-16 18:32:52,874 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-5865b977f-pk2tz --output jsonpath={.status.containerStatuses[*].restartCount} 2025-01-16 18:32:52,874 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-01-16 18:32:53,161 INFO [loop_until]: OK (rc = 0) 2025-01-16 18:32:53,162 DEBUG --- stdout --- 2025-01-16 18:32:53,162 DEBUG 0 2025-01-16 18:32:53,162 DEBUG --- stderr --- 2025-01-16 18:32:53,162 DEBUG 2025-01-16 18:32:53,162 INFO Pod overseer-0-5865b977f-pk2tz has been restarted 0 times. 2025-01-16 18:32:53,162 INFO 2025-01-16 18:32:53,162 INFO --------------------- Get expected number of pods --------------------- 2025-01-16 18:32:53,162 INFO 2025-01-16 18:32:53,162 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} 2025-01-16 18:32:53,162 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-01-16 18:32:53,437 INFO [loop_until]: OK (rc = 0) 2025-01-16 18:32:53,437 DEBUG --- stdout --- 2025-01-16 18:32:53,437 DEBUG 1 2025-01-16 18:32:53,437 DEBUG --- stderr --- 2025-01-16 18:32:53,437 DEBUG 2025-01-16 18:32:53,437 INFO 2025-01-16 18:32:53,437 INFO -------------- Waiting for 1 expected pod(s) to be ready -------------- 2025-01-16 18:32:53,438 INFO 2025-01-16 18:32:53,438 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" 2025-01-16 18:32:53,438 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2025-01-16 18:32:53,735 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-01-16 18:32:53,735 INFO [loop_until]: OK (rc = 0) 2025-01-16 18:32:53,735 DEBUG --- stdout --- 2025-01-16 18:32:53,735 DEBUG ready:1 replicas:1 2025-01-16 18:32:53,735 DEBUG --- stderr --- 2025-01-16 18:32:53,735 DEBUG 2025-01-16 18:32:53,735 INFO Livecheck to https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com 2025-01-16 18:32:53,735 INFO [http_cmd]: curl --insecure -L --request GET "https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com" 2025-01-16 18:32:54,024 INFO [http_cmd]: http status code OK 2025-01-16 18:32:54,024 DEBUG --- status code --- 2025-01-16 18:32:54,024 DEBUG http status code is 200 (expected 200) 2025-01-16 18:32:54,025 DEBUG --- http response --- 2025-01-16 18:32:54,025 DEBUG [print_head_tail]: Print head (10 lines) and tail (10 lines) of input string (21 lines): 2025-01-16 18:32:54,025 DEBUG ----- output ----- 2025-01-16 18:32:54,025 DEBUG 2025-01-16 18:32:54,025 DEBUG 2025-01-16 18:32:54,025 DEBUG 2025-01-16 18:32:54,025 DEBUG 2025-01-16 18:32:54,025 DEBUG Directory listing for / 2025-01-16 18:32:54,025 DEBUG 2025-01-16 18:32:54,025 DEBUG 2025-01-16 18:32:54,025 DEBUG

Directory listing for /

2025-01-16 18:32:54,025 DEBUG
2025-01-16 18:32:54,025 DEBUG 2025-01-16 18:32:54,025 DEBUG
2025-01-16 18:32:54,025 DEBUG 2025-01-16 18:32:54,025 DEBUG 2025-01-16 18:32:54,025 DEBUG ________________________________________________________________________________ [2025-01-16 18:32:54] Deploy_or_discover_overseer post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped