--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-11 01:05:08 - INFO: Interval for this Task has changed to 5s (5 seconds) 2025-09-11 01:05:08 - 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-11 01:05:08] Monitoring_start step1 : N/A ________________________________________________________________________________ 2025-09-11 01:06:08,554 INFO 2025-09-11 01:06:08,554 INFO **************************************** Start Lodemon **************************************** 2025-09-11 01:06:08,554 INFO 2025-09-11 01:06:08,554 INFO ***************************** Deploying Lodemon in namespace xlou ***************************** 2025-09-11 01:06:08,871 INFO 2025-09-11 01:06:08,871 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-config 2025-09-11 01:06:08,871 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1] 2025-09-11 01:06:09,176 INFO [loop_until]: OK (rc = 1) 2025-09-11 01:06:09,177 DEBUG --- stdout --- 2025-09-11 01:06:09,177 DEBUG 2025-09-11 01:06:09,177 DEBUG --- stderr --- 2025-09-11 01:06:09,177 DEBUG Error from server (NotFound): configmaps "lodemon-config" not found 2025-09-11 01:06:09,177 INFO 2025-09-11 01:06:09,177 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-11 01:06:09,177 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-09-11 01:06:09,465 INFO [loop_until]: OK (rc = 0) 2025-09-11 01:06:09,465 DEBUG --- stdout --- 2025-09-11 01:06:09,465 DEBUG configmap/lodemon-config created 2025-09-11 01:06:09,465 DEBUG --- stderr --- 2025-09-11 01:06:09,465 DEBUG 2025-09-11 01:06:09,466 INFO 2025-09-11 01:06:09,466 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-11 01:06:11,008 ERROR [run_command]: ERROR 2025-09-11 01:06:11,008 ERROR --- rc --- 2025-09-11 01:06:11,008 ERROR returned 1, expected to be in [0] 2025-09-11 01:06:11,008 ERROR --- stdout --- 2025-09-11 01:06:11,008 ERROR 2025-09-11 01:06:11,008 ERROR --- stderr --- 2025-09-11 01:06:11,008 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-11 01:06:11,008 INFO 2025-09-11 01:06:11,008 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-11 01:06:11,010 INFO 2025-09-11 01:06:11,010 INFO ------------- Deploy the lodestarbox with lodemon profile ------------- 2025-09-11 01:06:11,011 INFO 2025-09-11 01:06:11,011 INFO [run_command]: skaffold deploy --profile lodemon --config=/tmp/tmplj5csr_4 --status-check=true --namespace=xlou 2025-09-11 01:06:12,785 INFO Starting deploy... 2025-09-11 01:06:14,318 INFO - serviceaccount/k8s-svc-acct-lodemon created 2025-09-11 01:06:14,521 INFO - clusterrolebinding.rbac.authorization.k8s.io/k8s-svc-acct-crb-xlou created 2025-09-11 01:06:14,805 INFO - deployment.apps/lodemon created 2025-09-11 01:06:14,815 INFO Waiting for deployments to stabilize... 2025-09-11 01:06:20,099 INFO - xlou:deployment/lodemon: waiting for rollout to finish: 0 of 1 updated replicas are available... 2025-09-11 01:06:35,508 INFO - xlou:deployment/lodemon is ready. 2025-09-11 01:06:35,519 INFO Deployments stabilized in 20.694 seconds 2025-09-11 01:06:35,579 ERROR 2025-09-11 01:06:35,579 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-11 01:06:35,579 ERROR 2025-09-11 01:06:35,579 ERROR You may choose to opt out of this collection by running the following command: 2025-09-11 01:06:35,579 ERROR skaffold config set --global collect-metrics false 2025-09-11 01:06:35,580 INFO 2025-09-11 01:06:35,580 INFO --------------------- Get expected number of pods --------------------- 2025-09-11 01:06:35,580 INFO 2025-09-11 01:06:35,580 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-11 01:06:35,580 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-09-11 01:06:35,863 INFO [loop_until]: OK (rc = 0) 2025-09-11 01:06:35,863 DEBUG --- stdout --- 2025-09-11 01:06:35,863 DEBUG 1 2025-09-11 01:06:35,863 DEBUG --- stderr --- 2025-09-11 01:06:35,863 DEBUG 2025-09-11 01:06:35,863 INFO 2025-09-11 01:06:35,863 INFO -------------- Reloading pod list for product "lodemon" -------------- 2025-09-11 01:06:35,863 INFO 2025-09-11 01:06:35,863 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-11 01:06:35,863 INFO [loop_until]: (max_time=360.0, interval=10, expected_rc=[0] 2025-09-11 01:06:36,146 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found 2025-09-11 01:06:36,146 INFO [loop_until]: OK (rc = 0) 2025-09-11 01:06:36,146 DEBUG --- stdout --- 2025-09-11 01:06:36,146 DEBUG lodemon-55c764969c-44gmp 2025-09-11 01:06:36,146 DEBUG --- stderr --- 2025-09-11 01:06:36,146 DEBUG 2025-09-11 01:06:36,146 INFO 2025-09-11 01:06:36,146 INFO ------------ Check pod lodemon-55c764969c-44gmp is running ------------ 2025-09-11 01:06:36,146 INFO 2025-09-11 01:06:36,146 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-55c764969c-44gmp -o=jsonpath={.status.phase} | grep "Running" 2025-09-11 01:06:36,146 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2025-09-11 01:06:36,455 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-09-11 01:06:36,455 INFO [loop_until]: OK (rc = 0) 2025-09-11 01:06:36,455 DEBUG --- stdout --- 2025-09-11 01:06:36,455 DEBUG Running 2025-09-11 01:06:36,455 DEBUG --- stderr --- 2025-09-11 01:06:36,455 DEBUG 2025-09-11 01:06:36,455 INFO 2025-09-11 01:06:36,455 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-55c764969c-44gmp -o=jsonpath={.status.containerStatuses[*].ready} | grep "true" 2025-09-11 01:06:36,455 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2025-09-11 01:06:36,726 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-09-11 01:06:36,726 INFO [loop_until]: OK (rc = 0) 2025-09-11 01:06:36,726 DEBUG --- stdout --- 2025-09-11 01:06:36,726 DEBUG true 2025-09-11 01:06:36,726 DEBUG --- stderr --- 2025-09-11 01:06:36,726 DEBUG 2025-09-11 01:06:36,727 INFO 2025-09-11 01:06:36,727 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-55c764969c-44gmp --output jsonpath={.status.startTime} 2025-09-11 01:06:36,727 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-09-11 01:06:37,001 INFO [loop_until]: OK (rc = 0) 2025-09-11 01:06:37,001 DEBUG --- stdout --- 2025-09-11 01:06:37,001 DEBUG 2025-09-11T01:06:14Z 2025-09-11 01:06:37,001 DEBUG --- stderr --- 2025-09-11 01:06:37,001 DEBUG 2025-09-11 01:06:37,001 INFO 2025-09-11 01:06:37,001 INFO ----- Check pod lodemon-55c764969c-44gmp filesystem is accessible ----- 2025-09-11 01:06:37,645 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-09-11 01:06:37,645 INFO 2025-09-11 01:06:37,645 INFO ---------- Check pod lodemon-55c764969c-44gmp restart count ---------- 2025-09-11 01:06:37,646 INFO 2025-09-11 01:06:37,646 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-55c764969c-44gmp --output jsonpath={.status.containerStatuses[*].restartCount} 2025-09-11 01:06:37,646 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-09-11 01:06:37,926 INFO [loop_until]: OK (rc = 0) 2025-09-11 01:06:37,926 DEBUG --- stdout --- 2025-09-11 01:06:37,926 DEBUG 0 2025-09-11 01:06:37,926 DEBUG --- stderr --- 2025-09-11 01:06:37,926 DEBUG 2025-09-11 01:06:37,926 INFO Pod lodemon-55c764969c-44gmp has been restarted 0 times. 2025-09-11 01:06:37,927 INFO 2025-09-11 01:06:37,927 INFO --------------------- Get expected number of pods --------------------- 2025-09-11 01:06:37,927 INFO 2025-09-11 01:06:37,927 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-11 01:06:37,927 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-09-11 01:06:38,212 INFO [loop_until]: OK (rc = 0) 2025-09-11 01:06:38,212 DEBUG --- stdout --- 2025-09-11 01:06:38,212 DEBUG 1 2025-09-11 01:06:38,212 DEBUG --- stderr --- 2025-09-11 01:06:38,212 DEBUG 2025-09-11 01:06:38,212 INFO 2025-09-11 01:06:38,212 INFO -------------- Waiting for 1 expected pod(s) to be ready -------------- 2025-09-11 01:06:38,213 INFO 2025-09-11 01:06:38,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" 2025-09-11 01:06:38,213 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2025-09-11 01:06:38,485 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-09-11 01:06:38,485 INFO [loop_until]: OK (rc = 0) 2025-09-11 01:06:38,485 DEBUG --- stdout --- 2025-09-11 01:06:38,485 DEBUG ready:1 replicas:1 2025-09-11 01:06:38,485 DEBUG --- stderr --- 2025-09-11 01:06:38,485 DEBUG 2025-09-11 01:06:38,485 INFO Component lodemon is alive 2025-09-11 01:06:39,365 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250911_010638-after-lodemon-deploy/lodemon-55c764969c-44gmp.txt 2025-09-11 01:06:39,365 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250911_010638-after-lodemon-deploy/lodemon-55c764969c-44gmp.txt 2025-09-11 01:06:39,365 INFO Check pod logs for errors 2025-09-11 01:06:39,967 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250911_010638-after-lodemon-deploy/_cpu-info.txt 2025-09-11 01:06:39,967 INFO 2025-09-11 01:06:39,968 INFO [run_command]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm exec lodemon-55c764969c-44gmp -- curl --fail --silent -m 60 --connect-timeout 60 -X POST --show-error http://localhost:8080/monitoring/start 2025-09-11 01:06:40,524 INFO [run_command]: OK (rc = 0 - expected to be in [0]) 2025-09-11 01:06:40,524 DEBUG --- stdout --- 2025-09-11 01:06:40,524 DEBUG {"status":"monitoring started"} 2025-09-11 01:06:40,524 DEBUG --- stderr --- 2025-09-11 01:06:40,524 DEBUG 2025-09-11 01:06:40,524 INFO 2025-09-11 01:06:41,330 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_benchmark/pod-logs/stack/after-lodemon-deployment/lodemon-55c764969c-44gmp.txt 2025-09-11 01:06:41,330 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_benchmark/pod-logs/stack/after-lodemon-deployment/lodemon-55c764969c-44gmp.txt 2025-09-11 01:06:41,331 INFO Check pod logs for errors 2025-09-11 01:06:41,923 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-11 01:06:41] Monitoring_start post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped