--Task-- name: Verification_end-user-ui enabled: True class_name: VerificationTask source_name: end-user-ui source_namespace: >default< target_name: end-user-ui target_namespace: >default< start: 0 stop: None timeout: not yet initialized for this Task as timeout was not explicitly defined, see updates bellow loop: False interval: None dependencies: [] wait_for: [] options: {} group_name: None Current dir: /mnt/disks/data/xslou/lodestar-fork/pyrock ________________________________________________________________________________ [28/May/2023 09:20:20] Verification_end-user-ui pre : N/A ________________________________________________________________________________ [28/May/2023 09:20:20] - INFO: Timeout for this Task has changed to 4h 40m (16800 seconds) [28/May/2023 09:20:20] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset ________________________________________________________________________________ [28/May/2023 09:20:20] Verification_end-user-ui step1 : Wait until pods are in Running state and check number of running pods ________________________________________________________________________________ --------------------- Get expected number of pods --------------------- [loop_until]: kubectl --namespace=xlou get deployments --selector app.kubernetes.io/name=end-user-ui --output jsonpath={.items[*].spec.replicas} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 1 --- stderr --- -------------- Waiting for 1 expected pod(s) to be ready -------------- [loop_until]: kubectl --namespace=xlou get deployments end-user-ui --output jsonpath="ready:{.status.readyReplicas} replicas:{.status.replicas}" | grep "ready:1 replicas:1" [loop_until]: (max_time=900, interval=30, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found [loop_until]: OK (rc = 0) --- stdout --- ready:1 replicas:1 --- stderr --- ________________________________________________________________________________ [28/May/2023 09:20:22] Verification_end-user-ui step2 : Discovering pods ________________________________________________________________________________ --------------------- Get expected number of pods --------------------- [loop_until]: kubectl --namespace=xlou get deployments --selector app.kubernetes.io/name=end-user-ui --output jsonpath={.items[*].spec.replicas} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 1 --- stderr --- ---------------------------- Get pod list ---------------------------- [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=xlou get pods --selector app.kubernetes.io/name=end-user-ui --output jsonpath={.items[*].metadata.name}` | grep 1 [loop_until]: (max_time=180, interval=10, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found [loop_until]: OK (rc = 0) --- stdout --- end-user-ui-fdf99b7d7-4gw9n --- stderr --- ________________________________________________________________________________ [28/May/2023 09:20:23] Verification_end-user-ui step3 : Check component is alive ________________________________________________________________________________ Livecheck to https://xlou.iam.xlou-cdm.engineeringpit.com/enduser [http_cmd]: curl -L --request GET "https://xlou.iam.xlou-cdm.engineeringpit.com/enduser" [http_cmd]: http status code OK --- status code --- http status code is 200 (expected 200) --- http response --- Identity Management
[] PASS : component end-user-ui is alive ________________________________________________________________________________ [28/May/2023 09:20:24] Verification_end-user-ui step4 : Record version ________________________________________________________________________________ ------------------ Get END-USER-UI software version ------------------ [loop_until]: kubectl --namespace=xlou exec end-user-ui-fdf99b7d7-4gw9n --container end-user-ui -- find /usr/share/nginx/html -name chunk-vendors.*.js [loop_until]: (max_time=30, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- /usr/share/nginx/html/js/chunk-vendors.a51e8e31.js --- stderr --- [loop_until]: kubectl --namespace=xlou cp end-user-ui-fdf99b7d7-4gw9n:/usr/share/nginx/html/js/chunk-vendors.a51e8e31.js /tmp/end-user-ui_info/chunk-vendors.a51e8e31.js --container end-user-ui [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- tar: Removing leading `/' from member names --- stderr --- Version is 7.3.0 Revision is cc26db93 ________________________________________________________________________________ [28/May/2023 09:20:26] Verification_end-user-ui step5 : Checking pod restart counts ________________________________________________________________________________ --------- Check pod end-user-ui-fdf99b7d7-4gw9n restart count --------- [loop_until]: kubectl --namespace=xlou get pod end-user-ui-fdf99b7d7-4gw9n --output jsonpath={.status.containerStatuses[*].restartCount} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 0 --- stderr --- Pod end-user-ui-fdf99b7d7-4gw9n has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ________________________________________________________________________________ [28/May/2023 09:20:26] Verification_end-user-ui post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped