--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-21 04:20:20 - INFO: Interval for this Task has changed to 5s (5 seconds)
2025-09-21 04:20:20 - 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-21 04:20:20] Monitoring_start step1 : N/A
________________________________________________________________________________
2025-09-21 04:21:20,170 INFO
2025-09-21 04:21:20,170 INFO **************************************** Start Lodemon ****************************************
2025-09-21 04:21:20,170 INFO
2025-09-21 04:21:20,170 INFO ***************************** Deploying Lodemon in namespace xlou *****************************
2025-09-21 04:21:20,455 INFO
2025-09-21 04:21:20,455 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-config
2025-09-21 04:21:20,455 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1]
2025-09-21 04:21:20,867 INFO [loop_until]: OK (rc = 0)
2025-09-21 04:21:20,867 DEBUG --- stdout ---
2025-09-21 04:21:20,867 DEBUG configmap "lodemon-config" deleted
2025-09-21 04:21:20,867 DEBUG --- stderr ---
2025-09-21 04:21:20,867 DEBUG
2025-09-21 04:21:20,868 INFO
2025-09-21 04:21:20,868 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-21 04:21:20,868 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2025-09-21 04:21:21,160 INFO [loop_until]: OK (rc = 0)
2025-09-21 04:21:21,160 DEBUG --- stdout ---
2025-09-21 04:21:21,160 DEBUG configmap/lodemon-config created
2025-09-21 04:21:21,160 DEBUG --- stderr ---
2025-09-21 04:21:21,160 DEBUG
2025-09-21 04:21:21,161 INFO
2025-09-21 04:21:21,161 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-21 04:21:22,716 ERROR [run_command]: ERROR
2025-09-21 04:21:22,716 ERROR --- rc ---
2025-09-21 04:21:22,716 ERROR returned 1, expected to be in [0]
2025-09-21 04:21:22,716 ERROR --- stdout ---
2025-09-21 04:21:22,716 ERROR
2025-09-21 04:21:22,716 ERROR --- stderr ---
2025-09-21 04:21:22,716 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-21 04:21:22,716 INFO
2025-09-21 04:21:22,716 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-21 04:21:22,719 INFO
2025-09-21 04:21:22,719 INFO ------------- Deploy the lodestarbox with lodemon profile -------------
2025-09-21 04:21:22,719 INFO
2025-09-21 04:21:22,720 INFO [run_command]: skaffold deploy --profile lodemon --config=/tmp/tmp47gsd26m --status-check=true --namespace=xlou
2025-09-21 04:21:24,298 INFO Starting deploy...
2025-09-21 04:21:25,591 INFO - serviceaccount/k8s-svc-acct-lodemon unchanged
2025-09-21 04:21:25,684 INFO - clusterrolebinding.rbac.authorization.k8s.io/k8s-svc-acct-crb-xlou unchanged
2025-09-21 04:21:25,918 INFO - deployment.apps/lodemon configured
2025-09-21 04:21:25,928 INFO Waiting for deployments to stabilize...
2025-09-21 04:21:31,261 INFO - xlou:deployment/lodemon: waiting for rollout to finish: 1 old replicas are pending termination...
2025-09-21 04:21:47,680 INFO - xlou:deployment/lodemon is ready.
2025-09-21 04:21:47,691 INFO Deployments stabilized in 21.757 seconds
2025-09-21 04:21:47,772 ERROR
2025-09-21 04:21:47,772 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-21 04:21:47,772 ERROR
2025-09-21 04:21:47,772 ERROR You may choose to opt out of this collection by running the following command:
2025-09-21 04:21:47,772 ERROR skaffold config set --global collect-metrics false
2025-09-21 04:21:47,772 INFO
2025-09-21 04:21:47,772 INFO --------------------- Get expected number of pods ---------------------
2025-09-21 04:21:47,773 INFO
2025-09-21 04:21:47,773 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-21 04:21:47,773 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2025-09-21 04:21:48,053 INFO [loop_until]: OK (rc = 0)
2025-09-21 04:21:48,053 DEBUG --- stdout ---
2025-09-21 04:21:48,053 DEBUG 1
2025-09-21 04:21:48,053 DEBUG --- stderr ---
2025-09-21 04:21:48,053 DEBUG
2025-09-21 04:21:48,053 INFO
2025-09-21 04:21:48,053 INFO -------------- Reloading pod list for product "lodemon" --------------
2025-09-21 04:21:48,054 INFO
2025-09-21 04:21:48,054 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-21 04:21:48,054 INFO [loop_until]: (max_time=360.0, interval=10, expected_rc=[0]
2025-09-21 04:21:48,335 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found
2025-09-21 04:21:48,335 INFO [loop_until]: OK (rc = 0)
2025-09-21 04:21:48,335 DEBUG --- stdout ---
2025-09-21 04:21:48,335 DEBUG lodemon-6fc57b65cd-l2kts
2025-09-21 04:21:48,335 DEBUG --- stderr ---
2025-09-21 04:21:48,335 DEBUG
2025-09-21 04:21:48,335 INFO
2025-09-21 04:21:48,335 INFO ------------ Check pod lodemon-6fc57b65cd-l2kts is running ------------
2025-09-21 04:21:48,336 INFO
2025-09-21 04:21:48,336 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-6fc57b65cd-l2kts -o=jsonpath={.status.phase} | grep "Running"
2025-09-21 04:21:48,336 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2025-09-21 04:21:48,640 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2025-09-21 04:21:48,641 INFO [loop_until]: OK (rc = 0)
2025-09-21 04:21:48,641 DEBUG --- stdout ---
2025-09-21 04:21:48,641 DEBUG Running
2025-09-21 04:21:48,641 DEBUG --- stderr ---
2025-09-21 04:21:48,641 DEBUG
2025-09-21 04:21:48,641 INFO
2025-09-21 04:21:48,641 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-6fc57b65cd-l2kts -o=jsonpath={.status.containerStatuses[*].ready} | grep "true"
2025-09-21 04:21:48,641 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2025-09-21 04:21:48,928 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2025-09-21 04:21:48,928 INFO [loop_until]: OK (rc = 0)
2025-09-21 04:21:48,928 DEBUG --- stdout ---
2025-09-21 04:21:48,928 DEBUG true
2025-09-21 04:21:48,929 DEBUG --- stderr ---
2025-09-21 04:21:48,929 DEBUG
2025-09-21 04:21:48,929 INFO
2025-09-21 04:21:48,929 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-6fc57b65cd-l2kts --output jsonpath={.status.startTime}
2025-09-21 04:21:48,929 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2025-09-21 04:21:49,200 INFO [loop_until]: OK (rc = 0)
2025-09-21 04:21:49,200 DEBUG --- stdout ---
2025-09-21 04:21:49,200 DEBUG 2025-09-21T04:21:26Z
2025-09-21 04:21:49,200 DEBUG --- stderr ---
2025-09-21 04:21:49,200 DEBUG
2025-09-21 04:21:49,200 INFO
2025-09-21 04:21:49,200 INFO ----- Check pod lodemon-6fc57b65cd-l2kts filesystem is accessible -----
2025-09-21 04:21:49,774 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2025-09-21 04:21:49,774 INFO
2025-09-21 04:21:49,774 INFO ---------- Check pod lodemon-6fc57b65cd-l2kts restart count ----------
2025-09-21 04:21:49,775 INFO
2025-09-21 04:21:49,775 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-6fc57b65cd-l2kts --output jsonpath={.status.containerStatuses[*].restartCount}
2025-09-21 04:21:49,775 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2025-09-21 04:21:50,048 INFO [loop_until]: OK (rc = 0)
2025-09-21 04:21:50,048 DEBUG --- stdout ---
2025-09-21 04:21:50,048 DEBUG 0
2025-09-21 04:21:50,048 DEBUG --- stderr ---
2025-09-21 04:21:50,048 DEBUG
2025-09-21 04:21:50,048 INFO Pod lodemon-6fc57b65cd-l2kts has been restarted 0 times.
2025-09-21 04:21:50,048 INFO
2025-09-21 04:21:50,049 INFO --------------------- Get expected number of pods ---------------------
2025-09-21 04:21:50,049 INFO
2025-09-21 04:21:50,049 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-21 04:21:50,049 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2025-09-21 04:21:50,326 INFO [loop_until]: OK (rc = 0)
2025-09-21 04:21:50,326 DEBUG --- stdout ---
2025-09-21 04:21:50,326 DEBUG 1
2025-09-21 04:21:50,326 DEBUG --- stderr ---
2025-09-21 04:21:50,326 DEBUG
2025-09-21 04:21:50,326 INFO
2025-09-21 04:21:50,326 INFO -------------- Waiting for 1 expected pod(s) to be ready --------------
2025-09-21 04:21:50,326 INFO
2025-09-21 04:21:50,326 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-21 04:21:50,326 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0]
2025-09-21 04:21:50,604 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2025-09-21 04:21:50,604 INFO [loop_until]: OK (rc = 0)
2025-09-21 04:21:50,605 DEBUG --- stdout ---
2025-09-21 04:21:50,605 DEBUG ready:1 replicas:1
2025-09-21 04:21:50,605 DEBUG --- stderr ---
2025-09-21 04:21:50,605 DEBUG
2025-09-21 04:21:50,605 INFO Component lodemon is alive
2025-09-21 04:21:51,442 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250921_042150-after-lodemon-deploy/lodemon-6fc57b65cd-l2kts.txt
2025-09-21 04:21:51,443 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250921_042150-after-lodemon-deploy/lodemon-6fc57b65cd-l2kts.txt
2025-09-21 04:21:51,443 INFO Check pod logs for errors
2025-09-21 04:21:52,049 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250921_042150-after-lodemon-deploy/_cpu-info.txt
2025-09-21 04:21:52,049 INFO
2025-09-21 04:21:52,050 INFO [run_command]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm exec lodemon-6fc57b65cd-l2kts -- curl --fail --silent -m 60 --connect-timeout 60 -X POST --show-error http://localhost:8080/monitoring/start
2025-09-21 04:21:52,626 INFO [run_command]: OK (rc = 0 - expected to be in [0])
2025-09-21 04:21:52,626 DEBUG --- stdout ---
2025-09-21 04:21:52,626 DEBUG {"status":"monitoring started"}
2025-09-21 04:21:52,626 DEBUG --- stderr ---
2025-09-21 04:21:52,626 DEBUG
2025-09-21 04:21:52,626 INFO
2025-09-21 04:21:53,418 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_benchmark/pod-logs/stack/after-lodemon-deployment/lodemon-6fc57b65cd-l2kts.txt
2025-09-21 04:21:53,418 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_benchmark/pod-logs/stack/after-lodemon-deployment/lodemon-6fc57b65cd-l2kts.txt
2025-09-21 04:21:53,418 INFO Check pod logs for errors
2025-09-21 04:21:54,017 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-21 04:21:54] Monitoring_start post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped