--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-09-15 17:15:45 - INFO: Interval for this Task has changed to 5s (5 seconds) 2025-09-15 17:15:45 - INFO: interval was set to Task default because it was unset, based on self.timeout value because task is allowed to stop by itself ________________________________________________________________________________ [2025-09-15 17:15:45] Monitoring_start step1 : N/A ________________________________________________________________________________ 2025-09-15 17:16:45,150 INFO 2025-09-15 17:16:45,150 INFO **************************************** Start Lodemon **************************************** 2025-09-15 17:16:45,151 INFO 2025-09-15 17:16:45,151 INFO ***************************** Deploying Lodemon in namespace xlou ***************************** 2025-09-15 17:16:45,465 INFO 2025-09-15 17:16:45,465 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-config 2025-09-15 17:16:45,465 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1] 2025-09-15 17:16:45,879 INFO [loop_until]: OK (rc = 0) 2025-09-15 17:16:45,879 DEBUG --- stdout --- 2025-09-15 17:16:45,879 DEBUG configmap "lodemon-config" deleted 2025-09-15 17:16:45,880 DEBUG --- stderr --- 2025-09-15 17:16:45,880 DEBUG 2025-09-15 17:16:45,880 INFO 2025-09-15 17:16:45,880 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/ext/lodestarbox/lodemon/kustomize/lodemon/lodemon_config.yaml 2025-09-15 17:16:45,880 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-09-15 17:16:46,216 INFO [loop_until]: OK (rc = 0) 2025-09-15 17:16:46,216 DEBUG --- stdout --- 2025-09-15 17:16:46,216 DEBUG configmap/lodemon-config created 2025-09-15 17:16:46,216 DEBUG --- stderr --- 2025-09-15 17:16:46,216 DEBUG 2025-09-15 17:16:46,217 INFO 2025-09-15 17:16:46,218 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-09-15 17:16:47,881 ERROR [run_command]: ERROR 2025-09-15 17:16:47,881 ERROR --- rc --- 2025-09-15 17:16:47,881 ERROR returned 1, expected to be in [0] 2025-09-15 17:16:47,881 ERROR --- stdout --- 2025-09-15 17:16:47,881 ERROR 2025-09-15 17:16:47,881 ERROR --- stderr --- 2025-09-15 17:16:47,881 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-09-15 17:16:47,881 INFO 2025-09-15 17:16:47,881 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-09-15 17:16:47,884 INFO 2025-09-15 17:16:47,884 INFO ------------- Deploy the lodestarbox with lodemon profile ------------- 2025-09-15 17:16:47,884 INFO 2025-09-15 17:16:47,884 INFO [run_command]: skaffold deploy --profile lodemon --config=/tmp/tmpczczx3bw --status-check=true --namespace=xlou 2025-09-15 17:16:50,443 INFO Starting deploy... 2025-09-15 17:16:51,767 INFO - serviceaccount/k8s-svc-acct-lodemon unchanged 2025-09-15 17:16:51,858 INFO - clusterrolebinding.rbac.authorization.k8s.io/k8s-svc-acct-crb-xlou unchanged 2025-09-15 17:16:52,093 INFO - deployment.apps/lodemon configured 2025-09-15 17:16:52,104 INFO Waiting for deployments to stabilize... 2025-09-15 17:16:57,425 INFO - xlou:deployment/lodemon: creating container lodemon 2025-09-15 17:16:57,435 INFO - xlou:pod/lodemon-5b7b44c695-55tmf: creating container lodemon 2025-09-15 17:17:43,850 INFO - xlou:deployment/lodemon is ready. 2025-09-15 17:17:43,860 INFO Deployments stabilized in 51.746 seconds 2025-09-15 17:17:43,952 ERROR 2025-09-15 17:17:43,952 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-09-15 17:17:43,952 ERROR 2025-09-15 17:17:43,953 ERROR You may choose to opt out of this collection by running the following command: 2025-09-15 17:17:43,953 ERROR skaffold config set --global collect-metrics false 2025-09-15 17:17:43,953 INFO 2025-09-15 17:17:43,953 INFO --------------------- Get expected number of pods --------------------- 2025-09-15 17:17:43,953 INFO 2025-09-15 17:17:43,953 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-09-15 17:17:43,953 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-09-15 17:17:44,239 INFO [loop_until]: OK (rc = 0) 2025-09-15 17:17:44,239 DEBUG --- stdout --- 2025-09-15 17:17:44,239 DEBUG 1 2025-09-15 17:17:44,239 DEBUG --- stderr --- 2025-09-15 17:17:44,239 DEBUG 2025-09-15 17:17:44,239 INFO 2025-09-15 17:17:44,239 INFO -------------- Reloading pod list for product "lodemon" -------------- 2025-09-15 17:17:44,240 INFO 2025-09-15 17:17:44,240 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-09-15 17:17:44,240 INFO [loop_until]: (max_time=360.0, interval=10, expected_rc=[0] 2025-09-15 17:17:44,572 INFO [loop_until]: Function succeeded after 0s (rc=0) - failed to find expected number of element: 1 - retry 2025-09-15 17:17:54,862 INFO [loop_until]: Function succeeded after 10s (rc=0) - expected number of elements found 2025-09-15 17:17:54,862 INFO [loop_until]: OK (rc = 0) 2025-09-15 17:17:54,862 DEBUG --- stdout --- 2025-09-15 17:17:54,862 DEBUG lodemon-5b7b44c695-55tmf 2025-09-15 17:17:54,862 DEBUG --- stderr --- 2025-09-15 17:17:54,862 DEBUG 2025-09-15 17:17:54,862 INFO 2025-09-15 17:17:54,862 INFO ------------ Check pod lodemon-5b7b44c695-55tmf is running ------------ 2025-09-15 17:17:54,862 INFO 2025-09-15 17:17:54,862 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-5b7b44c695-55tmf -o=jsonpath={.status.phase} | grep "Running" 2025-09-15 17:17:54,862 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2025-09-15 17:17:55,182 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-09-15 17:17:55,182 INFO [loop_until]: OK (rc = 0) 2025-09-15 17:17:55,182 DEBUG --- stdout --- 2025-09-15 17:17:55,182 DEBUG Running 2025-09-15 17:17:55,182 DEBUG --- stderr --- 2025-09-15 17:17:55,182 DEBUG 2025-09-15 17:17:55,182 INFO 2025-09-15 17:17:55,182 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-5b7b44c695-55tmf -o=jsonpath={.status.containerStatuses[*].ready} | grep "true" 2025-09-15 17:17:55,182 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2025-09-15 17:17:55,458 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-09-15 17:17:55,458 INFO [loop_until]: OK (rc = 0) 2025-09-15 17:17:55,458 DEBUG --- stdout --- 2025-09-15 17:17:55,458 DEBUG true 2025-09-15 17:17:55,458 DEBUG --- stderr --- 2025-09-15 17:17:55,458 DEBUG 2025-09-15 17:17:55,459 INFO 2025-09-15 17:17:55,459 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-5b7b44c695-55tmf --output jsonpath={.status.startTime} 2025-09-15 17:17:55,459 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-09-15 17:17:55,740 INFO [loop_until]: OK (rc = 0) 2025-09-15 17:17:55,740 DEBUG --- stdout --- 2025-09-15 17:17:55,741 DEBUG 2025-09-15T17:16:52Z 2025-09-15 17:17:55,741 DEBUG --- stderr --- 2025-09-15 17:17:55,741 DEBUG 2025-09-15 17:17:55,741 INFO 2025-09-15 17:17:55,741 INFO ----- Check pod lodemon-5b7b44c695-55tmf filesystem is accessible ----- 2025-09-15 17:17:56,313 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-09-15 17:17:56,313 INFO 2025-09-15 17:17:56,313 INFO ---------- Check pod lodemon-5b7b44c695-55tmf restart count ---------- 2025-09-15 17:17:56,313 INFO 2025-09-15 17:17:56,313 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-5b7b44c695-55tmf --output jsonpath={.status.containerStatuses[*].restartCount} 2025-09-15 17:17:56,313 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-09-15 17:17:56,590 INFO [loop_until]: OK (rc = 0) 2025-09-15 17:17:56,590 DEBUG --- stdout --- 2025-09-15 17:17:56,590 DEBUG 0 2025-09-15 17:17:56,590 DEBUG --- stderr --- 2025-09-15 17:17:56,590 DEBUG 2025-09-15 17:17:56,590 INFO Pod lodemon-5b7b44c695-55tmf has been restarted 0 times. 2025-09-15 17:17:56,590 INFO 2025-09-15 17:17:56,590 INFO --------------------- Get expected number of pods --------------------- 2025-09-15 17:17:56,590 INFO 2025-09-15 17:17:56,591 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-09-15 17:17:56,591 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-09-15 17:17:56,880 INFO [loop_until]: OK (rc = 0) 2025-09-15 17:17:56,880 DEBUG --- stdout --- 2025-09-15 17:17:56,880 DEBUG 1 2025-09-15 17:17:56,880 DEBUG --- stderr --- 2025-09-15 17:17:56,880 DEBUG 2025-09-15 17:17:56,880 INFO 2025-09-15 17:17:56,880 INFO -------------- Waiting for 1 expected pod(s) to be ready -------------- 2025-09-15 17:17:56,880 INFO 2025-09-15 17:17:56,880 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-09-15 17:17:56,880 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2025-09-15 17:17:57,164 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-09-15 17:17:57,164 INFO [loop_until]: OK (rc = 0) 2025-09-15 17:17:57,164 DEBUG --- stdout --- 2025-09-15 17:17:57,164 DEBUG ready:1 replicas:1 2025-09-15 17:17:57,164 DEBUG --- stderr --- 2025-09-15 17:17:57,164 DEBUG 2025-09-15 17:17:57,164 INFO Component lodemon is alive 2025-09-15 17:17:58,059 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250915_171757-after-lodemon-deploy/lodemon-5b7b44c695-55tmf.txt 2025-09-15 17:17:58,059 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250915_171757-after-lodemon-deploy/lodemon-5b7b44c695-55tmf.txt 2025-09-15 17:17:58,059 INFO Check pod logs for errors 2025-09-15 17:17:58,666 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250915_171757-after-lodemon-deploy/_cpu-info.txt 2025-09-15 17:17:58,666 INFO 2025-09-15 17:17:58,667 INFO [run_command]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm exec lodemon-5b7b44c695-55tmf -- curl --fail --silent -m 60 --connect-timeout 60 -X POST --show-error http://localhost:8080/monitoring/start 2025-09-15 17:17:59,232 INFO [run_command]: OK (rc = 0 - expected to be in [0]) 2025-09-15 17:17:59,232 DEBUG --- stdout --- 2025-09-15 17:17:59,232 DEBUG {"status":"monitoring started"} 2025-09-15 17:17:59,232 DEBUG --- stderr --- 2025-09-15 17:17:59,232 DEBUG 2025-09-15 17:17:59,232 INFO 2025-09-15 17:18:00,047 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_benchmark/pod-logs/stack/after-lodemon-deployment/lodemon-5b7b44c695-55tmf.txt 2025-09-15 17:18:00,048 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_benchmark/pod-logs/stack/after-lodemon-deployment/lodemon-5b7b44c695-55tmf.txt 2025-09-15 17:18:00,048 INFO Check pod logs for errors 2025-09-15 17:18:00,649 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_benchmark/pod-logs/stack/after-lodemon-deployment/_cpu-info.txt ________________________________________________________________________________ [2025-09-15 17:18:00] Monitoring_start post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped