File tree Expand file tree Collapse file tree
test/kuttl/tests/ctlplane-tls-cert-rotation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,9 +7,16 @@ commands:
77 NAMESPACE=$NAMESPACE bash ../../common/osp_check_noapi_service_certs.sh
88
99 - script : |
10- echo "Get fingerprints of all service certs"
10+ echo "Checking endpoint cert rotation..."
11+ for i in $(seq 1 30); do
12+ oc exec -i openstackclient -n $NAMESPACE -- bash -s < ../../common/osp_endpoint_fingerprints.sh > /tmp/endpoint_fingerprints_after
13+ if bash ../../common/osp_check_fingerprints.sh 2>/dev/null; then
14+ echo "All endpoint certs rotated successfully."
15+ exit 0
16+ fi
17+ echo "Attempt $i/30: Not all certs rotated yet, waiting 20s..."
18+ sleep 20
19+ done
20+ echo "Collecting final fingerprints for failure diagnostics..."
1121 oc exec -i openstackclient -n $NAMESPACE -- bash -s < ../../common/osp_endpoint_fingerprints.sh > /tmp/endpoint_fingerprints_after
12-
13- - script : |
14- echo "Check if all services from before are present in after and have valid fingerprints"
1522 bash -s < ../../common/osp_check_fingerprints.sh
You can’t perform that action at this time.
0 commit comments