--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-26 00:25:11] Deploy_or_discover_overseer pre : Initialising task parameters
________________________________________________________________________________
task will be executed on controller (localhost)
________________________________________________________________________________
[2024-04-26 00:25:11] Deploy_or_discover_overseer step1 : Discover or deploy overseer
________________________________________________________________________________
2024-04-26 00:25:12,111 INFO
2024-04-26 00:25:12,111 INFO [loop_until]: kubectl --namespace=xlou get deployments -l "release=overseer" -o name
2024-04-26 00:25:12,111 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-26 00:25:12,477 INFO [loop_until]: OK (rc = 0)
2024-04-26 00:25:12,477 DEBUG --- stdout ---
2024-04-26 00:25:12,477 DEBUG
2024-04-26 00:25:12,477 DEBUG --- stderr ---
2024-04-26 00:25:12,477 DEBUG
overseer-0 pod does not exit, deploy it
2024-04-26 00:25:12,806 INFO
2024-04-26 00:25:12,806 INFO ------------ Deploy the lodestarbox with overseer profile ------------
2024-04-26 00:25:12,807 INFO
2024-04-26 00:25:12,807 INFO [run_command]: skaffold deploy --profile overseer --config=/tmp/tmprqnuz3jc --status-check=true --namespace=xlou
2024-04-26 00:25:15,724 INFO Starting deploy...
2024-04-26 00:25:18,739 INFO - serviceaccount/k8s-svc-acct-0 created
2024-04-26 00:25:18,940 INFO - clusterrolebinding.rbac.authorization.k8s.io/k8s-svc-acct-crb-xlou-0 created
2024-04-26 00:25:19,141 INFO - configmap/overseer-config-0 created
2024-04-26 00:25:19,443 INFO - service/overseer-0 created
2024-04-26 00:25:19,644 INFO - persistentvolumeclaim/overseer-0 created
2024-04-26 00:25:19,844 INFO - deployment.apps/overseer-0 created
2024-04-26 00:25:20,145 INFO - ingress.networking.k8s.io/overseer-0 created
2024-04-26 00:25:20,246 INFO Waiting for deployments to stabilize...
2024-04-26 00:25:25,362 INFO - xlou:deployment/overseer-0: creating container overseer
2024-04-26 00:25:25,463 INFO - xlou:pod/overseer-0-8645978784-rshk9: creating container overseer
2024-04-26 00:25:36,799 INFO - xlou:deployment/overseer-0 is ready.
2024-04-26 00:25:36,900 INFO Deployments stabilized in 16.661 seconds
2024-04-26 00:25:37,000 ERROR There is a new version (2.11.0) of Skaffold available. Download it from:
2024-04-26 00:25:37,000 ERROR https://github.com/GoogleContainerTools/skaffold/releases/tag/v2.11.0
2024-04-26 00:25:37,000 ERROR
2024-04-26 00:25:37,000 ERROR Help improve Skaffold with our 2-minute anonymous survey: run 'skaffold survey'
2024-04-26 00:25:37,000 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-26 00:25:37,001 ERROR
2024-04-26 00:25:37,001 ERROR You may choose to opt out of this collection by running the following command:
2024-04-26 00:25:37,001 ERROR skaffold config set --global collect-metrics false
2024-04-26 00:25:37,001 INFO
2024-04-26 00:25:37,001 INFO --------------------- Get expected number of pods ---------------------
2024-04-26 00:25:37,001 INFO
2024-04-26 00:25:37,001 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-26 00:25:37,001 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-26 00:25:37,305 INFO [loop_until]: OK (rc = 0)
2024-04-26 00:25:37,305 DEBUG --- stdout ---
2024-04-26 00:25:37,305 DEBUG 1
2024-04-26 00:25:37,305 DEBUG --- stderr ---
2024-04-26 00:25:37,306 DEBUG
2024-04-26 00:25:37,306 INFO
2024-04-26 00:25:37,306 INFO ---------------------------- Get pod list ----------------------------
2024-04-26 00:25:37,306 INFO
2024-04-26 00:25:37,306 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-26 00:25:37,306 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0]
2024-04-26 00:25:37,610 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found
2024-04-26 00:25:37,610 INFO [loop_until]: OK (rc = 0)
2024-04-26 00:25:37,610 DEBUG --- stdout ---
2024-04-26 00:25:37,610 DEBUG overseer-0-8645978784-rshk9
2024-04-26 00:25:37,610 DEBUG --- stderr ---
2024-04-26 00:25:37,610 DEBUG
2024-04-26 00:25:37,611 INFO
2024-04-26 00:25:37,611 INFO ---------- Check pod overseer-0-8645978784-rshk9 is running ----------
2024-04-26 00:25:37,611 INFO
2024-04-26 00:25:37,611 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-8645978784-rshk9 -o=jsonpath={.status.phase} | grep "Running"
2024-04-26 00:25:37,611 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2024-04-26 00:25:37,956 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-26 00:25:37,957 INFO [loop_until]: OK (rc = 0)
2024-04-26 00:25:37,957 DEBUG --- stdout ---
2024-04-26 00:25:37,957 DEBUG Running
2024-04-26 00:25:37,957 DEBUG --- stderr ---
2024-04-26 00:25:37,957 DEBUG
2024-04-26 00:25:37,957 INFO
2024-04-26 00:25:37,957 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods overseer-0-8645978784-rshk9 -o=jsonpath={.status.containerStatuses[*].ready} | grep "true"
2024-04-26 00:25:37,957 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2024-04-26 00:25:38,265 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-26 00:25:38,266 INFO [loop_until]: OK (rc = 0)
2024-04-26 00:25:38,266 DEBUG --- stdout ---
2024-04-26 00:25:38,266 DEBUG true
2024-04-26 00:25:38,266 DEBUG --- stderr ---
2024-04-26 00:25:38,266 DEBUG
2024-04-26 00:25:38,266 INFO
2024-04-26 00:25:38,266 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-8645978784-rshk9 --output jsonpath={.status.startTime}
2024-04-26 00:25:38,266 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-26 00:25:38,570 INFO [loop_until]: OK (rc = 0)
2024-04-26 00:25:38,570 DEBUG --- stdout ---
2024-04-26 00:25:38,571 DEBUG 2024-04-26T00:25:23Z
2024-04-26 00:25:38,571 DEBUG --- stderr ---
2024-04-26 00:25:38,571 DEBUG
2024-04-26 00:25:38,571 INFO
2024-04-26 00:25:38,572 INFO --- Check pod overseer-0-8645978784-rshk9 filesystem is accessible ---
2024-04-26 00:25:39,364 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-26 00:25:39,365 INFO
2024-04-26 00:25:39,365 INFO --------- Check pod overseer-0-8645978784-rshk9 restart count ---------
2024-04-26 00:25:39,365 INFO
2024-04-26 00:25:39,365 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod overseer-0-8645978784-rshk9 --output jsonpath={.status.containerStatuses[*].restartCount}
2024-04-26 00:25:39,365 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-26 00:25:39,668 INFO [loop_until]: OK (rc = 0)
2024-04-26 00:25:39,669 DEBUG --- stdout ---
2024-04-26 00:25:39,669 DEBUG 0
2024-04-26 00:25:39,669 DEBUG --- stderr ---
2024-04-26 00:25:39,669 DEBUG
2024-04-26 00:25:39,669 INFO Pod overseer-0-8645978784-rshk9 has been restarted 0 times.
2024-04-26 00:25:39,669 INFO
2024-04-26 00:25:39,669 INFO --------------------- Get expected number of pods ---------------------
2024-04-26 00:25:39,669 INFO
2024-04-26 00:25:39,669 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-26 00:25:39,670 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-26 00:25:39,992 INFO [loop_until]: OK (rc = 0)
2024-04-26 00:25:39,992 DEBUG --- stdout ---
2024-04-26 00:25:39,992 DEBUG 1
2024-04-26 00:25:39,992 DEBUG --- stderr ---
2024-04-26 00:25:39,992 DEBUG
2024-04-26 00:25:39,992 INFO
2024-04-26 00:25:39,992 INFO -------------- Waiting for 1 expected pod(s) to be ready --------------
2024-04-26 00:25:39,992 INFO
2024-04-26 00:25:39,992 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-26 00:25:39,992 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0]
2024-04-26 00:25:40,349 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-26 00:25:40,350 INFO [loop_until]: OK (rc = 0)
2024-04-26 00:25:40,350 DEBUG --- stdout ---
2024-04-26 00:25:40,350 DEBUG ready:1 replicas:1
2024-04-26 00:25:40,350 DEBUG --- stderr ---
2024-04-26 00:25:40,350 DEBUG
2024-04-26 00:25:40,350 INFO Livecheck to https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com
2024-04-26 00:25:40,351 INFO [http_cmd]: curl --insecure -L --request GET "https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com"
2024-04-26 00:25:40,602 INFO [http_cmd]: http status code OK
2024-04-26 00:25:40,602 DEBUG --- status code ---
2024-04-26 00:25:40,602 DEBUG http status code is 200 (expected 200)
2024-04-26 00:25:40,602 DEBUG --- http response ---
2024-04-26 00:25:40,602 DEBUG
Directory listing for /
Directory listing for /
2024-04-26 00:25:40,603 INFO Component overseer-0 is alive
2024-04-26 00:25:41,537 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/simple_managed_users/pod-logs/stack/20240426_002540-after-overseer-0-deploy/overseer-0-8645978784-rshk9.txt
2024-04-26 00:25:41,539 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/simple_managed_users/pod-logs/stack/20240426_002540-after-overseer-0-deploy/overseer-0-8645978784-rshk9.txt
2024-04-26 00:25:41,540 INFO Check pod logs for errors
2024-04-26 00:25:41,540 INFO
2024-04-26 00:25:41,540 INFO --------------------- Get expected number of pods ---------------------
2024-04-26 00:25:41,541 INFO
2024-04-26 00:25:41,541 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-26 00:25:41,541 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-26 00:25:41,883 INFO [loop_until]: OK (rc = 0)
2024-04-26 00:25:41,883 DEBUG --- stdout ---
2024-04-26 00:25:41,884 DEBUG 1
2024-04-26 00:25:41,884 DEBUG --- stderr ---
2024-04-26 00:25:41,884 DEBUG
2024-04-26 00:25:41,884 INFO
2024-04-26 00:25:41,884 INFO ---------------------------- Get pod list ----------------------------
2024-04-26 00:25:41,884 INFO
2024-04-26 00:25:41,884 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-26 00:25:41,884 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0]
2024-04-26 00:25:42,221 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found
2024-04-26 00:25:42,221 INFO [loop_until]: OK (rc = 0)
2024-04-26 00:25:42,221 DEBUG --- stdout ---
2024-04-26 00:25:42,222 DEBUG overseer-0-8645978784-rshk9
2024-04-26 00:25:42,222 DEBUG --- stderr ---
2024-04-26 00:25:42,222 DEBUG
2024-04-26 00:25:42,222 INFO
2024-04-26 00:25:42,222 INFO --------------------- Get expected number of pods ---------------------
2024-04-26 00:25:42,222 INFO
2024-04-26 00:25:42,222 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-26 00:25:42,222 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-26 00:25:42,583 INFO [loop_until]: OK (rc = 0)
2024-04-26 00:25:42,583 DEBUG --- stdout ---
2024-04-26 00:25:42,583 DEBUG 1
2024-04-26 00:25:42,583 DEBUG --- stderr ---
2024-04-26 00:25:42,583 DEBUG
2024-04-26 00:25:42,584 INFO
2024-04-26 00:25:42,584 INFO -------------- Waiting for 1 expected pod(s) to be ready --------------
2024-04-26 00:25:42,584 INFO
2024-04-26 00:25:42,584 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-26 00:25:42,584 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0]
2024-04-26 00:25:42,949 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-26 00:25:42,949 INFO [loop_until]: OK (rc = 0)
2024-04-26 00:25:42,949 DEBUG --- stdout ---
2024-04-26 00:25:42,949 DEBUG ready:1 replicas:1
2024-04-26 00:25:42,949 DEBUG --- stderr ---
2024-04-26 00:25:42,949 DEBUG
2024-04-26 00:25:42,949 INFO Livecheck to https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com
2024-04-26 00:25:42,950 INFO [http_cmd]: curl --insecure -L --request GET "https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com"
2024-04-26 00:25:43,157 INFO [http_cmd]: http status code OK
2024-04-26 00:25:43,158 DEBUG --- status code ---
2024-04-26 00:25:43,158 DEBUG http status code is 200 (expected 200)
2024-04-26 00:25:43,158 DEBUG --- http response ---
2024-04-26 00:25:43,158 DEBUG
Directory listing for /
Directory listing for /
________________________________________________________________________________
[2024-04-26 00:25:43] Deploy_or_discover_overseer post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped