From d6fe111e1ed87d7c1b96c424e0a2e52af6179e49 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Mon, 3 Aug 2020 13:50:25 -0700 Subject: [PATCH] fips_check: Don't hardcode number of nodes This is to unblock the fips job for now. We have to follow up with checks that make sure that the expected number of nodes are up before running checks and tests. Signed-off-by: Mrunal Patel --- .../openshift/installer/cluster-launch-installer-e2e.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml index b1e0170bdf9f2..ab11515a6b596 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml @@ -162,7 +162,10 @@ objects: get_nodes=$(oc --request-timeout=60s get nodes -o jsonpath --template '{range .items[*]}{.metadata.name}{"\n"}{end}') nodes=( $get_nodes ) # bash doesn't handle '.' in array elements easily - for i in {0..5}; do + num_nodes="${#nodes[@]}" + # TODO: This must be replaced by code that waits for all the expected number + # of nodes to be ready. + for (( i=0; i<$num_nodes; i++ )); do attempt=0 while true; do out=$(oc --request-timeout=60s -n default debug node/"${nodes[i]}" -- cat /proc/sys/crypto/fips_enabled || true)