--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-11-20 19:05:37] Deploy_or_discover_overseer pre : Initialising task parameters ________________________________________________________________________________ task will be executed on controller (localhost) ________________________________________________________________________________ [2024-11-20 19:05:37] Deploy_or_discover_overseer step1 : Discover or deploy overseer ________________________________________________________________________________ 2024-11-20 19:05:37,789 INFO 2024-11-20 19:05:37,789 INFO [loop_until]: kubectl --namespace=xlou get deployments -l "release=overseer" -o name 2024-11-20 19:05:37,789 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-11-20 19:05:38,084 INFO [loop_until]: OK (rc = 0) 2024-11-20 19:05:38,084 DEBUG --- stdout --- 2024-11-20 19:05:38,084 DEBUG deployment.apps/overseer-0 2024-11-20 19:05:38,084 DEBUG --- stderr --- 2024-11-20 19:05:38,084 DEBUG Discover overseer pod: overseer-0 2024-11-20 19:05:38,248 INFO 2024-11-20 19:05:38,248 INFO --------------------- Get expected number of pods --------------------- 2024-11-20 19:05:38,249 INFO 2024-11-20 19:05:38,249 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-11-20 19:05:38,249 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-11-20 19:05:38,523 INFO [loop_until]: OK (rc = 0) 2024-11-20 19:05:38,523 DEBUG --- stdout --- 2024-11-20 19:05:38,523 DEBUG 1 2024-11-20 19:05:38,523 DEBUG --- stderr --- 2024-11-20 19:05:38,523 DEBUG 2024-11-20 19:05:38,523 INFO 2024-11-20 19:05:38,523 INFO ------------- Reloading pod list for product "overseer-0" ------------- 2024-11-20 19:05:38,523 INFO 2024-11-20 19:05:38,523 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-11-20 19:05:38,523 INFO [loop_until]: (max_time=360.0, interval=10, expected_rc=[0] 2024-11-20 19:05:38,832 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found 2024-11-20 19:05:38,833 INFO [loop_until]: OK (rc = 0) 2024-11-20 19:05:38,833 DEBUG --- stdout --- 2024-11-20 19:05:38,833 DEBUG overseer-0-6644bb6697-rchxr 2024-11-20 19:05:38,833 DEBUG --- stderr --- 2024-11-20 19:05:38,833 DEBUG 2024-11-20 19:05:38,833 INFO 2024-11-20 19:05:38,833 INFO ---------- Check pod overseer-0-6644bb6697-rchxr is running ---------- 2024-11-20 19:05:38,833 INFO 2024-11-20 19:05:38,833 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-6644bb6697-rchxr -o=jsonpath={.status.phase} | grep "Running" 2024-11-20 19:05:38,833 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2024-11-20 19:05:39,129 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-11-20 19:05:39,129 INFO [loop_until]: OK (rc = 0) 2024-11-20 19:05:39,129 DEBUG --- stdout --- 2024-11-20 19:05:39,129 DEBUG Running 2024-11-20 19:05:39,129 DEBUG --- stderr --- 2024-11-20 19:05:39,129 DEBUG 2024-11-20 19:05:39,129 INFO 2024-11-20 19:05:39,129 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-6644bb6697-rchxr -o=jsonpath={.status.containerStatuses[*].ready} | grep "true" 2024-11-20 19:05:39,129 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2024-11-20 19:05:39,401 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-11-20 19:05:39,401 INFO [loop_until]: OK (rc = 0) 2024-11-20 19:05:39,401 DEBUG --- stdout --- 2024-11-20 19:05:39,401 DEBUG true 2024-11-20 19:05:39,401 DEBUG --- stderr --- 2024-11-20 19:05:39,401 DEBUG 2024-11-20 19:05:39,401 INFO 2024-11-20 19:05:39,401 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-6644bb6697-rchxr --output jsonpath={.status.startTime} 2024-11-20 19:05:39,401 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-11-20 19:05:39,670 INFO [loop_until]: OK (rc = 0) 2024-11-20 19:05:39,670 DEBUG --- stdout --- 2024-11-20 19:05:39,670 DEBUG 2024-11-11T12:53:51Z 2024-11-20 19:05:39,670 DEBUG --- stderr --- 2024-11-20 19:05:39,670 DEBUG 2024-11-20 19:05:39,670 INFO 2024-11-20 19:05:39,670 INFO --- Check pod overseer-0-6644bb6697-rchxr filesystem is accessible --- 2024-11-20 19:05:40,409 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-11-20 19:05:40,409 INFO 2024-11-20 19:05:40,409 INFO --------- Check pod overseer-0-6644bb6697-rchxr restart count --------- 2024-11-20 19:05:40,410 INFO 2024-11-20 19:05:40,410 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-6644bb6697-rchxr --output jsonpath={.status.containerStatuses[*].restartCount} 2024-11-20 19:05:40,410 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-11-20 19:05:40,681 INFO [loop_until]: OK (rc = 0) 2024-11-20 19:05:40,681 DEBUG --- stdout --- 2024-11-20 19:05:40,682 DEBUG 0 2024-11-20 19:05:40,682 DEBUG --- stderr --- 2024-11-20 19:05:40,682 DEBUG 2024-11-20 19:05:40,682 INFO Pod overseer-0-6644bb6697-rchxr has been restarted 0 times. 2024-11-20 19:05:40,682 INFO 2024-11-20 19:05:40,682 INFO --------------------- Get expected number of pods --------------------- 2024-11-20 19:05:40,682 INFO 2024-11-20 19:05:40,682 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-11-20 19:05:40,682 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-11-20 19:05:40,954 INFO [loop_until]: OK (rc = 0) 2024-11-20 19:05:40,954 DEBUG --- stdout --- 2024-11-20 19:05:40,954 DEBUG 1 2024-11-20 19:05:40,954 DEBUG --- stderr --- 2024-11-20 19:05:40,954 DEBUG 2024-11-20 19:05:40,954 INFO 2024-11-20 19:05:40,954 INFO -------------- Waiting for 1 expected pod(s) to be ready -------------- 2024-11-20 19:05:40,954 INFO 2024-11-20 19:05:40,954 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-11-20 19:05:40,954 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2024-11-20 19:05:41,247 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-11-20 19:05:41,247 INFO [loop_until]: OK (rc = 0) 2024-11-20 19:05:41,247 DEBUG --- stdout --- 2024-11-20 19:05:41,247 DEBUG ready:1 replicas:1 2024-11-20 19:05:41,247 DEBUG --- stderr --- 2024-11-20 19:05:41,247 DEBUG 2024-11-20 19:05:41,247 INFO Livecheck to https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com 2024-11-20 19:05:41,247 INFO [http_cmd]: curl --insecure -L --request GET "https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com" 2024-11-20 19:05:41,601 INFO [http_cmd]: http status code OK 2024-11-20 19:05:41,601 DEBUG --- status code --- 2024-11-20 19:05:41,601 DEBUG http status code is 200 (expected 200) 2024-11-20 19:05:41,601 DEBUG --- http response --- 2024-11-20 19:05:41,601 DEBUG Directory listing for /

Directory listing for /



________________________________________________________________________________ [2024-11-20 19:05:41] Deploy_or_discover_overseer post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped