Remediate the platform
Outcome: every stateful component is backed up to the rhai-cli PVC and copied to your workstation. Kueue is Removed or Unmanaged. CodeFlare, ModelMesh, and KServe Serverless are Removed. Service Mesh 2, Serverless, and standalone Authorino are uninstalled. The full lint shows zero critical findings. Phase 5 of 10 · Before upgrade. Next: Workbench images.
The rule for this whole phase: back up before you flip, and flip in dependency order. Some flips destroy state, and some backup actions only work while the component that owns the data is still installed.
| Order | Step | Why here |
|---|---|---|
| 1 | Ray, TrustyAI, AI Pipelines backups | While the components that own the backup logic still run |
| 2 | Delete LlamaStackDistributions | Delete-and-replace; there is no upgrade path |
| 3 | Inventory the non-migrating components | Something to compare against after the upgrade |
| 4 | inferenceservice-config ignorelist | After every ISVC is RawDeployment, before the disables |
| 5 | Disable removed components and Service Mesh | Nothing depends on them any more |
| 6 | Uninstall 2.x serving operators, final lint | Clean assessment |
Prerequisites
- Convert model serving complete: the non-RawDeployment ISVC count is
0. - A shell in
rhai-cli-0(inside the pod) and a workstation shell. - You are ready to upgrade soon. The CodeFlare flip in 5.1 leaves user-created RayClusters without CodeFlare’s security config until the upgrade lands. Don’t open a long gap between this phase and Upgrade.
GitOps: the DSC, DSCI, and operator Subscriptions you change here are usually in Git. With the reconciler paused (see Pre-flight), patch them directly as shown, and record each change for the Git update in Clean up.
The DSC and DSCI patches here use v1 field names (modelmeshserving, serviceMesh) on purpose: you are still on 2.25. The operator converts the DSC and DSCI to v2 after the upgrade.
Procedure
5.1 Set CodeFlare to Removed and back up the RayClusters
In 3.5, KubeRay replaces CodeFlare for RayCluster management. KubeRay is provisioned by the ray DSC component, which stays Managed. Only codeflare is disabled. Existing RayCluster CRs survive the swap, but back them up in case reconciliation drops fields.
Disabling CodeFlare is a hard 3.5 prerequisite, even if you have no RayClusters. The backup action fails if CodeFlare is still Managed, so flip it first:
Expected output (last line):
Inside the pod, back up every RayCluster (this is read-only):
Expected output (the last command):
rhoai-2.x/raycluster-<name>-<ns>.yaml: the CR as it is today.rhoai-3.x/raycluster-<name>-<ns>.yaml: the converted 3.x shape. It’s noticeably smaller because the oauth-proxy sidecar, ServiceAccount, and volumes are stripped out. That trimmed shape is what a correctly migrated cluster should end up running. Post-upgrade’s--raycluster-from-backupneeds the right one.
Copy the backup off the pod (workstation) and confirm the clusters are still ready:
Expected output, per cluster (shape):
The backup covers CR configuration, not Ray runtime state. Warn users about downtime.
5.2 Back up TrustyAI metrics, data, and Guardrails config
TrustyAI’s storage schema changed between 2.x and 3.x. Without a snapshot, historical bias metrics and training data can become unreadable. Skip this section if this check returns anything other than Managed, or if no TrustyAIService exists:
Expected output (the first line, if TrustyAI applies to you):
Inside the pod. Both actions run cluster-wide. --output-dir is required: the container root filesystem is read-only.
The phase pre-upgrade but effective phase is post-upgrade warning is harmless. Ignore it.
Verify the metrics backup is valid JSON. The container doesn’t ship jq, so read it from your workstation:
Expected output (the last line):
Known issue: PVC-backed TrustyAI data backup prints “read/write on closed pipe”
Symptom. The trustyai.data action prints an unhandled client error but exits 0:
Diagnosis. This is expected for an empty PVC. DATABASE-backed services dump normally (for example, Dumped 844 lines).
Workaround. Not a failure, but confirm that the file count matches what the PVC actually holds rather than trusting the ✓.
Tracker. None filed. Observed in a field run.
Known issue: TrustyAI backup fails with permission denied
Symptom. trustyai.metrics or trustyai.data fails with permission denied.
Diagnosis. No --output-dir was given, so it tried to write to the read-only container root.
Workaround. Pass --output-dir /tmp/rhoai-upgrade-backup/trustyai.
Tracker. None. The CLI’s behavior.
Guardrails otelExporter. If any GuardrailsOrchestrator exports traces or metrics, save spec.otelExporter from your workstation (there’s no action for this):
Expected output: the metrics and data backup files, listed locally (shape):
5.3 AI Pipelines pre-upgrade check
DSPA pipelines keep running across the upgrade, but the schema changed. Inside the pod, scan for deprecated APIs and custom RBAC:
On a clean cluster this passes with nothing to fix. It may report:
- Deprecated
instructLabfield: safe to ignore. It’s tolerated during the upgrade. - Deprecated
v1alpha1DSPA: runrhai-cli migrate run --migration ai-pipelines.update-dsp-role --target-version 3.5.0, or update each CR tov1. - Custom RBAC roles that need updates: check with the AI Pipelines teams, then run
ai-pipelines.update-dsp-role. If the roles are managed through GitOps, the report is advisory only: update the source.
Re-run until it reports no remaining issues. Then capture the baseline snapshot that the post-upgrade check diffs against:
Expected output (the last line):
This file must survive the upgrade. Don’t delete the PVC or the rhai-cli StatefulSet before Post-upgrade runs the post-upgrade check.
5.4 Delete the LlamaStackDistributions
The Llama Stack 2 → 3 transition is delete-and-replace. In 3.5 it becomes OGX (Open GenAI Stack), and LlamaStackDistribution is replaced by OGXServer (v1beta1). The storage moves from SQLite to PostgreSQL, the VectorDB API is removed, and Inference becomes OpenAI-compatible. There is no in-place data migration.
Disconnected: skip this section. Llama Stack disconnected support starts in OpenShift AI 3.0.
Deleting an LSD permanently loses all of its data: agent state, vector DB metadata and embeddings, telemetry, file metadata, and everything in SQLite.
Cluster admin: identify every LSD and its owners, and tell the owners to archive anything they care about:
LSD owner (optional archive, for reference only): the SQLite data can’t be imported into 3.5. Inside the pod, add --dry-run first to preview:
Delete every LSD. This also clears the llamastack / config critical finding:
Expected output (the last line):
Owners recreate them as OGXServer CRs in Post-upgrade and port their client code: VectorDB → Vector_IO, Completions → OpenAI-compatible format, embeddings → an external embedding-model endpoint, and a review of agent code. See Working with OGX (3.5).
5.5 Inventory the components you aren’t migrating
These carry across with no spec changes. Confirm they’re healthy and record their state now.
Expected output, first command (shape; every pod Running):
- Model registry and catalog: registries should show Available under Settings → Model registry settings. During the upgrade they may be briefly unreachable while their pods restart.
- Feature Store (Tech Preview in 2.25, GA since 3.3): every instance
Ready. Optionally trigger a job:oc create job test --from=cronjob/<cronjob-name> -n <ns>. - Kubeflow Training Operator: PyTorchJobs keep running through the upgrade. KFTO v1 is deprecated as of 2.25.10 and is planned for removal in favor of Trainer v2. A later OpenShift upgrade drains nodes and can interrupt jobs, so make sure running jobs checkpoint.
5.6 Back up and update the inferenceservice-config ConfigMap
This must happen after every ISVC is RawDeployment and before the disables, so that the upgrade reconciler honors the new ignorelist. Back up from your workstation (the pod’s /tmp/rhoai-upgrade-backup path doesn’t exist locally):
Expected output:
Inside the pod. The action adds opendatahub.io/hardware-profile-name and opendatahub.io/hardware-profile-namespace to the disallowed list, and marks the ConfigMap opendatahub.io/managed=false so the upgrade doesn’t redeploy your ISVCs:
Verify (workstation):
Expected output: false, followed by a count of at least 2:
Side effect of managed=false: the upgrade will not redeploy model-serving pods, so they keep their current runtime image. If you want a newer runtime (for example, a newer vLLM build), restart each predictor after the upgrade, once the platform is healthy.
5.7 Disable the removed components
Every workload is now off these components, so removing them doesn’t affect anything running.
Kueue
This is the highest-risk removal. In 3.5, Managed Kueue is accepted by OLM but rejected at runtime. If left Managed, its admission webhook also intercepts Job creation across the whole cluster and can fall out of sync during the upgrade, rejecting Job submissions for any workload. Pick your end state.
Removed: disable Kueue entirely.
Expected output (last line):
The KueueReady condition goes to False / reason=Removed. That’s expected, and it stays False after the upgrade.
Unmanaged (external RHBOK): keep Kueue features through the Red Hat build of Kueue. RHBOK must be installed and working first (the rhai-cli kueue RHBOK migration action can automate the move).
If you were on embedded Managed Kueue, migrate using the 2.25 Kueue migration guide. Before you start, preserve your enabled frameworks:
Rename any LocalQueue named default (for example, to rhoai-kueue-default). RHBOK reserves that name, and admission breaks otherwise:
Expected output (before you set Unmanaged):
Label each Kueue-managed project kueue.openshift.io/managed=true. In a labeled namespace, these kinds must carry the kueue.x-k8s.io/queue-name annotation, or admission is rejected: pytorchjob, notebook, rayjob, raycluster, inferenceservice, llminferenceservice.
Then set the component:
Expected output (last line):
KueueReady reaches True only after the upgrade, once the JobSet operator is installed (Upgrade).
CodeFlare (confirm)
The lint reports this under ray/removal, but ray and codeflare are separate DSC components. You set codeflare to Removed in 5.1. Confirm it:
Expected output:
Known issue: ray: Removed silently leaves RayClusters unmanaged
Symptom. After the upgrade, raycluster.migrate reports Migrated: N, Failed: 0 and oc get raycluster -A shows STATUS=ready, but the head pod still runs the old 2.x spec, oauth-proxy sidecar included. Deleting the head pod doesn’t bring it back, yet the status still reads ready.
Diagnosis. ray isn’t a removed component. In 3.5 it provisions the KubeRay operator. With ray: Removed there’s no KubeRay, so nothing reconciles the rewritten CRs, and nothing updates their status either: it goes stale rather than red.
Workaround. Leave ray: Managed, unless you are deliberately dropping Ray and have no RayClusters to keep. If it’s already Removed, set it back to Managed and continue at Post-upgrade 8.5.
Tracker. None filed. Observed in a field run.
ModelMesh Serving
Expected output (last line):
KServe Serverless mode
Set serving to Removed and the default mode to RawDeployment in one patch:
The Knative stack takes several minutes (5–10) to tear down. Poll until it’s gone:
Expected output (eventually):
Then confirm every model still serves. RawDeployment doesn’t depend on Knative:
Expected output:
Known issue: Serverless teardown seems stuck
Symptom. oc get knativeserving -A still lists resources after 10 minutes.
Diagnosis.
Workaround. Wait for the Knative pods to reach zero. If a converted model goes READY=False during the teardown, check its predictor (oc get pods -n <ns> -l serving.kserve.io/inferenceservice=<name>). RawDeployment models don’t depend on Knative. Pod restarts later in the upgrade are expected.
Tracker. None.
5.8 Remove the Service Mesh dependency
OpenShift 4.19+ handles service mesh itself, so 3.x no longer needs the embedded one. Remove it from the DSCI, wait for the SMCP to drain, then delete the ServiceMeshMemberRoll while the Service Mesh 2 operator is still installed:
Expected output (the last command):
Known issue: oc delete smmr hangs
Symptom. The SMMR delete never returns.
Diagnosis. The SMMR carries a maistra.io/istio-operator finalizer, and only the still-installed Service Mesh 2 operator can clear it:
Workaround. Always do 5.8 before 5.9. If you’ve already uninstalled the operator, reinstall it briefly so the finalizer can run, then delete the SMMR.
Tracker. None. A consequence of the order.
5.9 Uninstall the 2.x serving operators
OpenShift Serverless, Service Mesh 2, and standalone Authorino were dependencies of the 2.x Serverless stack.
Don’t remove servicemeshoperator3 (OSSM v3). The Cluster Ingress Operator installs it to back the 3.x Gateway API. It’s part of the new platform. Only servicemeshoperator (v2) is a leftover.
Delete only the source CSV. These operators install with an all-namespaces OperatorGroup, so OLM mirrors each CSV into every namespace. On a 109-project cluster that’s 108 copies per operator, and a naive oc get csv -A | … | xargs oc delete csv sweep fires about 324 deletes against objects OLM owns. Deleting the single source CSV (the one without olm.copiedFrom) removes them all: in the field run, 324 rows went to 0.
Verify none remain. The trailing \. keeps OSSM v3 out of the match:
Expected output:
The Service Mesh 2 CRDs stay behind, and that’s deliberate for now. OLM never removes CRDs, so the Maistra *.istio.io CRDs survive. After the upgrade they block the 3.5 Data Science Gateway. Don’t delete them now. They’re removed, with a zero-CR safety check, in Post-upgrade 8.2.
5.10 Final pre-upgrade readiness
- Set the OpenShift AI Subscription’s update approval to
Manualso the channel change in Phase 7 can’t upgrade automatically:
Expected output:
- Confirm that the CSV, DSC, and DSCI are healthy:
Expected output:
Reconciliation can take a while. Don’t continue while the DSC or DSCI shows errors.
- Re-run the full assessment (inside the pod):
Expected output: a summary with zero failures (warnings are acceptable):
Verification
Platform remediation is done when:
rhai-cli lintshows no critical or prohibited findings (exit code0or2).- The DSC and DSCI are
Ready, and therhods-operator2.25 CSV isSucceeded. codeflare,modelmeshserving, andkserve.servingareRemoved,rayisManaged, and Kueue isRemovedorUnmanaged.- No Serverless, Service Mesh 2, or standalone Authorino CSVs remain. OSSM v3, if present, is untouched.
./ray-backup,./trustyai-backup,./inferenceservice-config-backup.yaml, and the PVC’sai_pipelines/dspa_pre_upgrade_pods.jsonall exist.
Rollback
You are still on 2.25, so most flips can be reversed. The deletions can’t.
- Component flips: set the component back to
Managedwith the sameoc patch(for example,codeflare,modelmeshserving,kserve.serving, DSCIserviceMesh). For Serverless and Service Mesh, the operators must be reinstalled first if you’ve already done 5.9. inferenceservice-config:oc apply -f ./inferenceservice-config-backup.yaml.- Not reversible: deleted LlamaStackDistributions and their data, and any CSVs or operands you uninstalled (those need a reinstall). For anything beyond a component flip, restore from the Pre-flight backup.
- Don’t leave CodeFlare
Removedfor long without upgrading. Users could create RayClusters without its security configuration.