--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: ['Deploy_all_forgerock_components']
wait_for: []
preceding_task: None
options: {}
group_name: None
Current dir: /mnt/disks/data/xslou/lodestar-fork/pyrock
________________________________________________________________________________
[2024-04-25 17:24:08] Deploy_or_discover_overseer pre : Initialising task parameters
________________________________________________________________________________
task will be executed on controller (localhost)
________________________________________________________________________________
[2024-04-25 17:24:08] Deploy_or_discover_overseer step1 : Discover or deploy overseer
________________________________________________________________________________
2024-04-25 17:24:09,094 INFO
2024-04-25 17:24:09,094 INFO [loop_until]: kubectl --namespace=xlou get deployments -l "release=overseer" -o name
2024-04-25 17:24:09,094 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-25 17:24:09,389 INFO [loop_until]: OK (rc = 0)
2024-04-25 17:24:09,389 DEBUG --- stdout ---
2024-04-25 17:24:09,389 DEBUG
2024-04-25 17:24:09,389 DEBUG --- stderr ---
2024-04-25 17:24:09,389 DEBUG
overseer-0 pod does not exit, deploy it
2024-04-25 17:24:09,632 INFO
2024-04-25 17:24:09,632 INFO ------------ Deploy the lodestarbox with overseer profile ------------
2024-04-25 17:24:09,633 INFO
2024-04-25 17:24:09,633 INFO [run_command]: skaffold deploy --profile overseer --config=/tmp/tmpkavxh_38 --status-check=true --namespace=xlou
2024-04-25 17:24:12,346 INFO Starting deploy...
2024-04-25 17:24:15,054 INFO - serviceaccount/k8s-svc-acct-0 created
2024-04-25 17:24:15,254 INFO - clusterrolebinding.rbac.authorization.k8s.io/k8s-svc-acct-crb-xlou-0 created
2024-04-25 17:24:15,455 INFO - configmap/overseer-config-0 created
2024-04-25 17:24:15,756 INFO - service/overseer-0 created
2024-04-25 17:24:15,957 INFO - persistentvolumeclaim/overseer-0 created
2024-04-25 17:24:16,158 INFO - deployment.apps/overseer-0 created
2024-04-25 17:24:16,459 INFO - ingress.networking.k8s.io/overseer-0 created
2024-04-25 17:24:16,559 INFO Waiting for deployments to stabilize...
2024-04-25 17:24:21,673 INFO - xlou:deployment/overseer-0: creating container overseer
2024-04-25 17:24:21,774 INFO - xlou:pod/overseer-0-56c5c978d9-v8wm9: creating container overseer
2024-04-25 17:24:32,205 INFO - xlou:deployment/overseer-0 is ready.
2024-04-25 17:24:32,306 INFO Deployments stabilized in 15.75 seconds
2024-04-25 17:24:32,406 ERROR There is a new version (2.11.0) of Skaffold available. Download it from:
2024-04-25 17:24:32,407 ERROR https://github.com/GoogleContainerTools/skaffold/releases/tag/v2.11.0
2024-04-25 17:24:32,407 ERROR
2024-04-25 17:24:32,407 ERROR Help improve Skaffold with our 2-minute anonymous survey: run 'skaffold survey'
2024-04-25 17:24:32,407 ERROR To help improve the quality of this product, we collect anonymized usage data for details on what is tracked and how we use this data visit . This data is handled in accordance with our privacy policy
2024-04-25 17:24:32,407 ERROR
2024-04-25 17:24:32,407 ERROR You may choose to opt out of this collection by running the following command:
2024-04-25 17:24:32,407 ERROR skaffold config set --global collect-metrics false
2024-04-25 17:24:32,407 INFO
2024-04-25 17:24:32,407 INFO --------------------- Get expected number of pods ---------------------
2024-04-25 17:24:32,407 INFO
2024-04-25 17:24:32,407 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-25 17:24:32,408 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-25 17:24:32,710 INFO [loop_until]: OK (rc = 0)
2024-04-25 17:24:32,710 DEBUG --- stdout ---
2024-04-25 17:24:32,710 DEBUG 1
2024-04-25 17:24:32,710 DEBUG --- stderr ---
2024-04-25 17:24:32,710 DEBUG
2024-04-25 17:24:32,711 INFO
2024-04-25 17:24:32,711 INFO ---------------------------- Get pod list ----------------------------
2024-04-25 17:24:32,711 INFO
2024-04-25 17:24:32,711 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-25 17:24:32,711 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0]
2024-04-25 17:24:33,015 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found
2024-04-25 17:24:33,016 INFO [loop_until]: OK (rc = 0)
2024-04-25 17:24:33,016 DEBUG --- stdout ---
2024-04-25 17:24:33,016 DEBUG overseer-0-56c5c978d9-v8wm9
2024-04-25 17:24:33,016 DEBUG --- stderr ---
2024-04-25 17:24:33,016 DEBUG
2024-04-25 17:24:33,016 INFO
2024-04-25 17:24:33,016 INFO ---------- Check pod overseer-0-56c5c978d9-v8wm9 is running ----------
2024-04-25 17:24:33,017 INFO
2024-04-25 17:24:33,017 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-56c5c978d9-v8wm9 -o=jsonpath={.status.phase} | grep "Running"
2024-04-25 17:24:33,017 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2024-04-25 17:24:33,385 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-25 17:24:33,385 INFO [loop_until]: OK (rc = 0)
2024-04-25 17:24:33,385 DEBUG --- stdout ---
2024-04-25 17:24:33,385 DEBUG Running
2024-04-25 17:24:33,385 DEBUG --- stderr ---
2024-04-25 17:24:33,385 DEBUG
2024-04-25 17:24:33,386 INFO
2024-04-25 17:24:33,386 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-56c5c978d9-v8wm9 -o=jsonpath={.status.containerStatuses[*].ready} | grep "true"
2024-04-25 17:24:33,386 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2024-04-25 17:24:33,716 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-25 17:24:33,717 INFO [loop_until]: OK (rc = 0)
2024-04-25 17:24:33,717 DEBUG --- stdout ---
2024-04-25 17:24:33,717 DEBUG true
2024-04-25 17:24:33,717 DEBUG --- stderr ---
2024-04-25 17:24:33,717 DEBUG
2024-04-25 17:24:33,717 INFO
2024-04-25 17:24:33,717 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-56c5c978d9-v8wm9 --output jsonpath={.status.startTime}
2024-04-25 17:24:33,717 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-25 17:24:34,014 INFO [loop_until]: OK (rc = 0)
2024-04-25 17:24:34,014 DEBUG --- stdout ---
2024-04-25 17:24:34,015 DEBUG 2024-04-25T17:24:20Z
2024-04-25 17:24:34,015 DEBUG --- stderr ---
2024-04-25 17:24:34,015 DEBUG
2024-04-25 17:24:34,015 INFO
2024-04-25 17:24:34,015 INFO --- Check pod overseer-0-56c5c978d9-v8wm9 filesystem is accessible ---
2024-04-25 17:24:34,803 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-25 17:24:34,805 INFO
2024-04-25 17:24:34,805 INFO --------- Check pod overseer-0-56c5c978d9-v8wm9 restart count ---------
2024-04-25 17:24:34,805 INFO
2024-04-25 17:24:34,805 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-56c5c978d9-v8wm9 --output jsonpath={.status.containerStatuses[*].restartCount}
2024-04-25 17:24:34,805 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-25 17:24:35,158 INFO [loop_until]: OK (rc = 0)
2024-04-25 17:24:35,158 DEBUG --- stdout ---
2024-04-25 17:24:35,158 DEBUG 0
2024-04-25 17:24:35,158 DEBUG --- stderr ---
2024-04-25 17:24:35,159 DEBUG
2024-04-25 17:24:35,159 INFO Pod overseer-0-56c5c978d9-v8wm9 has been restarted 0 times.
2024-04-25 17:24:35,159 INFO
2024-04-25 17:24:35,159 INFO --------------------- Get expected number of pods ---------------------
2024-04-25 17:24:35,159 INFO
2024-04-25 17:24:35,159 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-25 17:24:35,159 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-25 17:24:35,459 INFO [loop_until]: OK (rc = 0)
2024-04-25 17:24:35,460 DEBUG --- stdout ---
2024-04-25 17:24:35,460 DEBUG 1
2024-04-25 17:24:35,460 DEBUG --- stderr ---
2024-04-25 17:24:35,460 DEBUG
2024-04-25 17:24:35,460 INFO
2024-04-25 17:24:35,460 INFO -------------- Waiting for 1 expected pod(s) to be ready --------------
2024-04-25 17:24:35,460 INFO
2024-04-25 17:24:35,460 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-25 17:24:35,460 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0]
2024-04-25 17:24:35,757 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-25 17:24:35,757 INFO [loop_until]: OK (rc = 0)
2024-04-25 17:24:35,757 DEBUG --- stdout ---
2024-04-25 17:24:35,757 DEBUG ready:1 replicas:1
2024-04-25 17:24:35,757 DEBUG --- stderr ---
2024-04-25 17:24:35,757 DEBUG
2024-04-25 17:24:35,757 INFO Livecheck to https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com
2024-04-25 17:24:35,758 INFO [http_cmd]: curl --insecure -L --request GET "https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com"
2024-04-25 17:24:36,030 INFO [http_cmd]: http status code OK
2024-04-25 17:24:36,030 DEBUG --- status code ---
2024-04-25 17:24:36,030 DEBUG http status code is 200 (expected 200)
2024-04-25 17:24:36,030 DEBUG --- http response ---
2024-04-25 17:24:36,030 DEBUG
Directory listing for /
Directory listing for /
2024-04-25 17:24:36,030 INFO Component overseer-0 is alive
2024-04-25 17:24:36,883 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/20240425_172436-after-overseer-0-deploy/overseer-0-56c5c978d9-v8wm9.txt
2024-04-25 17:24:36,883 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/20240425_172436-after-overseer-0-deploy/overseer-0-56c5c978d9-v8wm9.txt
2024-04-25 17:24:36,883 INFO Check pod logs for errors
2024-04-25 17:24:36,884 INFO
2024-04-25 17:24:36,884 INFO --------------------- Get expected number of pods ---------------------
2024-04-25 17:24:36,884 INFO
2024-04-25 17:24:36,884 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-25 17:24:36,884 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-25 17:24:37,187 INFO [loop_until]: OK (rc = 0)
2024-04-25 17:24:37,187 DEBUG --- stdout ---
2024-04-25 17:24:37,187 DEBUG 1
2024-04-25 17:24:37,187 DEBUG --- stderr ---
2024-04-25 17:24:37,187 DEBUG
2024-04-25 17:24:37,188 INFO
2024-04-25 17:24:37,188 INFO ---------------------------- Get pod list ----------------------------
2024-04-25 17:24:37,188 INFO
2024-04-25 17:24:37,188 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-25 17:24:37,188 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0]
2024-04-25 17:24:37,490 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found
2024-04-25 17:24:37,491 INFO [loop_until]: OK (rc = 0)
2024-04-25 17:24:37,491 DEBUG --- stdout ---
2024-04-25 17:24:37,491 DEBUG overseer-0-56c5c978d9-v8wm9
2024-04-25 17:24:37,491 DEBUG --- stderr ---
2024-04-25 17:24:37,491 DEBUG
2024-04-25 17:24:37,491 INFO
2024-04-25 17:24:37,491 INFO --------------------- Get expected number of pods ---------------------
2024-04-25 17:24:37,491 INFO
2024-04-25 17:24:37,491 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-25 17:24:37,491 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-25 17:24:37,797 INFO [loop_until]: OK (rc = 0)
2024-04-25 17:24:37,797 DEBUG --- stdout ---
2024-04-25 17:24:37,797 DEBUG 1
2024-04-25 17:24:37,797 DEBUG --- stderr ---
2024-04-25 17:24:37,797 DEBUG
2024-04-25 17:24:37,797 INFO
2024-04-25 17:24:37,798 INFO -------------- Waiting for 1 expected pod(s) to be ready --------------
2024-04-25 17:24:37,798 INFO
2024-04-25 17:24:37,798 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-25 17:24:37,798 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0]
2024-04-25 17:24:38,105 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-25 17:24:38,106 INFO [loop_until]: OK (rc = 0)
2024-04-25 17:24:38,106 DEBUG --- stdout ---
2024-04-25 17:24:38,106 DEBUG ready:1 replicas:1
2024-04-25 17:24:38,106 DEBUG --- stderr ---
2024-04-25 17:24:38,106 DEBUG
2024-04-25 17:24:38,106 INFO Livecheck to https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com
2024-04-25 17:24:38,106 INFO [http_cmd]: curl --insecure -L --request GET "https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com"
2024-04-25 17:24:38,312 INFO [http_cmd]: http status code OK
2024-04-25 17:24:38,312 DEBUG --- status code ---
2024-04-25 17:24:38,312 DEBUG http status code is 200 (expected 200)
2024-04-25 17:24:38,312 DEBUG --- http response ---
2024-04-25 17:24:38,312 DEBUG
Directory listing for /
Directory listing for /
________________________________________________________________________________
[2024-04-25 17:24:38] Deploy_or_discover_overseer post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped