--Task-- name: Verification_ds-cts enabled: True class_name: VerificationTask source_name: ds-cts source_namespace: >default< target_name: ds-cts 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/scratch/workspaces/workspace/pit-debug-tests-debug-other-tests-463-1679261215469-1550440051/pyrock ________________________________________________________________________________ [19/Mar/2023 23:41:22] Verification_ds-cts pre : N/A ________________________________________________________________________________ [19/Mar/2023 23:41:22] - INFO: Timeout for this Task has changed to 2h (7200 seconds) [19/Mar/2023 23:41:22] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset ________________________________________________________________________________ [19/Mar/2023 23:41:22] Verification_ds-cts step1 : Wait until pods are in Running state and check number of running pods ________________________________________________________________________________ --------------------- Get expected number of pods --------------------- [loop_until]: kubectl --namespace=jnkns-pt-dbg-tsts-dbg-thr-tsts-463 get statefulsets -l app=ds-cts -o jsonpath={.items[*].spec.replicas} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 3 --- stderr --- -------------- Waiting for 3 expected pod(s) to be ready -------------- [loop_until]: kubectl --namespace=jnkns-pt-dbg-tsts-dbg-thr-tsts-463 get statefulsets ds-cts -o jsonpath="current:{.status.currentReplicas} ready:{.status.readyReplicas} replicas:{.status.replicas}" | grep "current:3 ready:3 replicas:3" [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 --- current:3 ready:3 replicas:3 --- stderr --- ________________________________________________________________________________ [19/Mar/2023 23:41:23] Verification_ds-cts step2 : Discovering pods ________________________________________________________________________________ --------------------- Get expected number of pods --------------------- [loop_until]: kubectl --namespace=jnkns-pt-dbg-tsts-dbg-thr-tsts-463 get statefulsets -l app=ds-cts -o jsonpath={.items[*].spec.replicas} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 3 --- stderr --- ---------------------------- Get pod list ---------------------------- [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=jnkns-pt-dbg-tsts-dbg-thr-tsts-463 get pods -l app=ds-cts -o jsonpath={.items[*].metadata.name}` | grep 3 [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 --- ds-cts-0 ds-cts-1 ds-cts-2 --- stderr --- ________________________________________________________________________________ [19/Mar/2023 23:41:24] Verification_ds-cts step3 : Check component is alive ________________________________________________________________________________ Livecheck to ds-cts-0 [run_command]: kubectl --namespace=jnkns-pt-dbg-tsts-dbg-thr-tsts-463 exec ds-cts-0 -c ds -- ldapsearch --noPropertiesFile -p 1389 --useStartTls --trustAll -D "uid=admin" -w "FMJ8f2ucyaoaHZlGLxQuPepDZvShzsEG" -b "" -s base "(&)" alive [run_command]: OK (rc = 0 - expected to be in [0]) --- stdout --- dn: alive: true --- stderr --- Livecheck to ds-cts-1 [run_command]: kubectl --namespace=jnkns-pt-dbg-tsts-dbg-thr-tsts-463 exec ds-cts-1 -c ds -- ldapsearch --noPropertiesFile -p 1389 --useStartTls --trustAll -D "uid=admin" -w "FMJ8f2ucyaoaHZlGLxQuPepDZvShzsEG" -b "" -s base "(&)" alive [run_command]: OK (rc = 0 - expected to be in [0]) --- stdout --- dn: alive: true --- stderr --- Livecheck to ds-cts-2 [run_command]: kubectl --namespace=jnkns-pt-dbg-tsts-dbg-thr-tsts-463 exec ds-cts-2 -c ds -- ldapsearch --noPropertiesFile -p 1389 --useStartTls --trustAll -D "uid=admin" -w "FMJ8f2ucyaoaHZlGLxQuPepDZvShzsEG" -b "" -s base "(&)" alive [run_command]: OK (rc = 0 - expected to be in [0]) --- stdout --- dn: alive: true --- stderr --- PASS : component ds-cts is alive ________________________________________________________________________________ [19/Mar/2023 23:41:30] Verification_ds-cts step4 : Record version ________________________________________________________________________________ --------------------- Get DS-CTS software version --------------------- [loop_until]: kubectl --namespace=jnkns-pt-dbg-tsts-dbg-thr-tsts-463 exec ds-cts-0 -c ds -- find /opt/opendj -name opendj-core.jar [loop_until]: (max_time=30, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- /opt/opendj/lib/opendj-core.jar --- stderr --- [loop_until]: kubectl --namespace=jnkns-pt-dbg-tsts-dbg-thr-tsts-463 cp ds-cts-0:/opt/opendj/lib/opendj-core.jar /tmp/ds-cts_info/opendj-core.jar -c ds [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.20230302225305-8ad1b8d29cc84c442561c09ddf98ccb8e Revision is 8ad1b8d29cc84c442561c09ddf98ccb8e27234b4 ________________________________________________________________________________ [19/Mar/2023 23:41:32] Verification_ds-cts step5 : Checking pod restart counts ________________________________________________________________________________ ------------------ Check pod ds-cts-0 restart count ------------------ [loop_until]: kubectl --namespace=jnkns-pt-dbg-tsts-dbg-thr-tsts-463 get pod ds-cts-0 -o jsonpath={.status.containerStatuses[*].restartCount} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 0 --- stderr --- Pod ds-cts-0 has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ------------------ Check pod ds-cts-1 restart count ------------------ [loop_until]: kubectl --namespace=jnkns-pt-dbg-tsts-dbg-thr-tsts-463 get pod ds-cts-1 -o jsonpath={.status.containerStatuses[*].restartCount} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 0 --- stderr --- Pod ds-cts-1 has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ------------------ Check pod ds-cts-2 restart count ------------------ [loop_until]: kubectl --namespace=jnkns-pt-dbg-tsts-dbg-thr-tsts-463 get pod ds-cts-2 -o jsonpath={.status.containerStatuses[*].restartCount} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 0 --- stderr --- Pod ds-cts-2 has been restarted 0 times. SUCCESS : pod restart count (0) did not change between validation and verification phases ________________________________________________________________________________ [19/Mar/2023 23:41:34] Verification_ds-cts post : Post method ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped