--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-12 21:00:17] Monitoring_start pre : Initialising task parameters
________________________________________________________________________________
task will be executed on controller (localhost)
________________________________________________________________________________
[2024-04-12 21:00:17] Monitoring_start step1 : N/A
________________________________________________________________________________
2024-04-12 21:01:17,210 INFO
2024-04-12 21:01:17,211 INFO **************************************** Start Lodemon ****************************************
2024-04-12 21:01:17,413 INFO
2024-04-12 21:01:17,414 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-config
2024-04-12 21:01:17,414 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1]
2024-04-12 21:01:17,851 INFO [loop_until]: OK (rc = 0)
2024-04-12 21:01:17,851 DEBUG --- stdout ---
2024-04-12 21:01:17,851 DEBUG configmap "lodemon-config" deleted
2024-04-12 21:01:17,851 DEBUG --- stderr ---
2024-04-12 21:01:17,851 DEBUG
2024-04-12 21:01:17,852 INFO
2024-04-12 21:01:17,852 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-12 21:01:17,852 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-12 21:01:18,178 INFO [loop_until]: OK (rc = 0)
2024-04-12 21:01:18,180 DEBUG --- stdout ---
2024-04-12 21:01:18,180 DEBUG configmap/lodemon-config created
2024-04-12 21:01:18,180 DEBUG --- stderr ---
2024-04-12 21:01:18,180 DEBUG
2024-04-12 21:01:18,188 INFO
2024-04-12 21:01:18,189 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-deployments
2024-04-12 21:01:18,189 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1]
2024-04-12 21:01:18,618 INFO [loop_until]: OK (rc = 0)
2024-04-12 21:01:18,618 DEBUG --- stdout ---
2024-04-12 21:01:18,619 DEBUG configmap "lodemon-deployments" deleted
2024-04-12 21:01:18,619 DEBUG --- stderr ---
2024-04-12 21:01:18,619 DEBUG
2024-04-12 21:01:18,619 INFO
2024-04-12 21:01:18,619 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-12 21:01:18,619 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-12 21:01:18,909 INFO [loop_until]: OK (rc = 0)
2024-04-12 21:01:18,910 DEBUG --- stdout ---
2024-04-12 21:01:18,910 DEBUG configmap/lodemon-deployments created
2024-04-12 21:01:18,910 DEBUG --- stderr ---
2024-04-12 21:01:18,910 DEBUG
2024-04-12 21:01:18,910 INFO
2024-04-12 21:01:18,910 INFO ------------- Deploy the lodestarbox with lodemon profile -------------
2024-04-12 21:01:18,911 INFO
2024-04-12 21:01:18,911 INFO [run_command]: skaffold deploy --profile lodemon --config=/tmp/tmpxfq6j_eh --status-check=true --namespace=xlou
2024-04-12 21:01:22,127 INFO Starting deploy...
2024-04-12 21:01:23,932 INFO - serviceaccount/k8s-svc-acct-lodemon unchanged
2024-04-12 21:01:24,033 INFO - clusterrolebinding.rbac.authorization.k8s.io/k8s-svc-acct-crb-xlou unchanged
2024-04-12 21:01:24,134 INFO - deployment.apps/lodemon configured
2024-04-12 21:01:24,235 INFO Waiting for deployments to stabilize...
2024-04-12 21:01:29,451 INFO - xlou:deployment/lodemon: creating container lodemon
2024-04-12 21:01:29,552 INFO - xlou:pod/lodemon-8dc49bd56-qr24k: creating container lodemon
2024-04-12 21:01:44,406 INFO - xlou:deployment/lodemon: waiting for rollout to finish: 1 old replicas are pending termination...
2024-04-12 21:02:04,868 INFO - xlou:deployment/lodemon is ready.
2024-04-12 21:02:04,969 INFO Deployments stabilized in 40.692 seconds
2024-04-12 21:02:05,070 ERROR There is a new version (2.11.0) of Skaffold available. Download it from:
2024-04-12 21:02:05,070 ERROR https://github.com/GoogleContainerTools/skaffold/releases/tag/v2.11.0
2024-04-12 21:02:05,070 ERROR
2024-04-12 21:02:05,070 ERROR Help improve Skaffold with our 2-minute anonymous survey: run 'skaffold survey'
2024-04-12 21:02:05,070 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-12 21:02:05,070 ERROR
2024-04-12 21:02:05,070 ERROR You may choose to opt out of this collection by running the following command:
2024-04-12 21:02:05,070 ERROR skaffold config set --global collect-metrics false
2024-04-12 21:02:05,070 INFO
2024-04-12 21:02:05,071 INFO --------------------- Get expected number of pods ---------------------
2024-04-12 21:02:05,071 INFO
2024-04-12 21:02:05,071 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-12 21:02:05,071 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-12 21:02:05,379 INFO [loop_until]: OK (rc = 0)
2024-04-12 21:02:05,379 DEBUG --- stdout ---
2024-04-12 21:02:05,379 DEBUG 1
2024-04-12 21:02:05,379 DEBUG --- stderr ---
2024-04-12 21:02:05,379 DEBUG
2024-04-12 21:02:05,380 INFO
2024-04-12 21:02:05,380 INFO ---------------------------- Get pod list ----------------------------
2024-04-12 21:02:05,380 INFO
2024-04-12 21:02:05,380 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-12 21:02:05,380 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0]
2024-04-12 21:02:05,740 INFO [loop_until]: Function succeeded after 0s (rc=0) - failed to find expected number of element: 1 - retry
2024-04-12 21:02:16,126 INFO [loop_until]: Function succeeded after 10s (rc=0) - failed to find expected number of element: 1 - retry
2024-04-12 21:02:26,541 INFO [loop_until]: Function succeeded after 21s (rc=0) - failed to find expected number of element: 1 - retry
2024-04-12 21:02:36,879 INFO [loop_until]: Function succeeded after 31s (rc=0) - expected number of elements found
2024-04-12 21:02:36,879 INFO [loop_until]: OK (rc = 0)
2024-04-12 21:02:36,879 DEBUG --- stdout ---
2024-04-12 21:02:36,879 DEBUG lodemon-8dc49bd56-qr24k
2024-04-12 21:02:36,879 DEBUG --- stderr ---
2024-04-12 21:02:36,879 DEBUG
2024-04-12 21:02:36,880 INFO
2024-04-12 21:02:36,880 INFO ------------ Check pod lodemon-8dc49bd56-qr24k is running ------------
2024-04-12 21:02:36,880 INFO
2024-04-12 21:02:36,880 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-8dc49bd56-qr24k -o=jsonpath={.status.phase} | grep "Running"
2024-04-12 21:02:36,880 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2024-04-12 21:02:37,218 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-12 21:02:37,218 INFO [loop_until]: OK (rc = 0)
2024-04-12 21:02:37,218 DEBUG --- stdout ---
2024-04-12 21:02:37,218 DEBUG Running
2024-04-12 21:02:37,218 DEBUG --- stderr ---
2024-04-12 21:02:37,218 DEBUG
2024-04-12 21:02:37,219 INFO
2024-04-12 21:02:37,219 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-8dc49bd56-qr24k -o=jsonpath={.status.containerStatuses[*].ready} | grep "true"
2024-04-12 21:02:37,219 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2024-04-12 21:02:37,575 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-12 21:02:37,576 INFO [loop_until]: OK (rc = 0)
2024-04-12 21:02:37,576 DEBUG --- stdout ---
2024-04-12 21:02:37,576 DEBUG true
2024-04-12 21:02:37,576 DEBUG --- stderr ---
2024-04-12 21:02:37,576 DEBUG
2024-04-12 21:02:37,576 INFO
2024-04-12 21:02:37,576 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-8dc49bd56-qr24k --output jsonpath={.status.startTime}
2024-04-12 21:02:37,576 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-12 21:02:37,875 INFO [loop_until]: OK (rc = 0)
2024-04-12 21:02:37,875 DEBUG --- stdout ---
2024-04-12 21:02:37,875 DEBUG 2024-04-12T21:01:24Z
2024-04-12 21:02:37,875 DEBUG --- stderr ---
2024-04-12 21:02:37,875 DEBUG
2024-04-12 21:02:37,876 INFO
2024-04-12 21:02:37,876 INFO ----- Check pod lodemon-8dc49bd56-qr24k filesystem is accessible -----
2024-04-12 21:02:38,644 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-12 21:02:38,644 INFO
2024-04-12 21:02:38,644 INFO ----------- Check pod lodemon-8dc49bd56-qr24k restart count -----------
2024-04-12 21:02:38,644 INFO
2024-04-12 21:02:38,644 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-8dc49bd56-qr24k --output jsonpath={.status.containerStatuses[*].restartCount}
2024-04-12 21:02:38,644 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-12 21:02:38,942 INFO [loop_until]: OK (rc = 0)
2024-04-12 21:02:38,942 DEBUG --- stdout ---
2024-04-12 21:02:38,942 DEBUG 0
2024-04-12 21:02:38,942 DEBUG --- stderr ---
2024-04-12 21:02:38,942 DEBUG
2024-04-12 21:02:38,942 INFO Pod lodemon-8dc49bd56-qr24k has been restarted 0 times.
2024-04-12 21:02:38,943 INFO
2024-04-12 21:02:38,943 INFO --------------------- Get expected number of pods ---------------------
2024-04-12 21:02:38,943 INFO
2024-04-12 21:02:38,943 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-12 21:02:38,943 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-12 21:02:39,248 INFO [loop_until]: OK (rc = 0)
2024-04-12 21:02:39,248 DEBUG --- stdout ---
2024-04-12 21:02:39,248 DEBUG 1
2024-04-12 21:02:39,248 DEBUG --- stderr ---
2024-04-12 21:02:39,248 DEBUG
2024-04-12 21:02:39,248 INFO
2024-04-12 21:02:39,248 INFO -------------- Waiting for 1 expected pod(s) to be ready --------------
2024-04-12 21:02:39,248 INFO
2024-04-12 21:02:39,249 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-12 21:02:39,249 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0]
2024-04-12 21:02:39,549 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-04-12 21:02:39,549 INFO [loop_until]: OK (rc = 0)
2024-04-12 21:02:39,550 DEBUG --- stdout ---
2024-04-12 21:02:39,551 DEBUG ready:1 replicas:1
2024-04-12 21:02:39,551 DEBUG --- stderr ---
2024-04-12 21:02:39,551 DEBUG
2024-04-12 21:02:39,551 INFO Component lodemon is alive
2024-04-12 21:02:40,410 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/20240412_210239-after-lodemon-deploy/lodemon-8dc49bd56-qr24k.txt
2024-04-12 21:02:40,411 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/20240412_210239-after-lodemon-deploy/lodemon-8dc49bd56-qr24k.txt
2024-04-12 21:02:40,411 INFO Check pod logs for errors
2024-04-12 21:02:40,412 INFO
2024-04-12 21:02:40,412 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm exec lodemon-8dc49bd56-qr24k -- curl --fail --silent --show-error http://localhost:8080/monitoring/start
2024-04-12 21:02:40,412 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-04-12 21:02:45,347 INFO [loop_until]: OK (rc = 0)
2024-04-12 21:02:45,349 DEBUG --- stdout ---
2024-04-12 21:02:45,349 DEBUG {"Status": "OK", "Message": "Monitoring has been started"}
2024-04-12 21:02:45,349 DEBUG --- stderr ---
2024-04-12 21:02:45,349 DEBUG
2024-04-12 21:02:45,350 INFO
2024-04-12 21:02:45,350 INFO *************************************** Dumping pod list ***************************************
2024-04-12 21:02:45,350 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-12 21:02:45,858 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-12 21:02:47,199 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/after-lodemon-deployment/lodemon-8dc49bd56-qr24k.txt
2024-04-12 21:02:47,200 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/after-lodemon-deployment/lodemon-8dc49bd56-qr24k.txt
2024-04-12 21:02:47,200 INFO Check pod logs for errors
________________________________________________________________________________
[2024-04-12 21:02:47] Monitoring_start post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped