You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eb5062c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ci): free the GKE static IP before the operator deployment
All GKE jobs share the fixed IP `rhdh-static-ip`, and GCE hands it to one
Ingress at a time. An interrupted job leaves its Ingress behind, which keeps
serving gke-ci.janus-idp.io, so the next job's first test suite runs against a
stale instance. That is what happened when the GKE operator presubmit of
#5982 tested `showcase`, not `showcase-rbac`.
The Helm job already deletes the RBAC namespace before its first deployment;
do the same in the operator job. A namespace delete waits for the old load
balancer to release the IP, so the new Ingress can take it.
Add `wait_for_gke_ingress_ip` after the four places that create an Ingress
and fail the job with the addresses it found if its own Ingress never gets
the IP, so this class of stale state no longer hides behind unrelated test
failures. A failed `kubectl get` during the wait is retried instead of ending
the job under `errexit`.
Assisted-by: OpenCode
Copy file name to clipboardExpand all lines: docs/e2e-tests/CI-medic-guide.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -475,7 +475,7 @@ Tests on AWS Elastic Kubernetes Service. See [`eks-helm.sh`](../../.ci/pipelines
475
475
476
476
Tests on Google Kubernetes Engine. See [`gke-helm.sh`](../../.ci/pipelines/jobs/gke-helm.sh) / [`gke-operator.sh`](../../.ci/pipelines/jobs/gke-operator.sh). GCP utilities in [`gcloud.sh`](../../.ci/pipelines/cluster/gke/gcloud.sh).
@@ -486,7 +486,9 @@ Tests on Google Kubernetes Engine. See [`gke-helm.sh`](../../.ci/pipelines/jobs/
486
486
487
487
**Access**: The cluster runs in the `rhdh-qe` Google Cloud project. See [Google Cloud access](../../.ci/pipelines/README.md#google-cloud-rhdh-qe-project) for how to get access.
488
488
489
-
**Common failures**: Since GKE uses a long-running shared cluster, most issues stem from stale state -- a previous job exited without proper cleanup, or two jobs were triggered at the same time and collided on shared resources (namespaces, certificates, static IP). If jobs overlap, adjust the cron schedule in the [ci-operator config](https://github.com/openshift/release/tree/master/ci-operator/config/redhat-developer/rhdh) to space them out.
489
+
**Common failures**: Since GKE uses a long-running shared cluster, most issues stem from stale state -- a previous job exited without proper cleanup, or two jobs were triggered at the same time and collided on shared resources (namespaces, certificates, static IP). All GKE jobs run in the `rhdh-gke` Prow queue, so they cannot overlap: a queued job stays `triggered` with no pod until the running one finishes. If two jobs still collide, check the queue in the [Prow config](https://github.com/openshift/release/blob/main/core-services/prow/02_config/redhat-developer/rhdh/_prowconfig.yaml).
490
+
491
+
Ingresses on this cluster share the fixed IP `rhdh-static-ip`, and GCE gives it to one Ingress at a time. An Ingress left behind by an aborted or timed-out job (for example in `showcase-rbac`) therefore keeps serving `gke-ci.janus-idp.io`, and the next job's tests run against the old instance. Symptoms: the `/healthcheck` passes seconds after the Ingress is created while the RHDH pod is still starting, and guest sign-in shows no sidebar. Every GKE job deletes the other test namespace before its first deployment, and `wait_for_gke_ingress_ip` fails the job with the addresses it found if its own Ingress never gets the IP.
0 commit comments