--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-18 16:14:55] Monitoring_start pre : Initialising task parameters
________________________________________________________________________________
task will be executed on controller (localhost)
________________________________________________________________________________
[2024-11-18 16:14:55] Monitoring_start step1 : N/A
________________________________________________________________________________
2024-11-18 16:15:55,898 INFO
2024-11-18 16:15:55,899 INFO **************************************** Start Lodemon ****************************************
2024-11-18 16:15:55,979 INFO
2024-11-18 16:15:55,979 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-config
2024-11-18 16:15:55,979 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1]
2024-11-18 16:15:56,366 INFO [loop_until]: OK (rc = 0)
2024-11-18 16:15:56,366 DEBUG --- stdout ---
2024-11-18 16:15:56,366 DEBUG configmap "lodemon-config" deleted
2024-11-18 16:15:56,366 DEBUG --- stderr ---
2024-11-18 16:15:56,366 DEBUG
2024-11-18 16:15:56,366 INFO
2024-11-18 16:15:56,366 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-18 16:15:56,366 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-11-18 16:15:56,659 INFO [loop_until]: OK (rc = 0)
2024-11-18 16:15:56,659 DEBUG --- stdout ---
2024-11-18 16:15:56,659 DEBUG configmap/lodemon-config created
2024-11-18 16:15:56,659 DEBUG --- stderr ---
2024-11-18 16:15:56,659 DEBUG
2024-11-18 16:15:56,659 INFO
2024-11-18 16:15:56,660 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-18 16:15:58,220 ERROR [run_command]: ERROR
2024-11-18 16:15:58,220 ERROR --- rc ---
2024-11-18 16:15:58,220 ERROR returned 1, expected to be in [0]
2024-11-18 16:15:58,221 ERROR --- stdout ---
2024-11-18 16:15:58,221 ERROR
2024-11-18 16:15:58,221 ERROR --- stderr ---
2024-11-18 16:15:58,221 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-18 16:15:58,221 INFO
2024-11-18 16:15:58,221 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-18 16:15:58,224 INFO
2024-11-18 16:15:58,224 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm delete configmap lodemon-deployments
2024-11-18 16:15:58,224 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0, 1]
2024-11-18 16:15:58,605 INFO [loop_until]: OK (rc = 0)
2024-11-18 16:15:58,605 DEBUG --- stdout ---
2024-11-18 16:15:58,605 DEBUG configmap "lodemon-deployments" deleted
2024-11-18 16:15:58,605 DEBUG --- stderr ---
2024-11-18 16:15:58,605 DEBUG
2024-11-18 16:15:58,606 INFO
2024-11-18 16:15:58,606 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-18 16:15:58,606 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-11-18 16:15:58,879 INFO [loop_until]: OK (rc = 0)
2024-11-18 16:15:58,879 DEBUG --- stdout ---
2024-11-18 16:15:58,879 DEBUG configmap/lodemon-deployments created
2024-11-18 16:15:58,879 DEBUG --- stderr ---
2024-11-18 16:15:58,879 DEBUG
2024-11-18 16:15:58,879 INFO
2024-11-18 16:15:58,879 INFO ------------- Deploy the lodestarbox with lodemon profile -------------
2024-11-18 16:15:58,879 INFO
2024-11-18 16:15:58,879 INFO [run_command]: skaffold deploy --profile lodemon --config=/tmp/tmpvcgwbrq7 --status-check=true --namespace=xlou
2024-11-18 16:16:01,905 INFO Starting deploy...
2024-11-18 16:16:03,168 INFO - serviceaccount/k8s-svc-acct-lodemon unchanged
2024-11-18 16:16:03,250 INFO - clusterrolebinding.rbac.authorization.k8s.io/k8s-svc-acct-crb-xlou unchanged
2024-11-18 16:16:03,463 INFO - deployment.apps/lodemon configured
2024-11-18 16:16:03,474 INFO Waiting for deployments to stabilize...
2024-11-18 16:16:08,726 INFO - xlou:deployment/lodemon: creating container lodemon
2024-11-18 16:16:08,737 INFO - xlou:pod/lodemon-5c8cc8c6-67tph: creating container lodemon
2024-11-18 16:16:54,141 INFO - xlou:deployment/lodemon is ready.
2024-11-18 16:16:54,151 INFO Deployments stabilized in 50.681 seconds
2024-11-18 16:16:54,242 ERROR There is a new version (2.13.2) of Skaffold available. Download it from:
2024-11-18 16:16:54,242 ERROR https://github.com/GoogleContainerTools/skaffold/releases/tag/v2.13.2
2024-11-18 16:16:54,242 ERROR
2024-11-18 16:16:54,242 ERROR Help improve Skaffold with our 2-minute anonymous survey: run 'skaffold survey'
2024-11-18 16:16:54,242 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-18 16:16:54,242 ERROR
2024-11-18 16:16:54,243 ERROR You may choose to opt out of this collection by running the following command:
2024-11-18 16:16:54,243 ERROR skaffold config set --global collect-metrics false
2024-11-18 16:16:54,243 INFO
2024-11-18 16:16:54,243 INFO --------------------- Get expected number of pods ---------------------
2024-11-18 16:16:54,243 INFO
2024-11-18 16:16:54,243 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-18 16:16:54,243 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-11-18 16:16:54,516 INFO [loop_until]: OK (rc = 0)
2024-11-18 16:16:54,516 DEBUG --- stdout ---
2024-11-18 16:16:54,516 DEBUG 1
2024-11-18 16:16:54,516 DEBUG --- stderr ---
2024-11-18 16:16:54,516 DEBUG
2024-11-18 16:16:54,516 INFO
2024-11-18 16:16:54,516 INFO -------------- Reloading pod list for product "lodemon" --------------
2024-11-18 16:16:54,516 INFO
2024-11-18 16:16:54,516 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-18 16:16:54,516 INFO [loop_until]: (max_time=360.0, interval=10, expected_rc=[0]
2024-11-18 16:16:54,853 INFO [loop_until]: Function succeeded after 0s (rc=0) - failed to find expected number of element: 1 - retry
2024-11-18 16:17:05,194 INFO [loop_until]: Function succeeded after 10s (rc=0) - failed to find expected number of element: 1 - retry
2024-11-18 16:17:15,533 INFO [loop_until]: Function succeeded after 21s (rc=0) - failed to find expected number of element: 1 - retry
2024-11-18 16:17:25,806 INFO [loop_until]: Function succeeded after 31s (rc=0) - expected number of elements found
2024-11-18 16:17:25,807 INFO [loop_until]: OK (rc = 0)
2024-11-18 16:17:25,808 DEBUG --- stdout ---
2024-11-18 16:17:25,808 DEBUG lodemon-5c8cc8c6-67tph
2024-11-18 16:17:25,808 DEBUG --- stderr ---
2024-11-18 16:17:25,808 DEBUG
2024-11-18 16:17:25,808 INFO
2024-11-18 16:17:25,808 INFO ------------- Check pod lodemon-5c8cc8c6-67tph is running -------------
2024-11-18 16:17:25,808 INFO
2024-11-18 16:17:25,808 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-5c8cc8c6-67tph -o=jsonpath={.status.phase} | grep "Running"
2024-11-18 16:17:25,808 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2024-11-18 16:17:26,101 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-11-18 16:17:26,101 INFO [loop_until]: OK (rc = 0)
2024-11-18 16:17:26,101 DEBUG --- stdout ---
2024-11-18 16:17:26,101 DEBUG Running
2024-11-18 16:17:26,101 DEBUG --- stderr ---
2024-11-18 16:17:26,101 DEBUG
2024-11-18 16:17:26,102 INFO
2024-11-18 16:17:26,102 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pods lodemon-5c8cc8c6-67tph -o=jsonpath={.status.containerStatuses[*].ready} | grep "true"
2024-11-18 16:17:26,102 INFO [loop_until]: (max_time=360, interval=5, expected_rc=[0]
2024-11-18 16:17:26,373 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-11-18 16:17:26,373 INFO [loop_until]: OK (rc = 0)
2024-11-18 16:17:26,373 DEBUG --- stdout ---
2024-11-18 16:17:26,373 DEBUG true
2024-11-18 16:17:26,373 DEBUG --- stderr ---
2024-11-18 16:17:26,373 DEBUG
2024-11-18 16:17:26,373 INFO
2024-11-18 16:17:26,373 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-5c8cc8c6-67tph --output jsonpath={.status.startTime}
2024-11-18 16:17:26,373 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-11-18 16:17:26,644 INFO [loop_until]: OK (rc = 0)
2024-11-18 16:17:26,644 DEBUG --- stdout ---
2024-11-18 16:17:26,644 DEBUG 2024-11-18T16:16:03Z
2024-11-18 16:17:26,644 DEBUG --- stderr ---
2024-11-18 16:17:26,644 DEBUG
2024-11-18 16:17:26,645 INFO
2024-11-18 16:17:26,645 INFO ------ Check pod lodemon-5c8cc8c6-67tph filesystem is accessible ------
2024-11-18 16:17:27,378 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-11-18 16:17:27,378 INFO
2024-11-18 16:17:27,378 INFO ----------- Check pod lodemon-5c8cc8c6-67tph restart count -----------
2024-11-18 16:17:27,378 INFO
2024-11-18 16:17:27,378 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm get pod lodemon-5c8cc8c6-67tph --output jsonpath={.status.containerStatuses[*].restartCount}
2024-11-18 16:17:27,378 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-11-18 16:17:27,649 INFO [loop_until]: OK (rc = 0)
2024-11-18 16:17:27,649 DEBUG --- stdout ---
2024-11-18 16:17:27,649 DEBUG 0
2024-11-18 16:17:27,649 DEBUG --- stderr ---
2024-11-18 16:17:27,649 DEBUG
2024-11-18 16:17:27,650 INFO Pod lodemon-5c8cc8c6-67tph has been restarted 0 times.
2024-11-18 16:17:27,650 INFO
2024-11-18 16:17:27,650 INFO --------------------- Get expected number of pods ---------------------
2024-11-18 16:17:27,650 INFO
2024-11-18 16:17:27,650 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-18 16:17:27,650 INFO [loop_until]: (max_time=180, interval=5, expected_rc=[0]
2024-11-18 16:17:27,920 INFO [loop_until]: OK (rc = 0)
2024-11-18 16:17:27,920 DEBUG --- stdout ---
2024-11-18 16:17:27,920 DEBUG 1
2024-11-18 16:17:27,920 DEBUG --- stderr ---
2024-11-18 16:17:27,920 DEBUG
2024-11-18 16:17:27,920 INFO
2024-11-18 16:17:27,920 INFO -------------- Waiting for 1 expected pod(s) to be ready --------------
2024-11-18 16:17:27,920 INFO
2024-11-18 16:17:27,920 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-18 16:17:27,921 INFO [loop_until]: (max_time=900, interval=30, expected_rc=[0]
2024-11-18 16:17:28,193 INFO [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
2024-11-18 16:17:28,193 INFO [loop_until]: OK (rc = 0)
2024-11-18 16:17:28,193 DEBUG --- stdout ---
2024-11-18 16:17:28,193 DEBUG ready:1 replicas:1
2024-11-18 16:17:28,193 DEBUG --- stderr ---
2024-11-18 16:17:28,193 DEBUG
2024-11-18 16:17:28,193 INFO Component lodemon is alive
2024-11-18 16:17:28,972 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20241118_161728-after-lodemon-deploy/lodemon-5c8cc8c6-67tph.txt
2024-11-18 16:17:28,972 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/pod-logs/20241118_161728-after-lodemon-deploy/lodemon-5c8cc8c6-67tph.txt
2024-11-18 16:17:28,972 INFO Check pod logs for errors
2024-11-18 16:17:28,973 INFO
2024-11-18 16:17:28,973 INFO [loop_until]: kubectl --namespace=xlou --context=gke_engineeringpit_us-east1-d_xlou-cdm exec lodemon-5c8cc8c6-67tph -- curl --fail --silent --show-error http://localhost:8080/monitoring/start
2024-11-18 16:17:28,973 INFO [loop_until]: (max_time=600, interval=5, expected_rc=[0]
2024-11-18 16:17:29,689 INFO [loop_until]: OK (rc = 0)
2024-11-18 16:17:29,689 DEBUG --- stdout ---
2024-11-18 16:17:29,689 DEBUG {"Status": "OK", "Message": "Monitoring has been started"}
2024-11-18 16:17:29,689 DEBUG --- stderr ---
2024-11-18 16:17:29,689 DEBUG
2024-11-18 16:17:30,442 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_benchmark/pod-logs/stack/after-lodemon-deployment/lodemon-5c8cc8c6-67tph.txt
2024-11-18 16:17:30,442 INFO Dumping pod description and logs to /mnt/disk1/xslou/workshop/lodestar-fork/results/pyrock/idc_benchmark/pod-logs/stack/after-lodemon-deployment/lodemon-5c8cc8c6-67tph.txt
2024-11-18 16:17:30,442 INFO Check pod logs for errors
________________________________________________________________________________
[2024-11-18 16:17:30] Monitoring_start post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped