--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/disk1/xslou/workshop/lodestar-fork/pyrock task will be executed on controller (localhost) ________________________________________________________________________________ [2025-03-19 15:08:51] Monitoring_start step1 : N/A ________________________________________________________________________________ 2025-03-19 15:09:51,736 INFO 2025-03-19 15:09:51,737 INFO **************************************** Start Lodemon **************************************** 2025-03-19 15:09:51,821 INFO 2025-03-19 15:09:51,821 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-config 2025-03-19 15:09:51,821 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1] 2025-03-19 15:09:52,223 INFO [loop_until]: OK (rc = 0) 2025-03-19 15:09:52,223 DEBUG --- stdout --- 2025-03-19 15:09:52,223 DEBUG configmap "lodemon-config" deleted 2025-03-19 15:09:52,223 DEBUG --- stderr --- 2025-03-19 15:09:52,223 DEBUG 2025-03-19 15:09:52,223 INFO 2025-03-19 15:09:52,223 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm create configmap lodemon-config --from-file=/mnt/disk1/xslou/workshop/lodestar-fork/config/config.yaml 2025-03-19 15:09:52,223 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-03-19 15:09:52,513 INFO [loop_until]: OK (rc = 0) 2025-03-19 15:09:52,513 DEBUG --- stdout --- 2025-03-19 15:09:52,513 DEBUG configmap/lodemon-config created 2025-03-19 15:09:52,513 DEBUG --- stderr --- 2025-03-19 15:09:52,513 DEBUG 2025-03-19 15:09:52,514 INFO 2025-03-19 15:09:52,515 INFO [run_command]: gcloud iam service-accounts add-iam-policy-binding pit-test@engineeringpit.iam.gserviceaccount.com --role roles/iam.workloadIdentityUser --member "serviceAccount:engineeringpit.svc.id.goog[xlou/k8s-svc-acct-lodemon]" 2025-03-19 15:09:54,097 ERROR [run_command]: ERROR 2025-03-19 15:09:54,097 ERROR --- rc --- 2025-03-19 15:09:54,097 ERROR returned 1, expected to be in [0] 2025-03-19 15:09:54,097 ERROR --- stdout --- 2025-03-19 15:09:54,097 ERROR 2025-03-19 15:09:54,097 ERROR --- stderr --- 2025-03-19 15:09:54,097 ERROR ERROR: (gcloud.iam.service-accounts.add-iam-policy-binding) PERMISSION_DENIED: Permission 'iam.serviceAccounts.setIamPolicy' denied on resource (or it may not exist). This command is authenticated as xiaosong.lou@pingidentity.com which is the active account specified by the [core/account] property. - '@type': type.googleapis.com/google.rpc.ErrorInfo domain: iam.googleapis.com metadata: permission: iam.serviceAccounts.setIamPolicy reason: IAM_PERMISSION_DENIED 2025-03-19 15:09:54,097 INFO 2025-03-19 15:09:54,097 WARNING could not add the iam-policy binding to the GSA: pit-test@engineeringpit.iam.gserviceaccount.com for the member k8s-svc-acct-lodemon service account, Identity Cloud metrics will not be present in the Lodemon report.The exception thrown was: Command error: rc 1 -- stdout: -- stderr:ERROR: (gcloud.iam.service-accounts.add-iam-policy-binding) PERMISSION_DENIED: Permission 'iam.serviceAccounts.setIamPolicy' denied on resource (or it may not exist). This command is authenticated as xiaosong.lou@pingidentity.com which is the active account specified by the [core/account] property. - '@type': type.googleapis.com/google.rpc.ErrorInfo domain: iam.googleapis.com metadata: permission: iam.serviceAccounts.setIamPolicy reason: IAM_PERMISSION_DENIED 2025-03-19 15:09:54,101 INFO 2025-03-19 15:09:54,101 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-deployments 2025-03-19 15:09:54,101 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1] 2025-03-19 15:09:54,536 INFO [loop_until]: OK (rc = 0) 2025-03-19 15:09:54,536 DEBUG --- stdout --- 2025-03-19 15:09:54,536 DEBUG configmap "lodemon-deployments" deleted 2025-03-19 15:09:54,536 DEBUG --- stderr --- 2025-03-19 15:09:54,536 DEBUG 2025-03-19 15:09:54,536 INFO 2025-03-19 15:09:54,536 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm create configmap lodemon-deployments --from-file=/mnt/disk1/xslou/workshop/lodestar-fork/config/deployments_to_monitor.yaml 2025-03-19 15:09:54,536 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-03-19 15:09:54,823 INFO [loop_until]: OK (rc = 0) 2025-03-19 15:09:54,823 DEBUG --- stdout --- 2025-03-19 15:09:54,824 DEBUG configmap/lodemon-deployments created 2025-03-19 15:09:54,824 DEBUG --- stderr --- 2025-03-19 15:09:54,824 DEBUG 2025-03-19 15:09:54,824 INFO 2025-03-19 15:09:54,824 INFO ------------- Deploy the lodestarbox with lodemon profile ------------- 2025-03-19 15:09:54,824 INFO 2025-03-19 15:09:54,824 INFO [run_command]: skaffold deploy --profile lodemon --config=/tmp/tmprxr0poqj --status-check=true --namespace=xlou 2025-03-19 15:09:57,342 INFO Starting deploy... 2025-03-19 15:09:58,606 INFO - serviceaccount/k8s-svc-acct-lodemon unchanged 2025-03-19 15:09:58,697 INFO - clusterrolebinding.rbac.authorization.k8s.io/k8s-svc-acct-crb-xlou unchanged 2025-03-19 15:09:58,919 INFO - deployment.apps/lodemon configured 2025-03-19 15:09:58,930 INFO Waiting for deployments to stabilize... 2025-03-19 15:10:04,193 INFO - xlou:deployment/lodemon: creating container lodemon 2025-03-19 15:10:04,203 INFO - xlou:pod/lodemon-5c4f5b9457-ftwm7: creating container lodemon 2025-03-19 15:10:49,620 INFO - xlou:deployment/lodemon is ready. 2025-03-19 15:10:49,630 INFO Deployments stabilized in 50.696 seconds 2025-03-19 15:10:49,732 ERROR There is a new version (2.14.2) of Skaffold available. Download it from: 2025-03-19 15:10:49,732 ERROR https://github.com/GoogleContainerTools/skaffold/releases/tag/v2.14.2 2025-03-19 15:10:49,732 ERROR 2025-03-19 15:10:49,732 ERROR Help improve Skaffold with our 2-minute anonymous survey: run 'skaffold survey' 2025-03-19 15:10:49,732 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 2025-03-19 15:10:49,732 ERROR 2025-03-19 15:10:49,732 ERROR You may choose to opt out of this collection by running the following command: 2025-03-19 15:10:49,732 ERROR skaffold config set --global collect-metrics false 2025-03-19 15:10:49,732 INFO 2025-03-19 15:10:49,732 INFO --------------------- Get expected number of pods --------------------- 2025-03-19 15:10:49,733 INFO 2025-03-19 15:10:49,733 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get deployments --selector app=lodemon --output jsonpath={.items[*].spec.replicas} 2025-03-19 15:10:49,733 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-03-19 15:10:50,009 INFO [loop_until]: OK (rc = 0) 2025-03-19 15:10:50,009 DEBUG --- stdout --- 2025-03-19 15:10:50,009 DEBUG 1 2025-03-19 15:10:50,009 DEBUG --- stderr --- 2025-03-19 15:10:50,009 DEBUG 2025-03-19 15:10:50,009 INFO 2025-03-19 15:10:50,009 INFO -------------- Reloading pod list for product "lodemon" -------------- 2025-03-19 15:10:50,010 INFO 2025-03-19 15:10:50,010 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 2025-03-19 15:10:50,010 INFO [loop_until]: (max_time=360.0, interval=10, expected_rc=[0] 2025-03-19 15:10:50,349 INFO [loop_until]: Function succeeded after 0s (rc=0) - failed to find expected number of element: 1 - retry 2025-03-19 15:11:00,691 INFO [loop_until]: Function succeeded after 10s (rc=0) - failed to find expected number of element: 1 - retry 2025-03-19 15:11:11,038 INFO [loop_until]: Function succeeded after 21s (rc=0) - failed to find expected number of element: 1 - retry 2025-03-19 15:11:21,316 INFO [loop_until]: Function succeeded after 31s (rc=0) - expected number of elements found 2025-03-19 15:11:21,316 INFO [loop_until]: OK (rc = 0) 2025-03-19 15:11:21,316 DEBUG --- stdout --- 2025-03-19 15:11:21,316 DEBUG lodemon-5c4f5b9457-ftwm7 2025-03-19 15:11:21,316 DEBUG --- stderr --- 2025-03-19 15:11:21,316 DEBUG 2025-03-19 15:11:21,316 INFO 2025-03-19 15:11:21,316 INFO ------------ Check pod lodemon-5c4f5b9457-ftwm7 is running ------------ 2025-03-19 15:11:21,316 INFO 2025-03-19 15:11:21,316 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-5c4f5b9457-ftwm7 -o=jsonpath={.status.phase} | grep "Running" 2025-03-19 15:11:21,316 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2025-03-19 15:11:21,614 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-03-19 15:11:21,614 INFO [loop_until]: OK (rc = 0) 2025-03-19 15:11:21,614 DEBUG --- stdout --- 2025-03-19 15:11:21,614 DEBUG Running 2025-03-19 15:11:21,614 DEBUG --- stderr --- 2025-03-19 15:11:21,614 DEBUG 2025-03-19 15:11:21,614 INFO 2025-03-19 15:11:21,614 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-5c4f5b9457-ftwm7 -o=jsonpath={.status.containerStatuses[*].ready} | grep "true" 2025-03-19 15:11:21,614 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2025-03-19 15:11:21,889 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-03-19 15:11:21,889 INFO [loop_until]: OK (rc = 0) 2025-03-19 15:11:21,889 DEBUG --- stdout --- 2025-03-19 15:11:21,889 DEBUG true 2025-03-19 15:11:21,889 DEBUG --- stderr --- 2025-03-19 15:11:21,889 DEBUG 2025-03-19 15:11:21,890 INFO 2025-03-19 15:11:21,890 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-5c4f5b9457-ftwm7 --output jsonpath={.status.startTime} 2025-03-19 15:11:21,890 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-03-19 15:11:22,166 INFO [loop_until]: OK (rc = 0) 2025-03-19 15:11:22,166 DEBUG --- stdout --- 2025-03-19 15:11:22,166 DEBUG 2025-03-19T15:09:58Z 2025-03-19 15:11:22,166 DEBUG --- stderr --- 2025-03-19 15:11:22,166 DEBUG 2025-03-19 15:11:22,166 INFO 2025-03-19 15:11:22,166 INFO ----- Check pod lodemon-5c4f5b9457-ftwm7 filesystem is accessible ----- 2025-03-19 15:11:22,900 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-03-19 15:11:22,900 INFO 2025-03-19 15:11:22,900 INFO ---------- Check pod lodemon-5c4f5b9457-ftwm7 restart count ---------- 2025-03-19 15:11:22,901 INFO 2025-03-19 15:11:22,901 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-5c4f5b9457-ftwm7 --output jsonpath={.status.containerStatuses[*].restartCount} 2025-03-19 15:11:22,901 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-03-19 15:11:23,172 INFO [loop_until]: OK (rc = 0) 2025-03-19 15:11:23,172 DEBUG --- stdout --- 2025-03-19 15:11:23,172 DEBUG 0 2025-03-19 15:11:23,172 DEBUG --- stderr --- 2025-03-19 15:11:23,172 DEBUG 2025-03-19 15:11:23,172 INFO Pod lodemon-5c4f5b9457-ftwm7 has been restarted 0 times. 2025-03-19 15:11:23,172 INFO 2025-03-19 15:11:23,172 INFO --------------------- Get expected number of pods --------------------- 2025-03-19 15:11:23,172 INFO 2025-03-19 15:11:23,172 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get deployments --selector app=lodemon --output jsonpath={.items[*].spec.replicas} 2025-03-19 15:11:23,172 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-03-19 15:11:23,447 INFO [loop_until]: OK (rc = 0) 2025-03-19 15:11:23,447 DEBUG --- stdout --- 2025-03-19 15:11:23,447 DEBUG 1 2025-03-19 15:11:23,447 DEBUG --- stderr --- 2025-03-19 15:11:23,447 DEBUG 2025-03-19 15:11:23,448 INFO 2025-03-19 15:11:23,448 INFO -------------- Waiting for 1 expected pod(s) to be ready -------------- 2025-03-19 15:11:23,448 INFO 2025-03-19 15:11:23,448 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" 2025-03-19 15:11:23,448 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2025-03-19 15:11:23,721 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-03-19 15:11:23,721 INFO [loop_until]: OK (rc = 0) 2025-03-19 15:11:23,721 DEBUG --- stdout --- 2025-03-19 15:11:23,721 DEBUG ready:1 replicas:1 2025-03-19 15:11:23,721 DEBUG --- stderr --- 2025-03-19 15:11:23,721 DEBUG 2025-03-19 15:11:23,721 INFO Component lodemon is alive 2025-03-19 15:11:24,525 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250319_151123-after-lodemon-deploy/lodemon-5c4f5b9457-ftwm7.txt 2025-03-19 15:11:24,526 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250319_151123-after-lodemon-deploy/lodemon-5c4f5b9457-ftwm7.txt 2025-03-19 15:11:24,526 INFO Check pod logs for errors 2025-03-19 15:11:24,526 INFO 2025-03-19 15:11:24,526 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm exec lodemon-5c4f5b9457-ftwm7 -- curl --fail --silent --show-error http://localhost:8080/monitoring/start 2025-03-19 15:11:24,526 INFO [loop_until]: (max_time=600, interval=5, expected_rc=[0] 2025-03-19 15:11:25,256 INFO [loop_until]: OK (rc = 0) 2025-03-19 15:11:25,256 DEBUG --- stdout --- 2025-03-19 15:11:25,256 DEBUG {"Status": "OK", "Message": "Monitoring has been started"} 2025-03-19 15:11:25,256 DEBUG --- stderr --- 2025-03-19 15:11:25,256 DEBUG 2025-03-19 15:11:26,039 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_access_token/pod-logs/stack/after-lodemon-deployment/lodemon-5c4f5b9457-ftwm7.txt 2025-03-19 15:11:26,039 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_access_token/pod-logs/stack/after-lodemon-deployment/lodemon-5c4f5b9457-ftwm7.txt 2025-03-19 15:11:26,039 INFO Check pod logs for errors ________________________________________________________________________________ [2025-03-19 15:11:26] Monitoring_start post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped