Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3011,9 +3011,11 @@ tests:
env:
COMPUTE_NODE_TYPE: custom-4-16384
CONTROL_PLANE_NODE_TYPE: custom-4-16384
CUSTOM_OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE: registry.ci.openshift.org/ocp/release:4.22.0-0.nightly-2026-03-18-195154
DEBUG_KEEP_CLUSTER: "true"
GCP_INSTALL_USE_MINIMAL_PERMISSIONS: "yes"
test:
- chain: openshift-e2e-test-qe
- ref: openshift-extended-test-longduration
workflow: cucushift-installer-rehearse-gcp-ipi
- as: gcp-ipi-ovn-ipsec-f28-destructive-ota
cron: 11 12 30 * *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,26 @@ function exit_trap {
trap 'exit_trap' EXIT
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM

# Keep cluster alive for debugging if DEBUG_KEEP_CLUSTER is set
if [[ "${DEBUG_KEEP_CLUSTER:-}" == "true" ]]; then
echo "=========================================="
echo " DEBUG MODE: Keeping cluster alive"
echo "=========================================="
echo "Cluster will be kept for 12 hours"
echo "To destroy early: oc create configmap stop-preserving -n default"
echo ""

timeout 12h bash -c 'while true; do
if oc get cm/stop-preserving -n default &> /dev/null 2>&1; then
echo "Stop signal received, exiting..."
break
fi
sleep 30
done' || true

exit 0
fi

export AWS_SHARED_CREDENTIALS_FILE=${CLUSTER_PROFILE_DIR:-/clusterprofie_fakedir}/.awscred
export AZURE_AUTH_LOCATION=${CLUSTER_PROFILE_DIR:-/clusterprofie_fakedir}/osServicePrincipal.json
export GCP_SHARED_CREDENTIALS_FILE=${CLUSTER_PROFILE_DIR:-/clusterprofie_fakedir}/gce.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ ref:
- name: OCP_ARCH
default: "amd64"
documentation: The architecture of the OCP cluster under test.
- name: DEBUG_KEEP_CLUSTER
default: "false"
documentation: |-
If set to "true", the cluster will be kept alive for 12 hours for debugging purposes.
To destroy the cluster early, create a configmap: oc create configmap stop-preserving -n default
credentials:
- namespace: test-credentials
name: ci-route-53
Expand Down