--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 05:44:40] Monitoring_start pre : Initialising task parameters ________________________________________________________________________________ task will be executed on controller (localhost) ________________________________________________________________________________ [2024-04-19 05:44:40] Monitoring_start step1 : N/A ________________________________________________________________________________ 2024-04-19 05:45:40,694 INFO 2024-04-19 05:45:40,694 INFO **************************************** Start Lodemon **************************************** 2024-04-19 05:45:40,823 INFO 2024-04-19 05:45:40,824 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-config 2024-04-19 05:45:40,824 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1] 2024-04-19 05:45:41,254 INFO [loop_until]: OK (rc = 0) 2024-04-19 05:45:41,254 DEBUG --- stdout --- 2024-04-19 05:45:41,254 DEBUG configmap "lodemon-config" deleted 2024-04-19 05:45:41,254 DEBUG --- stderr --- 2024-04-19 05:45:41,254 DEBUG 2024-04-19 05:45:41,254 INFO 2024-04-19 05:45:41,254 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 05:45:41,254 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-19 05:45:41,562 INFO [loop_until]: OK (rc = 0) 2024-04-19 05:45:41,563 DEBUG --- stdout --- 2024-04-19 05:45:41,563 DEBUG configmap/lodemon-config created 2024-04-19 05:45:41,563 DEBUG --- stderr --- 2024-04-19 05:45:41,563 DEBUG 2024-04-19 05:45:41,569 INFO 2024-04-19 05:45:41,569 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-deployments 2024-04-19 05:45:41,570 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1] 2024-04-19 05:45:41,981 INFO [loop_until]: OK (rc = 0) 2024-04-19 05:45:41,981 DEBUG --- stdout --- 2024-04-19 05:45:41,981 DEBUG configmap "lodemon-deployments" deleted 2024-04-19 05:45:41,981 DEBUG --- stderr --- 2024-04-19 05:45:41,981 DEBUG 2024-04-19 05:45:41,981 INFO 2024-04-19 05:45:41,981 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 05:45:41,981 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-19 05:45:42,266 INFO [loop_until]: OK (rc = 0) 2024-04-19 05:45:42,266 DEBUG --- stdout --- 2024-04-19 05:45:42,267 DEBUG configmap/lodemon-deployments created 2024-04-19 05:45:42,267 DEBUG --- stderr --- 2024-04-19 05:45:42,267 DEBUG 2024-04-19 05:45:42,267 INFO 2024-04-19 05:45:42,267 INFO ------------- Deploy the lodestarbox with lodemon profile ------------- 2024-04-19 05:45:42,268 INFO 2024-04-19 05:45:42,268 INFO [run_command]: skaffold deploy --profile lodemon --config=/tmp/tmpc_r6k8_c --status-check=true --namespace=xlou 2024-04-19 05:45:45,389 INFO Starting deploy... 2024-04-19 05:45:47,196 INFO - serviceaccount/k8s-svc-acct-lodemon unchanged 2024-04-19 05:45:47,297 INFO - clusterrolebinding.rbac.authorization.k8s.io/k8s-svc-acct-crb-xlou unchanged 2024-04-19 05:45:47,397 INFO - deployment.apps/lodemon configured 2024-04-19 05:45:47,498 INFO Waiting for deployments to stabilize... 2024-04-19 05:45:52,613 INFO - xlou:deployment/lodemon: creating container lodemon 2024-04-19 05:45:52,714 INFO - xlou:pod/lodemon-747d57dcb8-lclbf: creating container lodemon 2024-04-19 05:46:28,126 INFO - xlou:deployment/lodemon is ready. 2024-04-19 05:46:28,227 INFO Deployments stabilized in 40.694 seconds 2024-04-19 05:46:28,327 ERROR There is a new version (2.11.0) of Skaffold available. Download it from: 2024-04-19 05:46:28,328 ERROR https://github.com/GoogleContainerTools/skaffold/releases/tag/v2.11.0 2024-04-19 05:46:28,328 ERROR 2024-04-19 05:46:28,328 ERROR Help improve Skaffold with our 2-minute anonymous survey: run 'skaffold survey' 2024-04-19 05:46:28,328 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 05:46:28,328 ERROR 2024-04-19 05:46:28,328 ERROR You may choose to opt out of this collection by running the following command: 2024-04-19 05:46:28,328 ERROR skaffold config set --global collect-metrics false 2024-04-19 05:46:28,328 INFO 2024-04-19 05:46:28,328 INFO --------------------- Get expected number of pods --------------------- 2024-04-19 05:46:28,329 INFO 2024-04-19 05:46:28,329 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 05:46:28,329 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-19 05:46:28,636 INFO [loop_until]: OK (rc = 0) 2024-04-19 05:46:28,636 DEBUG --- stdout --- 2024-04-19 05:46:28,636 DEBUG 1 2024-04-19 05:46:28,636 DEBUG --- stderr --- 2024-04-19 05:46:28,636 DEBUG 2024-04-19 05:46:28,636 INFO 2024-04-19 05:46:28,636 INFO ---------------------------- Get pod list ---------------------------- 2024-04-19 05:46:28,637 INFO 2024-04-19 05:46:28,637 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 05:46:28,637 INFO [loop_until]: (max_time=180, interval=10, expected_rc=[0] 2024-04-19 05:46:29,023 INFO [loop_until]: Function succeeded after 0s (rc=0) - failed to find expected number of element: 1 - retry 2024-04-19 05:46:39,412 INFO [loop_until]: Function succeeded after 10s (rc=0) - failed to find expected number of element: 1 - retry 2024-04-19 05:46:49,783 INFO [loop_until]: Function succeeded after 21s (rc=0) - failed to find expected number of element: 1 - retry 2024-04-19 05:47:00,131 INFO [loop_until]: Function succeeded after 31s (rc=0) - expected number of elements found 2024-04-19 05:47:00,132 INFO [loop_until]: OK (rc = 0) 2024-04-19 05:47:00,133 DEBUG --- stdout --- 2024-04-19 05:47:00,133 DEBUG lodemon-747d57dcb8-lclbf 2024-04-19 05:47:00,133 DEBUG --- stderr --- 2024-04-19 05:47:00,133 DEBUG 2024-04-19 05:47:00,133 INFO 2024-04-19 05:47:00,133 INFO ------------ Check pod lodemon-747d57dcb8-lclbf is running ------------ 2024-04-19 05:47:00,133 INFO 2024-04-19 05:47:00,133 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-747d57dcb8-lclbf -o=jsonpath={.status.phase} | grep "Running" 2024-04-19 05:47:00,133 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2024-04-19 05:47:00,456 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-19 05:47:00,456 INFO [loop_until]: OK (rc = 0) 2024-04-19 05:47:00,456 DEBUG --- stdout --- 2024-04-19 05:47:00,456 DEBUG Running 2024-04-19 05:47:00,456 DEBUG --- stderr --- 2024-04-19 05:47:00,456 DEBUG 2024-04-19 05:47:00,457 INFO 2024-04-19 05:47:00,457 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-747d57dcb8-lclbf -o=jsonpath={.status.containerStatuses[*].ready} | grep "true" 2024-04-19 05:47:00,457 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2024-04-19 05:47:00,751 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-19 05:47:00,751 INFO [loop_until]: OK (rc = 0) 2024-04-19 05:47:00,751 DEBUG --- stdout --- 2024-04-19 05:47:00,751 DEBUG true 2024-04-19 05:47:00,751 DEBUG --- stderr --- 2024-04-19 05:47:00,751 DEBUG 2024-04-19 05:47:00,752 INFO 2024-04-19 05:47:00,752 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-747d57dcb8-lclbf --output jsonpath={.status.startTime} 2024-04-19 05:47:00,752 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-19 05:47:01,048 INFO [loop_until]: OK (rc = 0) 2024-04-19 05:47:01,048 DEBUG --- stdout --- 2024-04-19 05:47:01,048 DEBUG 2024-04-19T05:45:47Z 2024-04-19 05:47:01,048 DEBUG --- stderr --- 2024-04-19 05:47:01,048 DEBUG 2024-04-19 05:47:01,049 INFO 2024-04-19 05:47:01,049 INFO ----- Check pod lodemon-747d57dcb8-lclbf filesystem is accessible ----- 2024-04-19 05:47:01,810 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-19 05:47:01,810 INFO 2024-04-19 05:47:01,810 INFO ---------- Check pod lodemon-747d57dcb8-lclbf restart count ---------- 2024-04-19 05:47:01,811 INFO 2024-04-19 05:47:01,811 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-747d57dcb8-lclbf --output jsonpath={.status.containerStatuses[*].restartCount} 2024-04-19 05:47:01,811 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-19 05:47:02,104 INFO [loop_until]: OK (rc = 0) 2024-04-19 05:47:02,104 DEBUG --- stdout --- 2024-04-19 05:47:02,105 DEBUG 0 2024-04-19 05:47:02,105 DEBUG --- stderr --- 2024-04-19 05:47:02,105 DEBUG 2024-04-19 05:47:02,105 INFO Pod lodemon-747d57dcb8-lclbf has been restarted 0 times. 2024-04-19 05:47:02,105 INFO 2024-04-19 05:47:02,105 INFO --------------------- Get expected number of pods --------------------- 2024-04-19 05:47:02,105 INFO 2024-04-19 05:47:02,105 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 05:47:02,105 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-19 05:47:02,413 INFO [loop_until]: OK (rc = 0) 2024-04-19 05:47:02,413 DEBUG --- stdout --- 2024-04-19 05:47:02,413 DEBUG 1 2024-04-19 05:47:02,413 DEBUG --- stderr --- 2024-04-19 05:47:02,413 DEBUG 2024-04-19 05:47:02,413 INFO 2024-04-19 05:47:02,414 INFO -------------- Waiting for 1 expected pod(s) to be ready -------------- 2024-04-19 05:47:02,414 INFO 2024-04-19 05:47:02,414 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 05:47:02,414 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2024-04-19 05:47:02,748 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2024-04-19 05:47:02,749 INFO [loop_until]: OK (rc = 0) 2024-04-19 05:47:02,749 DEBUG --- stdout --- 2024-04-19 05:47:02,749 DEBUG ready:1 replicas:1 2024-04-19 05:47:02,749 DEBUG --- stderr --- 2024-04-19 05:47:02,749 DEBUG 2024-04-19 05:47:02,749 INFO Component lodemon is alive 2024-04-19 05:47:03,639 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/20240419_054702-after-lodemon-deploy/lodemon-747d57dcb8-lclbf.txt 2024-04-19 05:47:03,640 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/20240419_054702-after-lodemon-deploy/lodemon-747d57dcb8-lclbf.txt 2024-04-19 05:47:03,640 INFO Check pod logs for errors 2024-04-19 05:47:03,641 INFO 2024-04-19 05:47:03,641 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm exec lodemon-747d57dcb8-lclbf -- curl --fail --silent --show-error http://localhost:8080/monitoring/start 2024-04-19 05:47:03,641 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2024-04-19 05:47:08,606 INFO [loop_until]: OK (rc = 0) 2024-04-19 05:47:08,606 DEBUG --- stdout --- 2024-04-19 05:47:08,606 DEBUG {"Status": "OK", "Message": "Monitoring has been started"} 2024-04-19 05:47:08,606 DEBUG --- stderr --- 2024-04-19 05:47:08,606 DEBUG 2024-04-19 05:47:08,607 INFO 2024-04-19 05:47:08,607 INFO *************************************** Dumping pod list *************************************** 2024-04-19 05:47:08,607 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 05:47:09,127 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 05:47:10,441 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/after-lodemon-deployment/lodemon-747d57dcb8-lclbf.txt 2024-04-19 05:47:10,442 INFO Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/pod-logs/stack/after-lodemon-deployment/lodemon-747d57dcb8-lclbf.txt 2024-04-19 05:47:10,443 INFO Check pod logs for errors ________________________________________________________________________________ [2024-04-19 05:47:10] Monitoring_start post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped