--Task--
name: Monitoring_start
enabled: True
class_name: MonitoringStart
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: []
wait_for: []
preceding_task: None
options: {}
group_name: None
Current dir: /mnt/disks/data/xslou/lodestar-fork/pyrock
________________________________________________________________________________
[2024-04-19 21:05:32] Monitoring_start pre : Initialising task parameters
________________________________________________________________________________
task will be executed on controller (localhost)
________________________________________________________________________________
[2024-04-19 21:05:32] Monitoring_start step1 : N/A
________________________________________________________________________________
2024-04-19 21:06:32,763 INFO
2024-04-19 21:06:32,763 INFO **************************************** Start Lodemon ****************************************
2024-04-19 21:06:32,892 INFO
2024-04-19 21:06:32,892 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-config
2024-04-19 21:06:32,892 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1]
2024-04-19 21:06:33,317 INFO [loop_until]: OK (rc = 0)
2024-04-19 21:06:33,317 DEBUG --- stdout ---
2024-04-19 21:06:33,317 DEBUG configmap "lodemon-config" deleted
2024-04-19 21:06:33,317 DEBUG --- stderr ---
2024-04-19 21:06:33,317 DEBUG
2024-04-19 21:06:33,317 INFO
2024-04-19 21:06:33,318 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm create configmap lodemon-config --from-file=/mnt/disks/data/xslou/lodestar-fork/config/config.yaml
2024-04-19 21:06:33,318 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-19 21:06:33,634 INFO [loop_until]: OK (rc = 0)
2024-04-19 21:06:33,634 DEBUG --- stdout ---
2024-04-19 21:06:33,635 DEBUG configmap/lodemon-config created
2024-04-19 21:06:33,635 DEBUG --- stderr ---
2024-04-19 21:06:33,635 DEBUG
2024-04-19 21:06:33,642 INFO
2024-04-19 21:06:33,642 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-deployments
2024-04-19 21:06:33,643 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1]
2024-04-19 21:06:34,069 INFO [loop_until]: OK (rc = 0)
2024-04-19 21:06:34,069 DEBUG --- stdout ---
2024-04-19 21:06:34,069 DEBUG configmap "lodemon-deployments" deleted
2024-04-19 21:06:34,069 DEBUG --- stderr ---
2024-04-19 21:06:34,070 DEBUG
2024-04-19 21:06:34,070 INFO
2024-04-19 21:06:34,070 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm create configmap lodemon-deployments --from-file=/mnt/disks/data/xslou/lodestar-fork/config/deployments_to_monitor.yaml
2024-04-19 21:06:34,070 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-19 21:06:34,371 INFO [loop_until]: OK (rc = 0)
2024-04-19 21:06:34,371 DEBUG --- stdout ---
2024-04-19 21:06:34,371 DEBUG configmap/lodemon-deployments created
2024-04-19 21:06:34,371 DEBUG --- stderr ---
2024-04-19 21:06:34,371 DEBUG
2024-04-19 21:06:34,371 INFO
2024-04-19 21:06:34,372 INFO ------------- Deploy the lodestarbox with lodemon profile -------------
2024-04-19 21:06:34,372 INFO
2024-04-19 21:06:34,372 INFO [run_command]: skaffold deploy --profile lodemon --config=/tmp/tmpw1s3zcla --status-check=true --namespace=xlou
2024-04-19 21:06:37,191 INFO Starting deploy...
2024-04-19 21:06:39,003 INFO - serviceaccount/k8s-svc-acct-lodemon unchanged
2024-04-19 21:06:39,104 INFO - clusterrolebinding.rbac.authorization.k8s.io/k8s-svc-acct-crb-xlou unchanged
2024-04-19 21:06:39,205 INFO - deployment.apps/lodemon configured
2024-04-19 21:06:39,306 INFO Waiting for deployments to stabilize...
2024-04-19 21:06:44,522 INFO - xlou:deployment/lodemon: waiting for rollout to finish: 1 old replicas are pending termination...
2024-04-19 21:07:09,915 INFO - xlou:deployment/lodemon is ready.
2024-04-19 21:07:10,015 INFO Deployments stabilized in 30.68 seconds
2024-04-19 21:07:10,116 ERROR There is a new version (2.11.0) of Skaffold available. Download it from:
2024-04-19 21:07:10,116 ERROR https://github.com/GoogleContainerTools/skaffold/releases/tag/v2.11.0
2024-04-19 21:07:10,116 ERROR
2024-04-19 21:07:10,116 ERROR Help improve Skaffold with our 2-minute anonymous survey: run 'skaffold survey'
2024-04-19 21:07:10,116 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-19 21:07:10,116 ERROR
2024-04-19 21:07:10,116 ERROR You may choose to opt out of this collection by running the following command:
2024-04-19 21:07:10,116 ERROR skaffold config set --global collect-metrics false
2024-04-19 21:07:10,117 INFO
2024-04-19 21:07:10,117 INFO --------------------- Get expected number of pods ---------------------
2024-04-19 21:07:10,117 INFO
2024-04-19 21:07:10,117 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get deployments --selector app=lodemon --output jsonpath={.items[*].spec.replicas}
2024-04-19 21:07:10,117 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-19 21:07:10,419 INFO [loop_until]: OK (rc = 0)
2024-04-19 21:07:10,420 DEBUG --- stdout ---
2024-04-19 21:07:10,420 DEBUG 1
2024-04-19 21:07:10,420 DEBUG --- stderr ---
2024-04-19 21:07:10,420 DEBUG
2024-04-19 21:07:10,420 INFO
2024-04-19 21:07:10,420 INFO ---------------------------- Get pod list ----------------------------
2024-04-19 21:07:10,420 INFO
2024-04-19 21:07:10,420 INFO [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods --selector app=lodemon --output jsonpath={.items[*].metadata.name}` | grep 1
2024-04-19 21:07:10,420 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0]
2024-04-19 21:07:10,787 INFO [loop_until]: Function succeeded after 0s (rc=0) - failed to find expected number of element: 1 - retry
2024-04-19 21:07:21,176 INFO [loop_until]: Function succeeded after 10s (rc=0) - failed to find expected number of element: 1 - retry
2024-04-19 21:07:31,566 INFO [loop_until]: Function succeeded after 21s (rc=0) - failed to find expected number of element: 1 - retry
2024-04-19 21:07:41,874 INFO [loop_until]: Function succeeded after 31s (rc=0) - expected number of elements found
2024-04-19 21:07:41,874 INFO [loop_until]: OK (rc = 0)
2024-04-19 21:07:41,875 DEBUG --- stdout ---
2024-04-19 21:07:41,875 DEBUG lodemon-df4b7b554-2gxfx
2024-04-19 21:07:41,875 DEBUG --- stderr ---
2024-04-19 21:07:41,875 DEBUG
2024-04-19 21:07:41,875 INFO
2024-04-19 21:07:41,875 INFO ------------ Check pod lodemon-df4b7b554-2gxfx is running ------------
2024-04-19 21:07:41,875 INFO
2024-04-19 21:07:41,875 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-df4b7b554-2gxfx -o=jsonpath={.status.phase} | grep "Running"
2024-04-19 21:07:41,875 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2024-04-19 21:07:42,213 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-19 21:07:42,213 INFO [loop_until]: OK (rc = 0)
2024-04-19 21:07:42,213 DEBUG --- stdout ---
2024-04-19 21:07:42,213 DEBUG Running
2024-04-19 21:07:42,213 DEBUG --- stderr ---
2024-04-19 21:07:42,213 DEBUG
2024-04-19 21:07:42,214 INFO
2024-04-19 21:07:42,214 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-df4b7b554-2gxfx -o=jsonpath={.status.containerStatuses[*].ready} | grep "true"
2024-04-19 21:07:42,214 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2024-04-19 21:07:42,523 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-19 21:07:42,524 INFO [loop_until]: OK (rc = 0)
2024-04-19 21:07:42,524 DEBUG --- stdout ---
2024-04-19 21:07:42,524 DEBUG true
2024-04-19 21:07:42,524 DEBUG --- stderr ---
2024-04-19 21:07:42,524 DEBUG
2024-04-19 21:07:42,524 INFO
2024-04-19 21:07:42,524 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-df4b7b554-2gxfx --output jsonpath={.status.startTime}
2024-04-19 21:07:42,524 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-19 21:07:42,834 INFO [loop_until]: OK (rc = 0)
2024-04-19 21:07:42,834 DEBUG --- stdout ---
2024-04-19 21:07:42,834 DEBUG 2024-04-19T21:06:39Z
2024-04-19 21:07:42,834 DEBUG --- stderr ---
2024-04-19 21:07:42,834 DEBUG
2024-04-19 21:07:42,835 INFO
2024-04-19 21:07:42,835 INFO ----- Check pod lodemon-df4b7b554-2gxfx filesystem is accessible -----
2024-04-19 21:07:43,596 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-19 21:07:43,596 INFO
2024-04-19 21:07:43,596 INFO ----------- Check pod lodemon-df4b7b554-2gxfx restart count -----------
2024-04-19 21:07:43,597 INFO
2024-04-19 21:07:43,597 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-df4b7b554-2gxfx --output jsonpath={.status.containerStatuses[*].restartCount}
2024-04-19 21:07:43,597 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-19 21:07:43,908 INFO [loop_until]: OK (rc = 0)
2024-04-19 21:07:43,908 DEBUG --- stdout ---
2024-04-19 21:07:43,908 DEBUG 0
2024-04-19 21:07:43,908 DEBUG --- stderr ---
2024-04-19 21:07:43,908 DEBUG
2024-04-19 21:07:43,908 INFO Pod lodemon-df4b7b554-2gxfx has been restarted 0 times.
2024-04-19 21:07:43,908 INFO
2024-04-19 21:07:43,908 INFO --------------------- Get expected number of pods ---------------------
2024-04-19 21:07:43,908 INFO
2024-04-19 21:07:43,908 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get deployments --selector app=lodemon --output jsonpath={.items[*].spec.replicas}
2024-04-19 21:07:43,909 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-19 21:07:44,212 INFO [loop_until]: OK (rc = 0)
2024-04-19 21:07:44,212 DEBUG --- stdout ---
2024-04-19 21:07:44,212 DEBUG 1
2024-04-19 21:07:44,212 DEBUG --- stderr ---
2024-04-19 21:07:44,212 DEBUG
2024-04-19 21:07:44,212 INFO
2024-04-19 21:07:44,212 INFO -------------- Waiting for 1 expected pod(s) to be ready --------------
2024-04-19 21:07:44,212 INFO
2024-04-19 21:07:44,213 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get deployments lodemon --output jsonpath="ready:{.status.readyReplicas} replicas:{.status.replicas}" | grep "ready:1 replicas:1"
2024-04-19 21:07:44,213 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0]
2024-04-19 21:07:44,555 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-19 21:07:44,555 INFO [loop_until]: OK (rc = 0)
2024-04-19 21:07:44,555 DEBUG --- stdout ---
2024-04-19 21:07:44,555 DEBUG ready:1 replicas:1
2024-04-19 21:07:44,555 DEBUG --- stderr ---
2024-04-19 21:07:44,555 DEBUG
2024-04-19 21:07:44,556 INFO Component lodemon is alive
2024-04-19 21:07:45,455 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/20240419_210744-after-lodemon-deploy/lodemon-df4b7b554-2gxfx.txt
2024-04-19 21:07:45,455 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/20240419_210744-after-lodemon-deploy/lodemon-df4b7b554-2gxfx.txt
2024-04-19 21:07:45,456 INFO Check pod logs for errors
2024-04-19 21:07:45,457 INFO
2024-04-19 21:07:45,457 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm exec lodemon-df4b7b554-2gxfx -- curl --fail --silent --show-error http://localhost:8080/monitoring/start
2024-04-19 21:07:45,457 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-19 21:07:50,436 INFO [loop_until]: OK (rc = 0)
2024-04-19 21:07:50,437 DEBUG --- stdout ---
2024-04-19 21:07:50,437 DEBUG {"Status": "OK", "Message": "Monitoring has been started"}
2024-04-19 21:07:50,437 DEBUG --- stderr ---
2024-04-19 21:07:50,437 DEBUG
2024-04-19 21:07:50,437 INFO
2024-04-19 21:07:50,437 INFO *************************************** Dumping pod list ***************************************
2024-04-19 21:07:50,438 INFO Dumping pod list to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/after-lodemon-deployment/_pod-list.txt
2024-04-19 21:07:51,009 INFO Dumping platform-config configmap to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/after-lodemon-deployment/_platform-config_configmap.txt
2024-04-19 21:07:52,368 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/after-lodemon-deployment/lodemon-df4b7b554-2gxfx.txt
2024-04-19 21:07:52,370 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/after-lodemon-deployment/lodemon-df4b7b554-2gxfx.txt
2024-04-19 21:07:52,371 INFO Check pod logs for errors
________________________________________________________________________________
[2024-04-19 21:07:52] Monitoring_start post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped