--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-05-15 23:15:38 - INFO: Interval for this Task has changed to 5s (5 seconds) 2025-05-15 23:15:38 - INFO: interval was set to Task default because it was unset, based on self.real_duration value because task is NOT allowed to stop by itself ________________________________________________________________________________ [2025-05-15 23:15:38] Monitoring_start step1 : N/A ________________________________________________________________________________ 2025-05-15 23:16:38,923 INFO 2025-05-15 23:16:38,923 INFO **************************************** Start Lodemon **************************************** 2025-05-15 23:16:39,008 INFO 2025-05-15 23:16:39,009 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-config 2025-05-15 23:16:39,009 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1] 2025-05-15 23:16:39,302 INFO [loop_until]: OK (rc = 1) 2025-05-15 23:16:39,302 DEBUG --- stdout --- 2025-05-15 23:16:39,302 DEBUG 2025-05-15 23:16:39,302 DEBUG --- stderr --- 2025-05-15 23:16:39,302 DEBUG Error from server (NotFound): configmaps "lodemon-config" not found 2025-05-15 23:16:39,302 INFO 2025-05-15 23:16:39,302 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-05-15 23:16:39,302 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-05-15 23:16:39,593 INFO [loop_until]: OK (rc = 0) 2025-05-15 23:16:39,594 DEBUG --- stdout --- 2025-05-15 23:16:39,594 DEBUG configmap/lodemon-config created 2025-05-15 23:16:39,594 DEBUG --- stderr --- 2025-05-15 23:16:39,594 DEBUG 2025-05-15 23:16:39,594 INFO 2025-05-15 23:16:39,595 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-05-15 23:16:41,135 ERROR [run_command]: ERROR 2025-05-15 23:16:41,135 ERROR --- rc --- 2025-05-15 23:16:41,135 ERROR returned 1, expected to be in [0] 2025-05-15 23:16:41,135 ERROR --- stdout --- 2025-05-15 23:16:41,135 ERROR 2025-05-15 23:16:41,135 ERROR --- stderr --- 2025-05-15 23:16:41,135 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-05-15 23:16:41,135 INFO 2025-05-15 23:16:41,135 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-05-15 23:16:41,138 INFO 2025-05-15 23:16:41,138 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-deployments 2025-05-15 23:16:41,138 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1] 2025-05-15 23:16:41,434 INFO [loop_until]: OK (rc = 1) 2025-05-15 23:16:41,435 DEBUG --- stdout --- 2025-05-15 23:16:41,435 DEBUG 2025-05-15 23:16:41,435 DEBUG --- stderr --- 2025-05-15 23:16:41,435 DEBUG Error from server (NotFound): configmaps "lodemon-deployments" not found 2025-05-15 23:16:41,435 INFO 2025-05-15 23:16:41,435 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-05-15 23:16:41,435 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-05-15 23:16:41,699 INFO [loop_until]: OK (rc = 0) 2025-05-15 23:16:41,699 DEBUG --- stdout --- 2025-05-15 23:16:41,699 DEBUG configmap/lodemon-deployments created 2025-05-15 23:16:41,699 DEBUG --- stderr --- 2025-05-15 23:16:41,699 DEBUG 2025-05-15 23:16:41,699 INFO 2025-05-15 23:16:41,699 INFO ------------- Deploy the lodestarbox with lodemon profile ------------- 2025-05-15 23:16:41,699 INFO 2025-05-15 23:16:41,700 INFO [run_command]: skaffold deploy --profile lodemon --config=/tmp/tmpyolwsuyu --status-check=true --namespace=xlou 2025-05-15 23:16:44,574 INFO Starting deploy... 2025-05-15 23:16:46,111 INFO - serviceaccount/k8s-svc-acct-lodemon created 2025-05-15 23:16:46,294 INFO - clusterrolebinding.rbac.authorization.k8s.io/k8s-svc-acct-crb-xlou created 2025-05-15 23:16:46,528 INFO - deployment.apps/lodemon created 2025-05-15 23:16:46,539 INFO Waiting for deployments to stabilize... 2025-05-15 23:16:51,805 INFO - xlou:deployment/lodemon: waiting for rollout to finish: 0 of 1 updated replicas are available... 2025-05-15 23:17:17,211 INFO - xlou:deployment/lodemon is ready. 2025-05-15 23:17:17,221 INFO Deployments stabilized in 30.685 seconds 2025-05-15 23:17:17,312 ERROR There is a new version (2.16.0) of Skaffold available. Download it from: 2025-05-15 23:17:17,312 ERROR https://github.com/GoogleContainerTools/skaffold/releases/tag/v2.16.0 2025-05-15 23:17:17,312 ERROR 2025-05-15 23:17:17,312 ERROR Help improve Skaffold with our 2-minute anonymous survey: run 'skaffold survey' 2025-05-15 23:17:17,313 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-05-15 23:17:17,313 ERROR 2025-05-15 23:17:17,313 ERROR You may choose to opt out of this collection by running the following command: 2025-05-15 23:17:17,313 ERROR skaffold config set --global collect-metrics false 2025-05-15 23:17:17,313 INFO 2025-05-15 23:17:17,313 INFO --------------------- Get expected number of pods --------------------- 2025-05-15 23:17:17,313 INFO 2025-05-15 23:17:17,313 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-05-15 23:17:17,313 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-05-15 23:17:17,587 INFO [loop_until]: OK (rc = 0) 2025-05-15 23:17:17,588 DEBUG --- stdout --- 2025-05-15 23:17:17,588 DEBUG 1 2025-05-15 23:17:17,588 DEBUG --- stderr --- 2025-05-15 23:17:17,588 DEBUG 2025-05-15 23:17:17,588 INFO 2025-05-15 23:17:17,588 INFO -------------- Reloading pod list for product "lodemon" -------------- 2025-05-15 23:17:17,588 INFO 2025-05-15 23:17:17,588 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-05-15 23:17:17,588 INFO [loop_until]: (max_time=360.0, interval=10, expected_rc=[0] 2025-05-15 23:17:17,863 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found 2025-05-15 23:17:17,863 INFO [loop_until]: OK (rc = 0) 2025-05-15 23:17:17,863 DEBUG --- stdout --- 2025-05-15 23:17:17,863 DEBUG lodemon-5c775fc776-vj7l4 2025-05-15 23:17:17,864 DEBUG --- stderr --- 2025-05-15 23:17:17,864 DEBUG 2025-05-15 23:17:17,864 INFO 2025-05-15 23:17:17,864 INFO ------------ Check pod lodemon-5c775fc776-vj7l4 is running ------------ 2025-05-15 23:17:17,864 INFO 2025-05-15 23:17:17,864 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-5c775fc776-vj7l4 -o=jsonpath={.status.phase} | grep "Running" 2025-05-15 23:17:17,864 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2025-05-15 23:17:18,173 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-05-15 23:17:18,173 INFO [loop_until]: OK (rc = 0) 2025-05-15 23:17:18,173 DEBUG --- stdout --- 2025-05-15 23:17:18,173 DEBUG Running 2025-05-15 23:17:18,173 DEBUG --- stderr --- 2025-05-15 23:17:18,173 DEBUG 2025-05-15 23:17:18,173 INFO 2025-05-15 23:17:18,173 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-5c775fc776-vj7l4 -o=jsonpath={.status.containerStatuses[*].ready} | grep "true" 2025-05-15 23:17:18,173 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0] 2025-05-15 23:17:18,455 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-05-15 23:17:18,455 INFO [loop_until]: OK (rc = 0) 2025-05-15 23:17:18,455 DEBUG --- stdout --- 2025-05-15 23:17:18,455 DEBUG true 2025-05-15 23:17:18,455 DEBUG --- stderr --- 2025-05-15 23:17:18,455 DEBUG 2025-05-15 23:17:18,455 INFO 2025-05-15 23:17:18,455 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-5c775fc776-vj7l4 --output jsonpath={.status.startTime} 2025-05-15 23:17:18,455 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-05-15 23:17:18,729 INFO [loop_until]: OK (rc = 0) 2025-05-15 23:17:18,729 DEBUG --- stdout --- 2025-05-15 23:17:18,729 DEBUG 2025-05-15T23:16:46Z 2025-05-15 23:17:18,729 DEBUG --- stderr --- 2025-05-15 23:17:18,729 DEBUG 2025-05-15 23:17:18,729 INFO 2025-05-15 23:17:18,729 INFO ----- Check pod lodemon-5c775fc776-vj7l4 filesystem is accessible ----- 2025-05-15 23:17:19,472 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-05-15 23:17:19,472 INFO 2025-05-15 23:17:19,472 INFO ---------- Check pod lodemon-5c775fc776-vj7l4 restart count ---------- 2025-05-15 23:17:19,472 INFO 2025-05-15 23:17:19,472 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-5c775fc776-vj7l4 --output jsonpath={.status.containerStatuses[*].restartCount} 2025-05-15 23:17:19,472 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-05-15 23:17:19,744 INFO [loop_until]: OK (rc = 0) 2025-05-15 23:17:19,744 DEBUG --- stdout --- 2025-05-15 23:17:19,744 DEBUG 0 2025-05-15 23:17:19,744 DEBUG --- stderr --- 2025-05-15 23:17:19,744 DEBUG 2025-05-15 23:17:19,744 INFO Pod lodemon-5c775fc776-vj7l4 has been restarted 0 times. 2025-05-15 23:17:19,744 INFO 2025-05-15 23:17:19,744 INFO --------------------- Get expected number of pods --------------------- 2025-05-15 23:17:19,744 INFO 2025-05-15 23:17:19,744 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-05-15 23:17:19,744 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0] 2025-05-15 23:17:20,039 INFO [loop_until]: OK (rc = 0) 2025-05-15 23:17:20,039 DEBUG --- stdout --- 2025-05-15 23:17:20,039 DEBUG 1 2025-05-15 23:17:20,039 DEBUG --- stderr --- 2025-05-15 23:17:20,039 DEBUG 2025-05-15 23:17:20,039 INFO 2025-05-15 23:17:20,039 INFO -------------- Waiting for 1 expected pod(s) to be ready -------------- 2025-05-15 23:17:20,039 INFO 2025-05-15 23:17:20,039 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-05-15 23:17:20,039 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0] 2025-05-15 23:17:20,311 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found 2025-05-15 23:17:20,311 INFO [loop_until]: OK (rc = 0) 2025-05-15 23:17:20,311 DEBUG --- stdout --- 2025-05-15 23:17:20,311 DEBUG ready:1 replicas:1 2025-05-15 23:17:20,311 DEBUG --- stderr --- 2025-05-15 23:17:20,311 DEBUG 2025-05-15 23:17:20,311 INFO Component lodemon is alive 2025-05-15 23:17:21,125 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250515_231720-after-lodemon-deploy/lodemon-5c775fc776-vj7l4.txt 2025-05-15 23:17:21,125 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20250515_231720-after-lodemon-deploy/lodemon-5c775fc776-vj7l4.txt 2025-05-15 23:17:21,125 INFO Check pod logs for errors 2025-05-15 23:17:21,126 INFO 2025-05-15 23:17:21,126 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm exec lodemon-5c775fc776-vj7l4 -- curl --fail --silent --show-error http://localhost:8080/monitoring/start 2025-05-15 23:17:21,126 INFO [loop_until]: (max_time=600, interval=5, expected_rc=[0] 2025-05-15 23:17:21,852 INFO [loop_until]: OK (rc = 0) 2025-05-15 23:17:21,852 DEBUG --- stdout --- 2025-05-15 23:17:21,852 DEBUG {"Status": "OK", "Message": "Monitoring has been started"} 2025-05-15 23:17:21,852 DEBUG --- stderr --- 2025-05-15 23:17:21,852 DEBUG 2025-05-15 23:17:22,613 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-5c775fc776-vj7l4.txt 2025-05-15 23:17:22,613 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-5c775fc776-vj7l4.txt 2025-05-15 23:17:22,613 INFO Check pod logs for errors ________________________________________________________________________________ [2025-05-15 23:17:22] Monitoring_start post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped