--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-15 18:14:06] Monitoring_start step1 : N/A ________________________________________________________________________________ 2025-03-15 18:15:06,869 INFO 2025-03-15 18:15:06,870 INFO **************************************** Start Lodemon **************************************** 2025-03-15 18:15:06,954 INFO 2025-03-15 18:15:06,954 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-config 2025-03-15 18:15:06,954 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1] 2025-03-15 18:15:07,350 INFO [loop_until]: OK (rc = 0) 2025-03-15 18:15:07,350 DEBUG --- stdout --- 2025-03-15 18:15:07,350 DEBUG configmap "lodemon-config" deleted 2025-03-15 18:15:07,350 DEBUG --- stderr --- 2025-03-15 18:15:07,351 DEBUG 2025-03-15 18:15:07,351 INFO 2025-03-15 18:15:07,351 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-15 18:15:07,351 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-03-15 18:15:07,646 INFO [loop_until]: OK (rc = 0) 2025-03-15 18:15:07,646 DEBUG --- stdout --- 2025-03-15 18:15:07,646 DEBUG configmap/lodemon-config created 2025-03-15 18:15:07,646 DEBUG --- stderr --- 2025-03-15 18:15:07,646 DEBUG 2025-03-15 18:15:07,647 INFO 2025-03-15 18:15:07,648 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-15 18:15:09,210 ERROR [run_command]: ERROR 2025-03-15 18:15:09,210 ERROR --- rc --- 2025-03-15 18:15:09,210 ERROR returned 1, expected to be in [0] 2025-03-15 18:15:09,210 ERROR --- stdout --- 2025-03-15 18:15:09,210 ERROR 2025-03-15 18:15:09,210 ERROR --- stderr --- 2025-03-15 18:15:09,210 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-15 18:15:09,210 INFO 2025-03-15 18:15:09,211 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-15 18:15:09,214 INFO 2025-03-15 18:15:09,214 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-deployments 2025-03-15 18:15:09,214 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1] 2025-03-15 18:15:09,606 INFO [loop_until]: OK (rc = 0) 2025-03-15 18:15:09,606 DEBUG --- stdout --- 2025-03-15 18:15:09,606 DEBUG configmap "lodemon-deployments" deleted 2025-03-15 18:15:09,606 DEBUG --- stderr --- 2025-03-15 18:15:09,606 DEBUG 2025-03-15 18:15:09,607 INFO 2025-03-15 18:15:09,607 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-15 18:15:09,607 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-03-15 18:15:09,876 INFO [loop_until]: OK (rc = 0) 2025-03-15 18:15:09,876 DEBUG --- stdout --- 2025-03-15 18:15:09,876 DEBUG configmap/lodemon-deployments created 2025-03-15 18:15:09,876 DEBUG --- stderr --- 2025-03-15 18:15:09,876 DEBUG 2025-03-15 18:15:09,876 INFO 2025-03-15 18:15:09,876 INFO ------------- Deploy the lodestarbox with lodemon profile ------------- 2025-03-15 18:15:09,876 INFO 2025-03-15 18:15:09,876 INFO [run_command]: skaffold deploy --profile lodemon --config=/tmp/tmpn8kq1i17 --status-check=true --namespace=xlou 2025-03-15 18:15:14,430 INFO Starting deploy... 2025-03-15 18:15:15,713 INFO - serviceaccount/k8s-svc-acct-lodemon unchanged 2025-03-15 18:15:15,794 INFO - clusterrolebinding.rbac.authorization.k8s.io/k8s-svc-acct-crb-xlou unchanged 2025-03-15 18:15:16,293 INFO - deployment.apps/lodemon configured 2025-03-15 18:15:16,303 INFO Waiting for deployments to stabilize... 2025-03-15 18:15:21,567 INFO - xlou:deployment/lodemon: waiting for rollout to finish: 1 old replicas are pending termination... 2025-03-15 18:15:47,984 INFO - xlou:deployment/lodemon is ready. 2025-03-15 18:15:47,994 INFO Deployments stabilized in 31.69 seconds 2025-03-15 18:15:48,085 ERROR There is a new version (2.14.1) of Skaffold available. Download it from: 2025-03-15 18:15:48,085 ERROR https://github.com/GoogleContainerTools/skaffold/releases/tag/v2.14.1 2025-03-15 18:15:48,085 ERROR 2025-03-15 18:15:48,085 ERROR Help improve Skaffold with our 2-minute anonymous survey: run 'skaffold survey' 2025-03-15 18:15:48,085 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-15 18:15:48,085 ERROR 2025-03-15 18:15:48,085 ERROR You may choose to opt out of this collection by running the following command: 2025-03-15 18:15:48,085 ERROR skaffold config set --global collect-metrics false 2025-03-15 18:15:48,085 INFO 2025-03-15 18:15:48,085 INFO --------------------- Get expected number of pods --------------------- 2025-03-15 18:15:48,086 INFO 2025-03-15 18:15:48,086 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-15 18:15:48,086 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-03-15 18:15:48,363 INFO [loop_until]: OK (rc = 0) 2025-03-15 18:15:48,363 DEBUG --- stdout --- 2025-03-15 18:15:48,363 DEBUG 1 2025-03-15 18:15:48,363 DEBUG --- stderr --- 2025-03-15 18:15:48,363 DEBUG 2025-03-15 18:15:48,364 INFO 2025-03-15 18:15:48,364 INFO -------------- Reloading pod list for product "lodemon" -------------- 2025-03-15 18:15:48,364 INFO 2025-03-15 18:15:48,364 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-15 18:15:48,364 INFO [loop_until]: (max_time=360.0, interval=10, expected_rc=[0] 2025-03-15 18:15:48,705 INFO [loop_until]: Function succeeded after 0s (rc=0) - failed to find expected number of element: 1 - retry 2025-03-15 18:15:59,048 INFO [loop_until]: Function succeeded after 10s (rc=0) - failed to find expected number of element: 1 - retry 2025-03-15 18:16:09,391 INFO [loop_until]: Function succeeded after 21s (rc=0) - failed to find expected number of element: 1 - retry 2025-03-15 18:16:19,729 INFO [loop_until]: Function succeeded after 31s (rc=0) - expected number of elements found 2025-03-15 18:16:19,729 INFO [loop_until]: OK (rc = 0) 2025-03-15 18:16:19,729 DEBUG --- stdout --- 2025-03-15 18:16:19,729 DEBUG lodemon-86656bf86c-pdh7h 2025-03-15 18:16:19,729 DEBUG --- stderr --- 2025-03-15 18:16:19,729 DEBUG 2025-03-15 18:16:19,729 INFO 2025-03-15 18:16:19,729 INFO ------------ Check pod lodemon-86656bf86c-pdh7h is running ------------ 2025-03-15 18:16:19,729 INFO 2025-03-15 18:16:19,729 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-86656bf86c-pdh7h -o=jsonpath={.status.phase} | grep "Running" 2025-03-15 18:16:19,729 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2025-03-15 18:16:20,026 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-03-15 18:16:20,026 INFO [loop_until]: OK (rc = 0) 2025-03-15 18:16:20,026 DEBUG --- stdout --- 2025-03-15 18:16:20,026 DEBUG Running 2025-03-15 18:16:20,026 DEBUG --- stderr --- 2025-03-15 18:16:20,026 DEBUG 2025-03-15 18:16:20,027 INFO 2025-03-15 18:16:20,027 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-86656bf86c-pdh7h -o=jsonpath={.status.containerStatuses[*].ready} | grep "true" 2025-03-15 18:16:20,027 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2025-03-15 18:16:20,306 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-03-15 18:16:20,306 INFO [loop_until]: OK (rc = 0) 2025-03-15 18:16:20,306 DEBUG --- stdout --- 2025-03-15 18:16:20,306 DEBUG true 2025-03-15 18:16:20,306 DEBUG --- stderr --- 2025-03-15 18:16:20,306 DEBUG 2025-03-15 18:16:20,306 INFO 2025-03-15 18:16:20,306 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-86656bf86c-pdh7h --output jsonpath={.status.startTime} 2025-03-15 18:16:20,306 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-03-15 18:16:20,581 INFO [loop_until]: OK (rc = 0) 2025-03-15 18:16:20,581 DEBUG --- stdout --- 2025-03-15 18:16:20,581 DEBUG 2025-03-15T18:15:16Z 2025-03-15 18:16:20,581 DEBUG --- stderr --- 2025-03-15 18:16:20,581 DEBUG 2025-03-15 18:16:20,581 INFO 2025-03-15 18:16:20,581 INFO ----- Check pod lodemon-86656bf86c-pdh7h filesystem is accessible ----- 2025-03-15 18:16:21,333 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-03-15 18:16:21,333 INFO 2025-03-15 18:16:21,333 INFO ---------- Check pod lodemon-86656bf86c-pdh7h restart count ---------- 2025-03-15 18:16:21,333 INFO 2025-03-15 18:16:21,333 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-86656bf86c-pdh7h --output jsonpath={.status.containerStatuses[*].restartCount} 2025-03-15 18:16:21,333 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-03-15 18:16:21,611 INFO [loop_until]: OK (rc = 0) 2025-03-15 18:16:21,611 DEBUG --- stdout --- 2025-03-15 18:16:21,611 DEBUG 0 2025-03-15 18:16:21,611 DEBUG --- stderr --- 2025-03-15 18:16:21,611 DEBUG 2025-03-15 18:16:21,611 INFO Pod lodemon-86656bf86c-pdh7h has been restarted 0 times. 2025-03-15 18:16:21,611 INFO 2025-03-15 18:16:21,611 INFO --------------------- Get expected number of pods --------------------- 2025-03-15 18:16:21,612 INFO 2025-03-15 18:16:21,612 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-15 18:16:21,612 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-03-15 18:16:21,953 INFO [loop_until]: OK (rc = 0) 2025-03-15 18:16:21,954 DEBUG --- stdout --- 2025-03-15 18:16:21,954 DEBUG 1 2025-03-15 18:16:21,954 DEBUG --- stderr --- 2025-03-15 18:16:21,954 DEBUG 2025-03-15 18:16:21,954 INFO 2025-03-15 18:16:21,954 INFO -------------- Waiting for 1 expected pod(s) to be ready -------------- 2025-03-15 18:16:21,954 INFO 2025-03-15 18:16:21,954 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-15 18:16:21,954 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2025-03-15 18:16:22,259 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-03-15 18:16:22,259 INFO [loop_until]: OK (rc = 0) 2025-03-15 18:16:22,259 DEBUG --- stdout --- 2025-03-15 18:16:22,259 DEBUG ready:1 replicas:1 2025-03-15 18:16:22,259 DEBUG --- stderr --- 2025-03-15 18:16:22,259 DEBUG 2025-03-15 18:16:22,259 INFO Component lodemon is alive 2025-03-15 18:16:23,088 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250315_181622-after-lodemon-deploy/lodemon-86656bf86c-pdh7h.txt 2025-03-15 18:16:23,088 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250315_181622-after-lodemon-deploy/lodemon-86656bf86c-pdh7h.txt 2025-03-15 18:16:23,088 INFO Check pod logs for errors 2025-03-15 18:16:23,089 INFO 2025-03-15 18:16:23,089 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm exec lodemon-86656bf86c-pdh7h -- curl --fail --silent --show-error http://localhost:8080/monitoring/start 2025-03-15 18:16:23,089 INFO [loop_until]: (max_time=600, interval=5, expected_rc=[0] 2025-03-15 18:16:23,822 INFO [loop_until]: OK (rc = 0) 2025-03-15 18:16:23,822 DEBUG --- stdout --- 2025-03-15 18:16:23,822 DEBUG {"Status": "OK", "Message": "Monitoring has been started"} 2025-03-15 18:16:23,822 DEBUG --- stderr --- 2025-03-15 18:16:23,822 DEBUG 2025-03-15 18:16:24,601 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_login_tree/pod-logs/stack/after-lodemon-deployment/lodemon-86656bf86c-pdh7h.txt 2025-03-15 18:16:24,614 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_login_tree/pod-logs/stack/after-lodemon-deployment/lodemon-86656bf86c-pdh7h.txt 2025-03-15 18:16:24,614 INFO Check pod logs for errors ________________________________________________________________________________ [2025-03-15 18:16:24] Monitoring_start post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped