Repository navigation
fix(ci): repair OLM on the shared GKE cluster and keep it installed - #5982
openshift-merge-bot[bot] merged 3 commits into
Conversation
|
Pipeline controller notification This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration. Use |
PR Summary by QodoSerialise GKE CI jobs with a cluster lease and harden OLM handling
AI Description
Merge Risk
|
|
/test ? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5982 +/- ##
==========================================
- Coverage 82.04% 78.41% -3.64%
==========================================
Files 71 64 -7
Lines 908 755 -153
Branches 139 122 -17
==========================================
- Hits 745 592 -153
Misses 162 162
Partials 1 1
*This pull request uses carry forward flags. Click here to find out more.
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
|
/test e2e-gke-helm-nightly |
|
/test e2e-gke-operator-nightly |
Code Review by Qodo 1. Other operators lose cluster permissions
|
2a4c8f6 to
80b1c58
Compare
80b1c58 to
c51a859
Compare
|
/test e2e-gke-operator-nightly |
c51a859 to
0534e4c
Compare
The GKE nightlies share one long-lived cluster and its cluster-scoped OLM installation. A cleanup that failed after a partial uninstall left OLM unusable, and every Operator job then failed on "detected existing OLM resources" until the cluster was repaired by hand. - Detect OLM from its deployments instead of `operator-sdk olm status`, which fetches the release manifests and fails on a partial installation. - Remove OLM by name in OLM's documented uninstall order before installing, and retry, so a partial installation repairs itself instead of failing the job forever. - Keep OLM installed on the long-lived cluster; cleanup now removes the RHDH CatalogSource and the OLM-owned RBAC of the deleted operator namespace and logs failures instead of aborting the rest of the trap. - Restore `techdocs.cache.ttl`: TechDocs only creates its cache when that key is set, so without it no `techdocs` keys reach Redis and the cache test cannot pass (RHDHBUGS-3762). - Log the Redis DBSIZE and techdocs keys in that test, and `exec` its port-forward so stopping the session also stops `kubectl`; Playwright retries used to fail with "address already in use". Jira: https://redhat.atlassian.net/browse/RHDHBUGS-4181 Assisted-by: OpenCode
0534e4c to
65b3a9a
Compare
|
/test e2e-gke-operator-nightly |
|
/agentic_review |
OLM 0.28 puts the operators.coreos.com/csv-cleanup finalizer on every CSV and only olm-operator removes it. The repair stops olm-operator first, so deleting the CSV CRD left it Terminating, the delete timed out and every retry failed on the same stuck CRD. Also drop the claim that the removal follows OLM's documented order: upstream deletes the CSVs while olm-operator is still running. Assisted-by: OpenCode
`operator-sdk olm uninstall`, which the release branches still run on the shared GKE cluster, deletes the CRDs before the deployments. An interrupted uninstall left the deployments Available without the APIs, so the health check skipped the repair. It now also requires the core OLM CRDs and the packages APIService. Stripping the csv-cleanup finalizer skipped what it does: delete the ClusterRoles, ClusterRoleBindings and webhook configurations OLM created for the CSV. Delete them by their owner label instead of orphaning them. Assisted-by: OpenCode
|
|
/test e2e-gke-operator-nightly |
|
Scheduling tests matching the |
|
@zdrapela: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
|
try to comment to unstuck tide |
|
tide |
a7ed6a4
into
redhat-developer:main
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



Fixes the GKE nightly OLM failures (RHDHBUGS-4181).
All GKE jobs run on a single long-lived cluster and share the
showcase-k8s-ci-nightly,showcase-rbac-k8s-ci-nightlyandrhdh-keycloaknamespaces, the ingress hostname and the cluster-scoped OLM installation. A cleanup that failed after a partialoperator-sdk olm uninstallleft OLM unusable, and every Operator job then failed ondetected existing OLM resourcesuntil the cluster was repaired by hand.OLM (
.ci/pipelines/lib/operators.sh,cleanup_gke)olm-operator,catalog-operatorandpackageserverdeployments instead ofoperator-sdk olm status, which downloads the release manifests and fails on a partial installation.operator-sdkpinned in.ci/images/Dockerfilealready installs OLM 0.28.0.Test fixes
techdocs.cache.ttl: TechDocs only creates its cache when that key is set, so since chore(e2e): remove migrated wrapper plugin tests and CI infrastructure #4795 removed it notechdocskeys were written to Redis and the cache test could not pass (RHDHBUGS-3762).DBSIZEand techdocs keys in that test so the next failure shows whether Redis is empty or holds the wrong keys.execthe port-forward in the Redis cache test so stopping the session also stopskubectl; Playwright retries no longer fail withaddress already in useon port 16379.Concurrency between GKE jobs is handled by a Prow job queue (
rhdh-gke, capacity 1), which also covers PR/testand Gangway runs.Related PRs: openshift/release#89921 (Prow job queue) and openshift/release#89917 (nightly time grid).
Jira: https://redhat.atlassian.net/browse/RHDHBUGS-4181