Repository navigation
Conversation
|
Pipeline controller notification This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration. Use |
|
/test ? |
PR Summary by Qodofix(ci): free the GKE static IP before the operator deployment
AI Description
Merge Risk
|
|
/test e2e-gke-operator-nightly |
|
/cherry-pick release-2.1 |
|
@zdrapela: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Code Review by QodoView medium (2) 1. Medics inspect the wrong GKE namespaces
|
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 redhat-developer#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
20f51a7 to
eb5062c
Compare
|
/test e2e-gke-operator-nightly |
|
/test e2e-gke-helm-nightly |
|



Fixes the shared GKE static-IP hijack: an Ingress left behind by an aborted job keeps
rhdh-static-ip, so the next job's first test suite runs against the stale RHDH instance. This is what failed theshowcasesuite of #5982's GKE operator presubmit (showcasewas served by the leftovershowcase-rbacdeployment).Changes
gke-operator.sh: delete the RBAC namespace before the first deployment, as the Helm job already does. The namespace delete waits for the old load balancer to release the IP.manifest.sh: addwait_for_gke_ingress_ip, called after the four places that create an Ingress. If the new Ingress never gets the IP, the job fails with the addresses it found instead of running tests against a stale instance.CI-medic-guide.md: document therhdh-gkeProw queue (replacing the cron advice), the shared-IP failure mode and its symptoms, and the correct namespace names.Verification on the shared cluster (throwaway Ingresses, no job running):
Specified IP address is in-use and would result in a conflict.Test namespaces were deleted and
rhdh-static-ipisRESERVEDagain.Jira: https://redhat.atlassian.net/browse/RHDHBUGS-4181
Backport:
/cherry-pick release-2.1; release-1.10 needs a manual backport becausegke-helm-deployment.shdiffers there.