--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
________________________________________________________________________________
[2024-11-20 19:05:41] Monitoring_start pre : Initialising task parameters
________________________________________________________________________________
task will be executed on controller (localhost)
________________________________________________________________________________
[2024-11-20 19:05:41] Monitoring_start step1 : N/A
________________________________________________________________________________
2024-11-20 19:06:41,853 INFO
2024-11-20 19:06:41,853 INFO **************************************** Start Lodemon ****************************************
2024-11-20 19:06:41,933 INFO
2024-11-20 19:06:41,933 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-config
2024-11-20 19:06:41,933 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1]
2024-11-20 19:06:42,329 INFO [loop_until]: OK (rc = 0)
2024-11-20 19:06:42,329 DEBUG --- stdout ---
2024-11-20 19:06:42,329 DEBUG configmap "lodemon-config" deleted
2024-11-20 19:06:42,329 DEBUG --- stderr ---
2024-11-20 19:06:42,329 DEBUG
2024-11-20 19:06:42,329 INFO
2024-11-20 19:06:42,329 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
2024-11-20 19:06:42,329 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-11-20 19:06:42,614 INFO [loop_until]: OK (rc = 0)
2024-11-20 19:06:42,614 DEBUG --- stdout ---
2024-11-20 19:06:42,614 DEBUG configmap/lodemon-config created
2024-11-20 19:06:42,614 DEBUG --- stderr ---
2024-11-20 19:06:42,614 DEBUG
2024-11-20 19:06:42,614 INFO
2024-11-20 19:06:42,615 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]"
2024-11-20 19:06:43,998 ERROR [run_command]: ERROR
2024-11-20 19:06:43,998 ERROR --- rc ---
2024-11-20 19:06:43,998 ERROR returned 1, expected to be in [0]
2024-11-20 19:06:43,998 ERROR --- stdout ---
2024-11-20 19:06:43,998 ERROR
2024-11-20 19:06:43,998 ERROR --- stderr ---
2024-11-20 19:06:43,998 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
2024-11-20 19:06:43,999 INFO
2024-11-20 19:06:43,999 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
2024-11-20 19:06:44,002 INFO
2024-11-20 19:06:44,002 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-deployments
2024-11-20 19:06:44,002 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1]
2024-11-20 19:06:44,395 INFO [loop_until]: OK (rc = 0)
2024-11-20 19:06:44,395 DEBUG --- stdout ---
2024-11-20 19:06:44,395 DEBUG configmap "lodemon-deployments" deleted
2024-11-20 19:06:44,395 DEBUG --- stderr ---
2024-11-20 19:06:44,395 DEBUG
2024-11-20 19:06:44,396 INFO
2024-11-20 19:06:44,396 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
2024-11-20 19:06:44,396 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-11-20 19:06:44,656 INFO [loop_until]: OK (rc = 0)
2024-11-20 19:06:44,656 DEBUG --- stdout ---
2024-11-20 19:06:44,656 DEBUG configmap/lodemon-deployments created
2024-11-20 19:06:44,656 DEBUG --- stderr ---
2024-11-20 19:06:44,656 DEBUG
2024-11-20 19:06:44,656 INFO
2024-11-20 19:06:44,656 INFO ------------- Deploy the lodestarbox with lodemon profile -------------
2024-11-20 19:06:44,656 INFO
2024-11-20 19:06:44,656 INFO [run_command]: skaffold deploy --profile lodemon --config=/tmp/tmp3q1ki7n3 --status-check=true --namespace=xlou
2024-11-20 19:06:46,807 INFO Starting deploy...
2024-11-20 19:06:48,051 INFO - serviceaccount/k8s-svc-acct-lodemon unchanged
2024-11-20 19:06:48,132 INFO - clusterrolebinding.rbac.authorization.k8s.io/k8s-svc-acct-crb-xlou unchanged
2024-11-20 19:06:48,338 INFO - deployment.apps/lodemon configured
2024-11-20 19:06:48,348 INFO Waiting for deployments to stabilize...
2024-11-20 19:06:53,602 INFO - xlou:deployment/lodemon: creating container lodemon
2024-11-20 19:06:53,613 INFO - xlou:pod/lodemon-64c6665c9c-zpzzz: creating container lodemon
2024-11-20 19:07:13,606 INFO - xlou:deployment/lodemon: waiting for rollout to finish: 1 old replicas are pending termination...
2024-11-20 19:07:39,023 INFO - xlou:deployment/lodemon is ready.
2024-11-20 19:07:39,033 INFO Deployments stabilized in 50.684 seconds
2024-11-20 19:07:39,114 ERROR There is a new version (2.13.2) of Skaffold available. Download it from:
2024-11-20 19:07:39,114 ERROR https://github.com/GoogleContainerTools/skaffold/releases/tag/v2.13.2
2024-11-20 19:07:39,114 ERROR
2024-11-20 19:07:39,114 ERROR Help improve Skaffold with our 2-minute anonymous survey: run 'skaffold survey'
2024-11-20 19:07:39,114 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
2024-11-20 19:07:39,114 ERROR
2024-11-20 19:07:39,114 ERROR You may choose to opt out of this collection by running the following command:
2024-11-20 19:07:39,114 ERROR skaffold config set --global collect-metrics false
2024-11-20 19:07:39,115 INFO
2024-11-20 19:07:39,115 INFO --------------------- Get expected number of pods ---------------------
2024-11-20 19:07:39,115 INFO
2024-11-20 19:07:39,115 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get deployments --selector app=lodemon --output jsonpath={.items[*].spec.replicas}
2024-11-20 19:07:39,115 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-11-20 19:07:39,386 INFO [loop_until]: OK (rc = 0)
2024-11-20 19:07:39,386 DEBUG --- stdout ---
2024-11-20 19:07:39,386 DEBUG 1
2024-11-20 19:07:39,386 DEBUG --- stderr ---
2024-11-20 19:07:39,386 DEBUG
2024-11-20 19:07:39,386 INFO
2024-11-20 19:07:39,386 INFO -------------- Reloading pod list for product "lodemon" --------------
2024-11-20 19:07:39,386 INFO
2024-11-20 19:07:39,387 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
2024-11-20 19:07:39,387 INFO [loop_until]: (max_time=360.0, interval=10, expected_rc=[0]
2024-11-20 19:07:39,723 INFO [loop_until]: Function succeeded after 0s (rc=0) - failed to find expected number of element: 1 - retry
2024-11-20 19:07:50,061 INFO [loop_until]: Function succeeded after 10s (rc=0) - failed to find expected number of element: 1 - retry
2024-11-20 19:08:00,400 INFO [loop_until]: Function succeeded after 21s (rc=0) - failed to find expected number of element: 1 - retry
2024-11-20 19:08:10,674 INFO [loop_until]: Function succeeded after 31s (rc=0) - expected number of elements found
2024-11-20 19:08:10,674 INFO [loop_until]: OK (rc = 0)
2024-11-20 19:08:10,674 DEBUG --- stdout ---
2024-11-20 19:08:10,674 DEBUG lodemon-64c6665c9c-zpzzz
2024-11-20 19:08:10,674 DEBUG --- stderr ---
2024-11-20 19:08:10,674 DEBUG
2024-11-20 19:08:10,674 INFO
2024-11-20 19:08:10,674 INFO ------------ Check pod lodemon-64c6665c9c-zpzzz is running ------------
2024-11-20 19:08:10,674 INFO
2024-11-20 19:08:10,674 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-64c6665c9c-zpzzz -o=jsonpath={.status.phase} | grep "Running"
2024-11-20 19:08:10,674 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2024-11-20 19:08:10,965 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-11-20 19:08:10,965 INFO [loop_until]: OK (rc = 0)
2024-11-20 19:08:10,965 DEBUG --- stdout ---
2024-11-20 19:08:10,965 DEBUG Running
2024-11-20 19:08:10,965 DEBUG --- stderr ---
2024-11-20 19:08:10,965 DEBUG
2024-11-20 19:08:10,966 INFO
2024-11-20 19:08:10,966 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-64c6665c9c-zpzzz -o=jsonpath={.status.containerStatuses[*].ready} | grep "true"
2024-11-20 19:08:10,966 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2024-11-20 19:08:11,238 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-11-20 19:08:11,238 INFO [loop_until]: OK (rc = 0)
2024-11-20 19:08:11,238 DEBUG --- stdout ---
2024-11-20 19:08:11,238 DEBUG true
2024-11-20 19:08:11,238 DEBUG --- stderr ---
2024-11-20 19:08:11,238 DEBUG
2024-11-20 19:08:11,238 INFO
2024-11-20 19:08:11,238 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-64c6665c9c-zpzzz --output jsonpath={.status.startTime}
2024-11-20 19:08:11,238 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-11-20 19:08:11,508 INFO [loop_until]: OK (rc = 0)
2024-11-20 19:08:11,508 DEBUG --- stdout ---
2024-11-20 19:08:11,508 DEBUG 2024-11-20T19:06:48Z
2024-11-20 19:08:11,508 DEBUG --- stderr ---
2024-11-20 19:08:11,508 DEBUG
2024-11-20 19:08:11,508 INFO
2024-11-20 19:08:11,508 INFO ----- Check pod lodemon-64c6665c9c-zpzzz filesystem is accessible -----
2024-11-20 19:08:12,245 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-11-20 19:08:12,245 INFO
2024-11-20 19:08:12,245 INFO ---------- Check pod lodemon-64c6665c9c-zpzzz restart count ----------
2024-11-20 19:08:12,246 INFO
2024-11-20 19:08:12,246 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-64c6665c9c-zpzzz --output jsonpath={.status.containerStatuses[*].restartCount}
2024-11-20 19:08:12,246 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-11-20 19:08:12,516 INFO [loop_until]: OK (rc = 0)
2024-11-20 19:08:12,516 DEBUG --- stdout ---
2024-11-20 19:08:12,516 DEBUG 0
2024-11-20 19:08:12,516 DEBUG --- stderr ---
2024-11-20 19:08:12,516 DEBUG
2024-11-20 19:08:12,516 INFO Pod lodemon-64c6665c9c-zpzzz has been restarted 0 times.
2024-11-20 19:08:12,517 INFO
2024-11-20 19:08:12,517 INFO --------------------- Get expected number of pods ---------------------
2024-11-20 19:08:12,517 INFO
2024-11-20 19:08:12,517 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get deployments --selector app=lodemon --output jsonpath={.items[*].spec.replicas}
2024-11-20 19:08:12,517 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-11-20 19:08:12,791 INFO [loop_until]: OK (rc = 0)
2024-11-20 19:08:12,791 DEBUG --- stdout ---
2024-11-20 19:08:12,791 DEBUG 1
2024-11-20 19:08:12,791 DEBUG --- stderr ---
2024-11-20 19:08:12,791 DEBUG
2024-11-20 19:08:12,791 INFO
2024-11-20 19:08:12,791 INFO -------------- Waiting for 1 expected pod(s) to be ready --------------
2024-11-20 19:08:12,792 INFO
2024-11-20 19:08:12,792 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"
2024-11-20 19:08:12,792 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0]
2024-11-20 19:08:13,093 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-11-20 19:08:13,094 INFO [loop_until]: OK (rc = 0)
2024-11-20 19:08:13,094 DEBUG --- stdout ---
2024-11-20 19:08:13,094 DEBUG ready:1 replicas:1
2024-11-20 19:08:13,094 DEBUG --- stderr ---
2024-11-20 19:08:13,094 DEBUG
2024-11-20 19:08:13,094 INFO Component lodemon is alive
2024-11-20 19:08:13,878 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20241120_190813-after-lodemon-deploy/lodemon-64c6665c9c-zpzzz.txt
2024-11-20 19:08:13,878 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20241120_190813-after-lodemon-deploy/lodemon-64c6665c9c-zpzzz.txt
2024-11-20 19:08:13,879 INFO Check pod logs for errors
2024-11-20 19:08:13,879 INFO
2024-11-20 19:08:13,879 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm exec lodemon-64c6665c9c-zpzzz -- curl --fail --silent --show-error http://localhost:8080/monitoring/start
2024-11-20 19:08:13,879 INFO [loop_until]: (max_time=600, interval=5, expected_rc=[0]
2024-11-20 19:08:14,592 INFO [loop_until]: OK (rc = 0)
2024-11-20 19:08:14,592 DEBUG --- stdout ---
2024-11-20 19:08:14,592 DEBUG {"Status": "OK", "Message": "Monitoring has been started"}
2024-11-20 19:08:14,592 DEBUG --- stderr ---
2024-11-20 19:08:14,592 DEBUG
2024-11-20 19:08:15,346 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_benchmark/pod-logs/stack/after-lodemon-deployment/lodemon-64c6665c9c-zpzzz.txt
2024-11-20 19:08:15,347 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_benchmark/pod-logs/stack/after-lodemon-deployment/lodemon-64c6665c9c-zpzzz.txt
2024-11-20 19:08:15,348 INFO Check pod logs for errors
________________________________________________________________________________
[2024-11-20 19:08:15] Monitoring_start post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped