Skip to content

This is the multi-page printable view of this section. .

Return to the regular view of this page.

RHOAI 2.25 → 3.5 migration

Migrate Red Hat OpenShift AI 2.25.10 (or later 2.25.z) in place to 3.5 — in the order you do the work, with every step verified and every known break documented where you hit it.

Outcome: an OpenShift AI cluster moved in place from 2.25.10 or a later 2.25.z to 3.5, with every workload migrated off the components 3.5 removes, the upgrade applied, and a before/after test record that shows nothing broke without you noticing.

This manual is a task-ordered field version of the 2.25 → 3.5 migration. The official documentation is organized by component, with each component split into “before upgrade” and “after upgrade” chapters. Here each step sits in the phase you do it in, and the pages follow that order in the left nav. Every command is followed by a verify step, and every known break is documented on the page where you will hit it.

Important

The one rule: migrate a workload off a component before you remove the component. Get the order wrong and you lose a running model, with no automated way back. OpenShift AI does not support rollback once an in-place migration starts. The only way back is the verified backup you take in Pre-flight.

The migration at a glance

StagePageWhat you doWhy it’s here
Prepare1. Pre-flightConfirm deployment type and prerequisites, install cert-manager, take a verified backupThe only rollback path is a backup
Before upgrade2. BaselineSnapshot every workload’s working stateProof the migration didn’t break anything without anyone noticing
Before upgrade3. AssessDeploy rhai-cli, run the lint, send it to Red HatThe findings drive every remaining phase
Before upgrade4. Convert model servingServerless → RawDeployment, ModelMesh → KServeMove models off the serving modes 3.5 removes
Before upgrade5. Remediate the platformBack up stateful components, then disable removed onesBack up before you flip; flip in dependency order
Before upgrade6. Workbench imagesTriage custom images, bump tags, stop workbenchesWorkbench auth and routing change in 3.x
Upgrade7. UpgradeSwitch channel, approve, install JobSet, wait for the DSCThe operator upgrade itself
After upgrade8. Post-upgradeClear gates, fix the Gateway, restore config, migrate workbenches and RayFinish each component on 3.x
After upgrade9. Re-testRe-run the baseline tests and diffProve the workloads survived
Clean up10. Clean upRemove 2.x leftovers, record the final stateFinish clean

If something has already gone wrong, start at Things that broke, a symptom index that links to each fix where it lives. Use the selector at the top of any page to show only the steps for your deployment type (GitOps-managed or not), cluster network, and your Kueue end state.

Why this is a migration, not an upgrade

Earlier OpenShift AI version bumps were routine operator upgrades. The move to 3.x changes all of the following in one step:

  • Components are removed. KServe Serverless mode, ModelMesh Serving, and CodeFlare are gone in 3.5. The embedded Kueue is replaced by the external Red Hat build of Kueue (RHBOK), and the embedded Service Mesh dependency is dropped. Any workload running on these must be migrated off first, or it stops serving.
  • Components are renamed. Llama Stack becomes OGX (Open GenAI Stack), and the LlamaStackDistribution CR is replaced by OGXServer (v1beta1). RawDeployment model serving is displayed as Standard in 3.5. This is a display rename only, not a re-conversion.
  • Routing changes for the dashboard and workbenches, not Standard models. The dashboard and workbenches move to the Kubernetes Gateway API. Workbench URLs become path-based (https://<gateway-host>/notebook/<ns>/<name>/) and their 2.x Routes are deleted, so bookmarks break. An ISVC that is already RawDeployment keeps its Route and its URL unchanged (measured; see Re-test). Serverless ISVCs are the ones whose endpoints move.
  • Authentication changes for workbenches only. Workbench pods move from the oauth-proxy sidecar to kube-rbac-proxy. Model serving does not make this move: an auth-enabled Standard ISVC still runs oauth-proxy on 3.5.
  • Schema changes. HardwareProfiles move to a new API group, and the DSC/DSCI move from the v1 to the v2 API. The operator converts them automatically on startup.

The order that matters

  1. Convert Serverless InferenceServices to RawDeployment, so they survive the removal of Serverless mode. (Phase 4)
  2. Migrate ModelMesh models to KServe, so they survive the removal of ModelMesh. (Phase 4)
  3. Back up every stateful component (RayClusters, TrustyAI metrics and data, AI Pipelines DSPAs) before the destructive flips. (Phase 5)
  4. Only then disable Serverless, ModelMesh, and CodeFlare, set Kueue to Removed or Unmanaged, and tear down Service Mesh. (Phase 5)
  5. Handle the workbenches: bump the images you can, plan rebuilds for the rest, stop them all. (Phase 6)
  6. Upgrade, then verify and re-test. (Phases 7–9)

The assessment drives the work, but it does not stop you

Red Hat ships rhai-cli, which inspects the cluster and reports what must change. The loop is: run rhai-cli lint, fix the critical and prohibited findings, re-run until clean, then upgrade.

Two things the assessment is not:

  • Not a workload inventory. It reports incompatible workloads and removed components. Compatible ones (a healthy RawDeployment ISVC, a Feast Feature Store, a KFTO PyTorchJob) do not appear. A clean lint means “nothing blocking”, not “nothing to migrate”. That is why Baseline inventories what is actually running.
  • Not a gate. The lint is advisory and has no hook into OLM. On a 2.25.10 test cluster with every pre-migration step deliberately skipped, OLM walked 2.25.10 → 2.25.11 → 3.5.1 and reached Succeeded without any check stopping it. The real enforcement happens one layer down: the 3.x operator installs, then refuses to reconcile the DataScienceCluster until its upgrade gates clear (Ready=False [AdminAckRequired]). That held the workloads in their pre-upgrade shape on the test cluster. But by then you are past the point where rollback is supported, and the gates are acknowledgements that anyone can set by hand. See Known issue: DSC held at AdminAckRequired.

Run the lint, clear it, then upgrade.

Roles

  • Cluster administrator: owns the migration. Runs the assessment and rhai-cli migrate actions, performs the upgrade, and coordinates everyone else. Needs cluster-admin, bash, oc, and jq.
  • OpenShift AI administrator: dashboard and project access. Handles workbench images, custom runtimes, and user groups.
  • OpenShift AI users (data scientists, ML engineers): own application-level artifacts such as Llama Stack configs, pipeline definitions, and custom workbench images. Their involvement is optional if the administrator handles everything.

Open a proactive support case

Before you begin, open a proactive support case on the Red Hat Customer Portal to tell Red Hat you plan to migrate to 3.5 (How to submit a Proactive Case). You attach the assessment output to it in Assess.

Note

Orientation, not a support statement. The commands and outputs here are what worked during field runs of 2.25.10 → 3.5.1. Check them against the official OpenShift AI 3.5 documentation before relying on them. This page documents the in-place path; for side-by-side, see Pre-flight.

1 - Pre-flight

Phase 1 — confirm the deployment type and prerequisites, install cert-manager, and take the verified backup that is your only rollback path.

Outcome: the cluster meets the 3.5 prerequisites, nothing will revert your changes behind your back, cert-manager is installed, and a verified, restorable backup exists. Phase 1 of 10 · Prepare. Next: Baseline.

Prerequisites

  • cluster-admin on the 2.25 cluster, and a workstation with bash, oc, and jq.
  • The cluster API endpoint, https://api.<cluster-domain>:6443, and a login token. Get both from the OpenShift console: your user menu → Copy login command. In this manual, replace <cluster-domain> with your cluster’s base domain (for example ocp.example.com) and <token> with your token.
  • A maintenance window agreed with your users. OpenShift AI does not support zero-downtime upgrades.
Warning

Run every snippet in this manual with bash, not zsh. The snippets assume bash word-splitting. Under zsh (the macOS default), an unquoted for c in $VAR; do … runs once with the whole string instead of once per item, which quietly defeats the Istio-CRD safety check in Post-upgrade, among others. Start a bash shell first, or wrap multi-line blocks in bash -c '…'. (for x in $(cmd) works in both shells.)

Log in and confirm who you are:

bash
oc login --token=<token> --server=https://api.<cluster-domain>:6443
oc whoami

Expected output (the last line):

<your-username>

Procedure

1.1 Confirm the deployment type

Deployment type: GitOps-managed

Stop the GitOps reconciler before anything else. Argo CD (or any GitOps controller) that owns your OpenShift AI resources will revert the migration as you make it. Converted InferenceServices, flipped ServingRuntimes, and DSC component states all go back to their Git state, usually within seconds and without telling you.

Two steps. You need both:

# 1. Turn off automated sync on every Application that owns RHOAI resources
for a in $(oc get applications.argoproj.io -n openshift-gitops -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}'); do
  oc patch application.argoproj.io "$a" -n openshift-gitops --type=merge \
    -p '{"spec":{"syncPolicy":{"automated":null}}}'
done

# 2. Terminate any sync still in flight — disabling automated sync does NOT cancel one
oc get applications.argoproj.io -n openshift-gitops -o json \
  | jq -r '.items[] | select(.operation != null) | .metadata.name' \
  | while read -r a; do oc patch application.argoproj.io "$a" -n openshift-gitops --type=merge -p '{"operation":null}'; done

Verify that no Application is still running an operation:

oc get applications.argoproj.io -A -o json | jq -r '.items[] | select(.operation != null) | .metadata.name'

Expected output:

(no output)

Verify that automated sync is off everywhere:

oc get applications.argoproj.io -A -o json | jq -r '[.items[] | select(.spec.syncPolicy.automated != null)] | length'

Expected output:

0

While the reconciler is paused, you apply this manual’s changes directly with oc. Record each one so you can commit the 3.x state to Git in Clean up before you turn sync back on.

Deployment type: Not GitOps-managed

Confirm that no Argo CD Application exists, so nothing can revert your changes:

oc get applications.argoproj.io -A --no-headers 2>/dev/null | wc -l

Expected output:

0

If the count is not 0, the cluster is GitOps-managed. Set Deployment type to GitOps-managed and follow that block.

Deployment type: GitOps-managed

Known issue: GitOps reverts the migration after sync is “off”

Symptom. A converted ServingRuntime goes back to multiModel: true, or a DSC component returns to Managed, minutes after you changed it, even though the owning Application shows automated: none.

Diagnosis. An operation already in flight keeps retrying and re-applying Git state. Turning off automated sync does not cancel it:

oc get applications.argoproj.io -A -o json | jq -r '.items[] | select(.operation != null) | .metadata.name'

Workaround. Clear the operation (step 2 above) and confirm the command returns nothing. Then re-apply the change that was reverted.

Tracker. None filed. Observed in a field run: one runtime was reverted twice, minutes apart.

1.2 Confirm the prerequisites

OpenShift 4.19.9 or later. If you are below that, upgrade OpenShift first (OpenShift update docs).

oc get clusterversion version -o jsonpath='{.status.desired.version}{"\n"}'

Expected output (a version at or above):

4.19.9

OpenShift AI 2.25.10 or later. The 3.5 migration channel only accepts 2.25.10+.

oc get csv -n redhat-ods-operator -o name | grep rhods-operator

Expected output (2.25.10 or a later 2.25.z):

clusterserviceversion.operators.coreos.com/rhods-operator.2.25.10

Kueue management state. Before the upgrade it must be Removed or Unmanaged. You change it in Remediate the platform. For now, just record the current state:

oc get datasciencecluster -A -o jsonpath='{.items[0].spec.components.kueue.managementState}{"\n"}'

Expected output: one of Managed, Removed, or Unmanaged:

Managed
  • Removed: Kueue is disabled and ready to migrate.
  • Unmanaged: ready to migrate, as long as an external Red Hat build of Kueue (RHBOK) operator is installed and working.
  • Managed: not supported in 3.5. OLM accepts it for backward compatibility, but it is rejected at runtime. You will move off it in Phase 5.

Kueue end state: Removed

Kueue path: Removed. You will disable Kueue entirely in Phase 5. Nothing else to prepare now.

Kueue end state: Unmanaged (external RHBOK)

Kueue path: Unmanaged (RHBOK). The external Red Hat build of Kueue operator must be installed and working before you set Unmanaged in Phase 5. If you are on embedded Managed Kueue today, plan the RHBOK migration now using the 2.25 Kueue migration guide.

1.3 Choose your migration approach

  • Side-by-side. Stand up a second 3.5 environment next to the untouched 2.25 one and move content across. The 2.25 environment stays intact, so a full backup is recommended rather than mandatory. Choose this if you can afford a second environment and a longer overlap.
  • In-place. Modify the existing environment. Choose this if you must migrate inside a strict maintenance window. It carries the highest risk: a robust full-cluster backup is mandatory, because it is the only rollback.

This manual documents the in-place path.

1.4 Notify users

Tell your users the plan and the downtime window. Also warn them that dashboard and workbench URLs change (the Gateway API move) and that Llama Stack data is not carried across (see Remediate the platform).

1.5 Install the cert-manager Operator for Red Hat OpenShift

3.x requires the cert-manager Operator.

Create the namespace, OperatorGroup, and Subscription:

oc apply -f - <<EOF
apiVersion: v1
kind: Namespace
metadata:
  name: cert-manager-operator
---
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
  name: openshift-cert-manager-operator
  namespace: cert-manager-operator
spec:
  targetNamespaces:
    - cert-manager-operator
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: openshift-cert-manager-operator
  namespace: cert-manager-operator
spec:
  channel: stable-v1
  name: openshift-cert-manager-operator
  source: redhat-operators
  sourceNamespace: openshift-marketplace
  installPlanApproval: Automatic
EOF

Deployment type: GitOps-managed

Add these three manifests to your Git source too, so the next sync doesn’t prune them.

Verify the operator succeeded and its pods are running:

oc get csv -n cert-manager-operator -o jsonpath='{range .items[*]}{.metadata.name} {.status.phase}{"\n"}{end}' | grep cert-manager
oc get pods -n cert-manager --no-headers | awk '{print $3}' | sort -u

Expected output (the version suffix will vary):

cert-manager-operator.v1.x.y Succeeded
Running

1.6 Take a verified backup

For an in-place migration this is the only rollback path. Do not continue without it.

  • An etcd snapshot of the control plane.
  • An OADP (OpenShift API for Data Protection) backup of the OpenShift AI namespaces and persistent volumes.

Follow OpenShift backup and restore. Test a restore before you go on. An untested backup is not a rollback path.

If you use OADP, verify the backup completed:

oc get backups.velero.io -n openshift-adp -o custom-columns='NAME:.metadata.name,PHASE:.status.phase'

Expected output (your backup name):

NAME                    PHASE
rhoai-pre-migration     Completed
Note

The component backups later in this manual (RayClusters, TrustyAI, AI Pipelines in Phase 5) protect individual components’ state during the flips. They do not replace the full-cluster backup.

Verification

Pre-flight is done when all of these hold:

  • oc whoami returns your user, and you are in bash.
  • 1.1 is done for your deployment type, and nothing can revert your changes.
  • OpenShift is ≥ 4.19.9 and OpenShift AI is ≥ 2.25.10.
  • The cert-manager CSV reports Succeeded.
  • A full-cluster backup exists and you have tested restoring it.
  • A proactive support case is open (overview).

Rollback

Nothing in this phase touches OpenShift AI workloads.

Deployment type: GitOps-managed

  • Re-enable GitOps only if you are abandoning the migration before making any changes. Restore each Application’s syncPolicy.automated from Git (or re-apply the Application manifest). If you have already made migration changes, update Git first (see Clean up), or the next sync reverts them.
  • cert-manager is a 3.x prerequisite and is harmless on 2.25. Leave it installed.

2 - Baseline

Phase 2 — capture a working before-snapshot of every model, workbench, pipeline server, Ray cluster, and guardrails orchestrator, to diff against after the upgrade.

Outcome: a saved, timestamped record of what works today: every InferenceService’s mode and response, every workbench’s HTTP status, every DSPA’s health, every Ray cluster’s state, and every guardrails orchestrator’s backend health. Re-test re-runs the same probes and diffs against this record. Phase 2 of 10 · Before upgrade. Next: Assess.

A migration without a baseline is just hope. Without one, you cannot tell whether something failed because of the migration or was already broken. This phase has no equivalent in the component-organized reference guide, and it is the cheapest insurance in the whole manual.

Prerequisites

  • Pre-flight complete. You are logged in as a cluster-admin user in bash.
  • A local directory to hold the record:
export BASELINE=./baseline-$(date -u +%Y%m%dT%H%MZ) && mkdir -p "$BASELINE" && echo "$BASELINE"

Expected output (your timestamp):

./baseline-20261111T1500Z

Every probe below writes its output into $BASELINE with tee.

Procedure

2.1 Inventory the workloads

{
echo "--- ISVCs ---"
oc get isvc -A -o custom-columns='NS:.metadata.namespace,NAME:.metadata.name,MODE:.metadata.annotations.serving\.kserve\.io/deploymentMode,URL:.status.url,READY:.status.conditions[?(@.type=="Ready")].status'
echo "--- Workbenches ---"
oc get notebook -A -o custom-columns='NS:.metadata.namespace,NAME:.metadata.name'
echo "--- DSPAs ---"
oc get dspa -A
echo "--- Ray clusters ---"
oc get raycluster -A
} | tee "$BASELINE/inventory.txt"

Expected output (shape; your names will differ). Each section header is followed by a table or No resources found:

--- ISVCs ---
NS             NAME                MODE            URL                                   READY
ml-project-a   my-serverless-isvc  Serverless      https://my-serverless-isvc-...        True
ml-project-b   my-raw-isvc         RawDeployment   https://my-raw-isvc-ml-project-b...   True
ml-project-c   my-modelmesh-isvc   ModelMesh       grpc://modelmesh-serving.ml-proj...   True
--- Workbenches ---
...

Record the deployment mode of every ISVC. The Serverless and ModelMesh rows are the workloads you convert in Convert model serving. If anything is already missing or broken, write it down now, so the migration doesn’t get blamed for it later.

2.2 Inference-test each model

The probe finds each model’s ID (/v1/models for vLLM) and sends a fixed, deterministic request (temperature: 0) to every externally reachable ISVC. ISVCs that only have a svc.cluster.local URL skip the HTTP probe; their predictor pod state is the smoke test.

for isvc in $(oc get isvc -A -o jsonpath='{range .items[*]}{.metadata.namespace}/{.metadata.name}{"\n"}{end}'); do
  NS="${isvc%/*}"; NAME="${isvc##*/}"
  URL=$(oc get isvc "$NAME" -n "$NS" -o jsonpath='{.status.url}')
  POD_STATE=$(oc get pods -n "$NS" -l serving.kserve.io/inferenceservice="$NAME" \
    -o jsonpath='{.items[0].status.phase}' 2>/dev/null)
  # ModelMesh pods don't carry the inferenceservice label — fall back to the ModelMesh selector
  [ -z "$POD_STATE" ] && POD_STATE=$(oc get pods -n "$NS" -l modelmesh-service=modelmesh-serving \
    -o jsonpath='{.items[0].status.phase}' 2>/dev/null)
  echo "--- $isvc ---"
  echo "  URL:           $URL"
  echo "  Predictor pod: ${POD_STATE:-no pod}"
  [[ "$URL" != https://* ]] && { echo "  HTTP test:     skipped (cluster-internal only)"; continue; }
  MODEL_ID=$(curl -sk --max-time 10 "${URL}/v1/models" 2>/dev/null | jq -r '.data[0].id // empty')
  if [ -n "$MODEL_ID" ]; then
    REPLY=$(curl -sk --max-time 30 "${URL}/v1/completions" \
      -H 'Content-Type: application/json' \
      -d "{\"model\":\"$MODEL_ID\",\"prompt\":\"The capital of France is\",\"max_tokens\":8,\"temperature\":0}" \
      | jq -r '.choices[0].text // "(error)"')
    echo "  vLLM model id: $MODEL_ID"
    echo "  Completion:    $REPLY"
  fi
done | tee "$BASELINE/inference.txt"

Expected output, per ISVC (shape):

--- ml-project-a/my-serverless-isvc ---
  URL:           https://my-serverless-isvc-ml-project-a.apps.<cluster-domain>
  Predictor pod: Running
  vLLM model id: my-serverless-isvc
  Completion:     Paris. The capital of Germany

Every predictor pod should be Running, and every reachable model should return a sensible completion. If an auth-enabled ISVC returns (error) or nothing, add -H "Authorization: Bearer $(oc whoami -t)" to both curl calls and record that it needs auth.

2.3 Confirm workbenches respond

2.x workbenches are exposed through OpenShift Routes. A 200, 302, or 303 means the pod and Route are healthy.

for nb in $(oc get notebook -A -o jsonpath='{range .items[*]}{.metadata.namespace}/{.metadata.name}{"\n"}{end}'); do
  NS="${nb%/*}"; NAME="${nb##*/}"
  HOST=$(oc get route "$NAME" -n "$NS" -o jsonpath='{.spec.host}' 2>/dev/null)
  if [ -z "$HOST" ]; then echo "$nb: no Route (workbench may be stopped)"; continue; fi
  CODE=$(curl -sk -o /dev/null -w '%{http_code}' --max-time 10 "https://${HOST}/")
  echo "$nb https://${HOST}/ -> HTTP $CODE"
done | tee "$BASELINE/workbenches.txt"

Expected output, per workbench (shape):

ml-project-a/my-workbench https://my-workbench-ml-project-a.apps.<cluster-domain>/ -> HTTP 302

2.4 Confirm the DSPAs and Ray clusters respond

TOKEN=$(oc whoami -t)
for dspa in $(oc get dspa -A -o jsonpath='{range .items[*]}{.metadata.namespace}/{.metadata.name}{"\n"}{end}'); do
  NS="${dspa%/*}"; DSPA_NAME="${dspa##*/}"
  # The API server route is ds-pipeline-<dspa-name>; ds-pipeline-md-<dspa-name> is the metadata endpoint, not the API.
  DSPA_HOST=$(oc get route "ds-pipeline-${DSPA_NAME}" -n "$NS" -o jsonpath='{.spec.host}' 2>/dev/null)
  echo "--- DSPA $dspa https://${DSPA_HOST} ---"
  [ -z "$DSPA_HOST" ] && { echo "  no route found"; continue; }
  curl -sk -H "Authorization: Bearer $TOKEN" "https://${DSPA_HOST}/apis/v2beta1/healthz" | jq -c .
done | tee "$BASELINE/dspa.txt"

oc get raycluster -A -o custom-columns='NS:.metadata.namespace,NAME:.metadata.name,DESIRED:.spec.workerGroupSpecs[0].replicas,AVAILABLE:.status.availableWorkerReplicas,STATUS:.status.state' \
  | tee "$BASELINE/ray.txt"

Expected output: each DSPA returns a healthz JSON body, and each Ray cluster shows STATUS=ready with AVAILABLE equal to DESIRED (shape):

NS             NAME          DESIRED   AVAILABLE   STATUS
ml-project-d   raycluster-a  2         2           ready

2.5 Baseline TrustyAI and Guardrails

Post-upgrade checks that each GuardrailsOrchestrator reports its services HEALTHY. Capture that state now. An orchestrator pointing at a backend that never existed reports UNKNOWN both before and after, and without a baseline you cannot tell that apart from a migration regression.

{
oc get trustyaiservice -A
oc get guardrailsorchestrator -A
for g in $(oc get guardrailsorchestrator -A -o jsonpath='{range .items[*]}{.metadata.namespace}/{.metadata.name}{"\n"}{end}'); do
  NS="${g%/*}"; NAME="${g##*/}"
  HOST=$(oc get route "${NAME}-health" -n "$NS" -o jsonpath='{.spec.host}' 2>/dev/null)
  echo "--- $g ---"
  [ -z "$HOST" ] && { echo "  no health route"; continue; }
  curl -sSk "https://${HOST}/info" -H "Authorization: Bearer $(oc whoami -t)" | jq -c .
done
} | tee "$BASELINE/trustyai.txt"

Expected output, per orchestrator (shape):

--- ml-project-e/my-gorch ---
{"services":{"openai":{"status":"HEALTHY"},"regex":{"status":"HEALTHY"}}}

Verification

Confirm the record files exist and are non-empty:

for f in inventory inference workbenches dspa ray trustyai; do test -s "$BASELINE/$f.txt" && echo "$f ok" || echo "$f EMPTY"; done

Expected output:

inventory ok
inference ok
workbenches ok
dspa ok
ray ok
trustyai ok

EMPTY is correct for a workload type your inventory shows you don’t run (for example, no Ray clusters means ray EMPTY). EMPTY for inventory is not: re-run 2.1. Keep the whole $BASELINE directory. It is your evidence in Re-test.

Rollback

Read-only phase. Nothing to roll back.

3 - Assess

Phase 3 — deploy the rhai-cli pod, run the migration lint, read its findings, and submit the report to Red Hat.

Outcome: a long-lived rhai-cli pod with a persistent backup volume in rhai-migration, a first assessment report, and that report attached to your proactive support case. The findings decide which of Phases 4–6 you need. Phase 3 of 10 · Before upgrade. Next: Convert model serving.

Prerequisites

  • Baseline saved.
  • Permission to create a namespace, a StatefulSet, and a PVC.
  • A StorageClass that can provision a 1 Gi RWO volume. The default StorageClass works on most clusters.

Cluster network: Disconnected (air-gapped)

Disconnected: mirror registry.redhat.io/rhoai/rhai-cli-rhel9:v3.5.0 to your local registry using your internal procedure, and use the mirrored reference in the StatefulSet below.

Note

The migration namespace (rhai-migration) is a management namespace, separate from your workload namespaces. If you use a different name, substitute it everywhere you see rhai-migration in this manual.

Procedure

3.1 Deploy the rhai-cli pod

The image registry.redhat.io/rhoai/rhai-cli-rhel9:v3.5.0 (binary kubectl-odh 1.26.4) pulls with the cluster’s global pull secret. It holds the rhai-cli lint assessment and every rhai-cli migrate action used in this manual. The 2.x helper scripts (/opt/rhai-upgrade-helpers/*.sh, ray_cluster_migration.py) no longer exist.

Create the namespace:

oc new-project rhai-migration

Expected output (first line):

Now using project "rhai-migration" on server "https://api.<cluster-domain>:6443".

Create the StatefulSet:

cat <<'EOF' | oc apply -n rhai-migration -f -
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: rhai-cli
spec:
  serviceName: rhai-cli
  replicas: 1
  selector:
    matchLabels:
      app: rhai-cli
  template:
    metadata:
      labels:
        app: rhai-cli
    spec:
      containers:
        - name: rhai-cli
          image: registry.redhat.io/rhoai/rhai-cli-rhel9:v3.5.0
          command:
            - sleep
            - infinity
          resources:
            requests:
              cpu: 100m
              memory: 128Mi
          volumeMounts:
            - name: backup
              mountPath: /tmp/rhoai-upgrade-backup
  volumeClaimTemplates:
    - metadata:
        name: backup
      spec:
        accessModes:
          - ReadWriteOnce
        # storageClassName: <your-storage-class>   # set if the PVC stays Pending
        resources:
          requests:
            storage: 1Gi
EOF

Expected output:

statefulset.apps/rhai-cli created

Wait for the pod:

oc wait pod/rhai-cli-0 -n rhai-migration --for=condition=Ready --timeout=120s

Expected output:

pod/rhai-cli-0 condition met
Caution

Keep this PVC until the very end. /tmp/rhoai-upgrade-backup holds your reports and component backups, including the AI Pipelines snapshot that the post-upgrade check diffs against. Delete it only in Clean up, after copying everything off.

Known issue: rhai-cli pod never becomes Ready (PVC Pending)

Symptom. oc wait times out. The pod is Pending.

Diagnosis.

oc get pvc -n rhai-migration
oc describe pod rhai-cli-0 -n rhai-migration | tail -5

Workaround. If backup-rhai-cli-0 is Pending, the cluster has no default StorageClass. Uncomment storageClassName, set it to one listed by oc get storageclass, delete the StatefulSet and PVC, and re-apply.

Tracker. None. This is environment-specific.

3.2 Open a shell in the pod and log in

The assessment runs with your credentials, not the pod’s service account. From your workstation:

oc exec -it rhai-cli-0 -n rhai-migration -- /bin/bash

Then, inside the pod:

export KUBECONFIG=/tmp/.kubeconfig
export PATH="/opt/rhai-cli/bin:$PATH"
oc login --token=<token> --server=https://api.<cluster-domain>:6443
oc whoami && command -v rhai-cli

Expected output:

<your-username>
/opt/rhai-cli/bin/rhai-cli
Tip

In any new shell in the pod (for example, when you come back for the post-upgrade work), re-run the two export lines, or call the binary by its full path, /opt/rhai-cli/bin/rhai-cli.

3.3 How the migrate actions behave

Every remediation in Phases 4–8 is a rhai-cli migrate action:

rhai-cli migrate run|prepare|list --migration <name> --target-version 3.5.0 [--dry-run] [--yes]

The action works out on its own whether it is in the pre- or post-upgrade phase.

ComponentActionPhase
Model servingmodelserving.serverless-to-raw4
modelserving.modelmesh-to-raw4
modelserving.hardwareprofiles-ignorelist5.6
modelserving.managed-isvc-config8.3
Workbenchesworkbenches.patch-auth-model, workbenches.verify-migration8.4
TrustyAItrustyai.metrics, trustyai.data5.2, 8.7
trustyai.patch-guardrails, trustyai.migrate-gorch-otel-exporter8.6
trustyai.break-gpu-deadlock8.7
Llama Stack / OGXllamastack.backup5.4
AI Pipelinesai-pipelines.pre-upgrade-check, ai-pipelines.update-dsp-role5.3
ai-pipelines.post-upgrade-check8.8
Rayraycluster.backup5.1
raycluster.migrate8.5
Kueuekueue (RHBOK migration)5.7
Trainingtraining.verify-workloads8.8

Known issue: a declined prompt reports success and exits 0

Symptom. A migrate run ends with All migrations completed, but nothing changed:

    → User cancelled Serverless to RawDeployment conversion
Migration modelserving.serverless-to-raw completed with skipped steps
All migrations completed (some steps were skipped).

Diagnosis. Every migrate run asks Proceed with …? [y/N]. If it doesn’t get a y, the action cancels, and that exit code is 0. That includes runs without a TTY, in a pipeline, or through a plain oc exec. Treat “completed with skipped steps” as a failure until you have checked the result independently (for example, oc get isvc -A).

Workaround. Answer y, or pass --yes (-y) when you script it:

rhai-cli migrate run --migration <name> --target-version 3.5.0 --yes

The examples in this manual leave out --yes so you see each prompt.

Tracker. None filed. Observed in a field run (2.25.10 → 3.5.1).

Warning

Run long actions in a session that will not time out. modelserving.serverless-to-raw deletes and recreates each ISVC one at a time. It took more than two minutes for just two ISVCs. If the shell is interrupted mid-run, ISVCs can be left deleted or half-converted. Use tmux/screen (or nohup inside the pod), and re-check oc get isvc -A before re-running anything.

3.4 Run the assessment

rhai-cli lint is a read-only diagnostic, and it only works before the upgrade. On a cluster already at 3.5 it does nothing: “Current and target versions are the same (3.5), no checks will be executed.”

Full scan (inside the pod):

rhai-cli lint --target-version 3.5; echo "exit=$?"

Expected output: a findings table, followed by an exit code. On an unremediated cluster that is:

exit=1
Exit codeMeaning
0All checks passed.
1At least one prohibited or critical finding. This is expected while blockers remain, not a tool error.
2Warnings only. This is acceptable.

To cut the noise, filter to one component (wrap the value in *):

rhai-cli lint --target-version 3.5 --checks "*datasciencepipelines*"
Component--checksComponent--checks
Dashboard*dashboard*Llama Stack / OGX*llamastack*
AI Pipelines*datasciencepipelines*ModelMesh*modelmesh*
TrustyAI Guardrails*guardrails*Workbenches*notebook*
KServe*kserve*Ray*ray*
Kueue*kueue*Kubeflow Training*trainingoperator*

Reading the rows. The columns are STATUS | KIND | GROUP | CHECK | IMPACT | MESSAGE (KIND now comes before GROUP).

ImpactMeaningAction
prohibitedUpgrade is not possible.Stop. Find the component’s section in this manual; if that doesn’t resolve it, contact Red Hat Support.
criticalThe component or workload will fail.Fix it in the phase that covers it, then re-run the lint.
warningA potential issue or deprecated field.Review it.
infoA prerequisite is met.None.

Expect the critical count to drop as you work through the phases. Also expect fixes to surface new findings: for example, llamastack / config is a 3.x prerequisite that doesn’t exist yet.

3.5 Submit the assessment to Red Hat

Write the report to the PVC (inside the pod):

rhai-cli lint --target-version 3.5 --output yaml > /tmp/rhoai-upgrade-backup/rhai-cli-output.yaml
ls -l /tmp/rhoai-upgrade-backup/rhai-cli-output.yaml

Expected output (shape; owner, size, and date vary, but the size must not be 0):

-rw-r--r--. 1 1000790000 1000790000 42905 Nov 11 15:00 /tmp/rhoai-upgrade-backup/rhai-cli-output.yaml

Known issue: lint --output yaml prints LINT_BLOCKED and exits 1

Symptom. While blockers remain, the command prints this to stderr and exits 1:

error:
  code: LINT_BLOCKED
  message: 'prohibited or blocking findings detected: upgrade cannot proceed'

Diagnosis. This is the expected result before remediation. The YAML still goes to stdout correctly.

Workaround. None needed. Judge the run by the ls -l above, not by the exit code.

Tracker. None. Working as designed.

Copy the report to your workstation (run this outside the pod):

oc cp rhai-migration/rhai-cli-0:/tmp/rhoai-upgrade-backup/rhai-cli-output.yaml ./rhai-cli-output.yaml && test -s ./rhai-cli-output.yaml && echo copied

Expected output:

copied

Attach rhai-cli-output.yaml to your proactive support case (How to provide files to Red Hat Support). Re-run and re-submit it as you clear blockers.

Verification

  • rhai-cli-0 is Running in rhai-migration, and its PVC is Bound.
  • rhai-cli-output.yaml is on your workstation and attached to the support case.
  • You have a list of every critical/prohibited finding. Each one maps to Phase 4, 5, or 6.

Rollback

lint changes nothing. To remove the pod before you’ve started any migrate action:

oc delete project rhai-migration

Expected output:

project.project.openshift.io "rhai-migration" deleted

Do not do this once you’ve begun Phase 4. The PVC then holds your component backups.

4 - Convert model serving

Phase 4 — move every Serverless and ModelMesh InferenceService to RawDeployment before the serving modes are removed, and prepare any LLMInferenceService.

Outcome: every InferenceService on the cluster is RawDeployment and Ready=True, no multi-model ServingRuntime is left, and the KServe lint shows no critical workload findings. That makes it safe to disable Serverless and ModelMesh in Phase 5. Phase 4 of 10 · Before upgrade. Next: Remediate the platform.

This is the core of the migration. 3.5 removes Serverless and ModelMesh, and RawDeployment (displayed as Standard after the upgrade) is the only serving mode left. Convert first; disable later. If you disable a serving mode while a model still depends on it, the model stops serving.

Tip

Already RawDeployment-only? If your Baseline inventory shows no Serverless or ModelMesh rows and you run no LLMInferenceService, run the check in 4.1 to confirm, then skip to Remediate the platform.

If you don’t convert: after the operator upgrade, every Serverless and ModelMesh ISVC returns HTTP 503, and LLMInferenceService workloads fail without the new authentication config.

Prerequisites

  • Assess complete. You have a shell in rhai-cli-0 (in-pod commands are marked inside the pod) and a workstation shell.
  • Project access to every namespace that holds an InferenceService or LLMInferenceService.
  • You have audited the cluster for other consumers of OpenShift Service Mesh v2 and confirmed they can be migrated or removed.
Important

Service Mesh conflict. If something else on the cluster depends on Service Mesh v2, upgrade those applications to Service Mesh v3 before you upgrade OpenShift AI. If an OSSM v2 subscription is still present when the Gateway API GatewayClass is created, the Cluster Ingress Operator can’t install the OSSM v3 components it needs. Gateway API resources then have no effect and nothing routes traffic.

Before converting anything, save every ISVC and ServingRuntime spec. This is your per-object rollback source:

oc get isvc,servingruntime -A -o yaml > ./serving-pre-convert-$(date -u +%Y%m%dT%H%MZ).yaml && ls -l ./serving-pre-convert-*.yaml

Expected output: one non-empty file (shape):

-rw-r--r--  1 you  staff  48211 Nov 11 15:10 ./serving-pre-convert-20261111T1510Z.yaml

Procedure

4.1 Enumerate what needs converting

Inside the pod, run the serving-focused lint:

rhai-cli lint --target-version 3.5 --verbose --checks "*kserve*" --checks "*modelmesh*"

How to read the rows: workload / kserve rows are ISVCs that need conversion (this phase). component / kserve or modelmeshserving rows are cluster configuration changes (Phase 5). dependency rows are operator installs or removals (Phase 5).

From your workstation, list every ISVC that is not already RawDeployment:

oc get isvc -A -o json | jq -r '.items[]
  | select((.metadata.annotations."serving.kserve.io/deploymentMode" // "") != "RawDeployment")
  | "\(.metadata.namespace)\t\(.metadata.name)\t\(.metadata.annotations."serving.kserve.io/deploymentMode")"'

Expected output: one row per ISVC to convert, or nothing if you have none (shape):

ml-project-a	my-serverless-isvc	Serverless
ml-project-c	my-modelmesh-isvc	ModelMesh
Note

Why a migrate action instead of oc patch. The KServe admission webhook rejects in-place edits of deploymentMode. Conversion is backup, delete, recreate. The rhai-cli migrate actions do this for you. The manual fallback is KB 7134025.

4.2 Convert Serverless InferenceServices

modelserving.serverless-to-raw works across the whole cluster in one run. It keeps each ISVC’s name and handles the ServiceAccount, Role, and RoleBinding auth resources for you. It asks a single Proceed with conversion? [y/N] question. Answer y (see Known issue: a declined prompt reports success).

Inside the pod, in a tmux/screen session:

# 1. Identify
rhai-cli lint --target-version 3.5 --verbose --checks "*kserve*" --isvc-deployment-mode serverless
# 2. Preview
rhai-cli migrate run --migration modelserving.serverless-to-raw --target-version 3.5.0 --dry-run
# 3. Apply (answer y)
rhai-cli migrate run --migration modelserving.serverless-to-raw --target-version 3.5.0

Read the closing lines of step 3. If they say completed with skipped steps, nothing was converted: re-run and answer y. The action removes the Serverless ISVCs, their ServingRuntimes, and the related auth and Istio resources, then creates the RawDeployment replacements.

Verify that no Serverless ISVC is left anywhere:

oc get isvc -A -o json | jq -r '.items[]
  | select((.metadata.annotations."serving.kserve.io/deploymentMode" // "") == "Serverless"
        or (.status.deploymentMode // "") == "Serverless")
  | "\(.metadata.namespace)/\(.metadata.name)"'

Expected output:

(no output)

Verify that each converted ISVC is RawDeployment and Ready:

oc get isvc -n <namespace> -o json | jq -r '["NAME","DEPLOYMENT_MODE","READY"], (.items[] | [.metadata.name, .status.deploymentMode, (.status.conditions[] | select(.type=="Ready") | .status)]) | @tsv' | column -t

Expected output (shape):

NAME                DEPLOYMENT_MODE  READY
my-serverless-isvc  RawDeployment    True
Note

Converted Serverless models get a new endpoint. Re-run the baseline inference probe and record each new .status.url. These are the only model URLs you’ll need to publish to consumers. Models that were already RawDeployment keep theirs.

Known issue: recreated ISVC sits READY=False for minutes

Symptom. Right after conversion, the ISVC reports READY=False.

Diagnosis. RawDeployment pulls and loads the model from scratch, and a CPU model can take a few minutes. Watch the predictor:

oc get pods -n <ns> -l serving.kserve.io/inferenceservice=<name>

Workaround. Wait. If the pod never becomes Ready, check its logs (oc logs -n <ns> <pod> -c kserve-container).

Tracker. None. Expected behavior.

4.3 Convert ModelMesh InferenceServices

ModelMesh is multi-model serving: one ServingRuntime hosts many models. 3.x has no ModelMesh, so each model is redeployed as a single-model RawDeployment ISVC that points storageUri at the same data. For natively supported formats (ONNX, OpenVINO IR) this is a true re-host, with no model conversion and no data movement.

modelserving.modelmesh-to-raw works in place, one namespace at a time. It keeps each ISVC’s name, picks the single-model kserve-ovms runtime for ONNX and OpenVINO IR, and asks one [y/N] question.

Inside the pod:

# 1. Identify — note each namespace
rhai-cli lint --target-version 3.5 --verbose --checks "*kserve*" --isvc-deployment-mode modelmesh
# 2. Convert (answer y)
rhai-cli migrate run --migration modelserving.modelmesh-to-raw --target-version 3.5.0

Verify each ISVC:

oc get isvc <name> -n <namespace> -o jsonpath='mode={.status.deploymentMode} ready={.status.conditions[?(@.type=="Ready")].status}{"\n"}'

Expected output:

mode=RawDeployment ready=True

If you get ready=False and the model is PVC-backed OVMS, you have hit the next known issue.

Known issue: PVC-backed OVMS model crash-loops after modelmesh-to-raw

Symptom. The action reports Migration completed successfully!, but the predictor never becomes Ready. The failures show up in this order:

  1. The webhook rejects the pod: storage type must be one of [s3, hdfs, webhdfs]. storage type [pvc] is not supported.
  2. OVMS crash-loops: Configuration file is invalid /models/model_config_list.json. It kept the multi-model launch args.
  3. The pod runs but stays 0/1. No container port is declared, so the readiness probe defaults to tcpSocket:8080, while OVMS serves REST on 8888.

Diagnosis. The action moved the ISVC and runtime metadata across (multiModel=false, container renamed to kserve-container, modelmesh-enabled label dropped), but didn’t rewrite storage, args, or the probe. Find the real PVC and model path. The storage-config secret key (for example pvc-models) is an alias, not the PVC name:

oc get pvc -n <ns>
oc get isvc <name> -n <ns> -o jsonpath='{.spec.predictor.model.storage.path}{"\n"}'

Workaround. Apply all three fixes. Example: ISVC my-modelmesh-isvc in ml-project-c, runtime ovms-mm, PVC model-store, path mobilenet. Substitute your own values.

# 1. PVC storage → storageUri
oc patch isvc my-modelmesh-isvc -n ml-project-c --type=merge \
  -p '{"spec":{"predictor":{"model":{"storageUri":"pvc://model-store/mobilenet","storage":null}}}}'

# 2. OVMS multi-model args → single-model (serve one model from /mnt/models)
oc patch servingruntime ovms-mm -n ml-project-c --type=json -p '[{"op":"replace","path":"/spec/containers/0/args","value":[
  "--model_name=my-modelmesh-isvc","--model_path=/mnt/models","--port=8001","--rest_port=8888",
  "--file_system_poll_wait_seconds=0","--grpc_bind_address=0.0.0.0","--rest_bind_address=0.0.0.0"]}]'

# 3. Declare the container port + a readiness probe on the OVMS REST port
oc patch servingruntime ovms-mm -n ml-project-c --type=json -p '[
  {"op":"add","path":"/spec/containers/0/ports","value":[{"containerPort":8888,"protocol":"TCP"}]},
  {"op":"add","path":"/spec/containers/0/readinessProbe","value":{"tcpSocket":{"port":8888},"periodSeconds":10,"failureThreshold":3,"timeoutSeconds":5}}]'

oc rollout restart deployment my-modelmesh-isvc-predictor -n ml-project-c

pvc://<pvc>/<path> points at the model root, and OVMS finds the version subdirectory itself. Verify:

oc get isvc my-modelmesh-isvc -n ml-project-c -o jsonpath='mode={.status.deploymentMode} ready={.status.conditions[?(@.type=="Ready")].status}{"\n"}'

Expected output:

mode=RawDeployment ready=True

Tracker. None filed. Observed in a field run. Manual workflow: KB 7134025.

4.4 Sweep leftover ModelMesh objects

Delete any leftover ModelMesh ISVCs and multi-model ServingRuntimes, but only after the new RawDeployment services work. With the in-place conversion, this usually finds nothing.

Caution

Confirm multiModel: false first. modelmesh-to-raw converts the runtime in place, so the runtime it flipped is the same object your new ISVC depends on. The sweep below deletes runtimes where .spec.multiModel == true. If the flip didn’t take effect, the sweep deletes the runtime your working model needs.

oc get servingruntime <name> -n <ns> -o jsonpath='{.spec.multiModel}{"\n"}'

Expected output:

false

If it still says true while the ISVC is Ready on RawDeployment, don’t sweep. Re-apply the conversion’s own changes instead:

oc patch servingruntime <name> -n <ns> --type=merge -p '{"spec":{"multiModel":false}}'
oc patch servingruntime <name> -n <ns> --type=json \
  -p '[{"op":"replace","path":"/spec/containers/0/name","value":"kserve-container"}]'

Also cross-check that no runtime you’re about to delete is referenced by a live ISVC (.spec.predictor.model.runtime). Then sweep:

# Leftover ModelMesh ISVCs
oc get isvc -n <namespace> -o json | jq -r '.items[]
  | select(.status.deploymentMode == "ModelMesh" or .metadata.annotations["serving.kserve.io/deploymentMode"] == "ModelMesh")
  | .metadata.name' | while read -r name; do echo "Deleting ModelMesh ISVC: $name"; oc delete isvc "$name" -n <namespace>; done

# Multi-model ServingRuntimes
oc get servingruntimes.serving.kserve.io -n <namespace> -o json | jq -r '.items[]
  | select(.spec.multiModel==true) | .metadata.name' \
  | while read -r name; do echo "Deleting ServingRuntime: $name"; oc delete servingruntime "$name" -n <namespace>; done

Expected output: usually nothing. Otherwise, one Deleting … line per leftover:

(no output)

Known issue: multi-model ServingRuntime won’t delete, “still in use”

Symptom. oc delete servingruntime is refused because the runtime is still in use.

Diagnosis. A ModelMesh ISVC still references it:

oc get isvc -n <ns> -o jsonpath='{range .items[*]}{.metadata.name} {.spec.predictor.model.runtime}{"\n"}{end}'

Workaround. Delete the ModelMesh ISVC that references it first, then the runtime.

Tracker. None. Expected behavior.

4.5 Confirm every model is RawDeployment

oc get isvc -A -o json | jq -r '[.items[] | select((.metadata.annotations."serving.kserve.io/deploymentMode" // "") != "RawDeployment")] | length'

Expected output:

0

Inside the pod:

rhai-cli lint --target-version 3.5 --checks "*kserve*" --checks "*modelmesh*"

Pass it through grep to count the critical workload rows:

rhai-cli lint --target-version 3.5 --checks "*kserve*" --checks "*modelmesh*" | grep '✗' | grep -c workload

Expected output:

0

Critical rows in the component and dependency groups are cleared in Phase 5.

Known issue: leftover Serverless ISVC stuck in Terminating

Symptom. oc delete isvc on a Serverless ISVC hangs in Terminating indefinitely.

Diagnosis. A finalizer deadlock. The Serverless ISVC’s finalizer cleans up its Knative Service and Istio VirtualService. If Serverless or Service Mesh is already gone, the finalizer can’t reach their APIs and never clears. This is why you convert and delete every Serverless ISVC before Phase 5 removes them.

oc get isvc <name> -n <ns> -o jsonpath='{.metadata.finalizers}{"\n"}'
oc get knativeserving -A

Workaround. If the operators are still installed, re-enable Serverless/Service Mesh, let the delete finish, then remove them in the right order. If they are already uninstalled, force-clear the finalizer and recreate the model as RawDeployment:

oc patch isvc <name> -n <ns> --type=merge -p '{"metadata":{"finalizers":null}}'

Then look for orphaned ksvc and virtualservice objects.

Tracker. None. A consequence of doing things in the wrong order.

Known issue: recreated ISVC rejected by a deploymentMode webhook error

Symptom. oc apply of a hand-recreated ISVC fails with a deploymentMode admission error.

Diagnosis. The webhook blocks changing the mode on an existing object. It doesn’t block creating a new one. The migrate actions always create fresh objects, so this only happens on the manual fallback.

Workaround. Flip the annotation in your saved YAML, delete the old ISVC, then apply.

Tracker. KB 7134025.

4.6 Prepare distributed inference (LLMInferenceService)

Skip this section if you don’t run llm-d / LLMInferenceService. It needs a cluster admin (operators, Red Hat Connectivity Link) and the model owners (auth, freezing their resources).

Install Red Hat Connectivity Link (RHCL). In 3.x, RHCL replaces the standalone Authorino Operator for LLMInferenceService auth.

oc new-project kuadrant-system

Install Red Hat Connectivity Link into kuadrant-system through OLM (an OperatorGroup and Subscription in that namespace), the same pattern as cert-manager in Pre-flight. Look up the package and channel with oc get packagemanifest -n openshift-marketplace | grep -i rhcl. See Installing Connectivity Link on OpenShift.

Create the Kuadrant and Authorino resources:

oc apply -f - <<EOF
apiVersion: kuadrant.io/v1beta1
kind: Kuadrant
metadata:
  name: kuadrant
  namespace: kuadrant-system
EOF

oc wait Kuadrant -n kuadrant-system kuadrant --for=condition=Ready --timeout=10m

oc annotate svc/authorino-authorino-authorization \
  service.beta.openshift.io/serving-cert-secret-name=authorino-server-cert -n kuadrant-system

oc apply -f - <<EOF
apiVersion: operator.authorino.kuadrant.io/v1beta1
kind: Authorino
metadata:
  name: authorino
  namespace: kuadrant-system
spec:
  replicas: 1
  clusterWide: true
  listener:
    tls:
      enabled: true
      certSecretRef:
        name: authorino-server-cert
  oidcServer:
    tls:
      enabled: false
EOF

oc wait --for=condition=ready pod -l authorino-resource=authorino -n kuadrant-system --timeout=150s

Verify:

oc get csv -n kuadrant-system --no-headers | grep rhcl | awk '{print $NF}'
oc get pods -n kuadrant-system -l authorino-resource=authorino --no-headers | awk '{print $2, $3}'

Expected output:

Succeeded
1/1 Running

Cluster network: Disconnected (air-gapped)

Disconnected RHCL. Find the wasm-shim image SHA on the wasm-shim-rhel9 catalog page, then:

  1. Create wasm-plugin-pull-secret in openshift-ingress from the cluster pull secret:

    oc get secret pull-secret -n openshift-config -o json | \
      jq 'del(.metadata.namespace, .metadata.resourceVersion, .metadata.uid, .metadata.creationTimestamp, .metadata.ownerReferences)' | \
      jq '.metadata.name="wasm-plugin-pull-secret"' | \
      oc apply -n openshift-ingress -f -
  2. Patch the rhcl-operator Subscription with the mirrored WASM image (RELATED_IMAGE_WASMSHIM, PROTECTED_REGISTRY), using your mirror registry and the wasm-shim SHA.

  3. Inject WASM_INSECURE_REGISTRIES into the Gateway pod through a <gateway>-config ConfigMap in openshift-ingress, and reference it from the Gateway’s infrastructure.parametersRef.

The full command forms are in the official reference guide, §2.8.10.2.

Configure authentication. In 3.5, distributed inference is secure by default: unauthenticated clients get HTTP 403. Choose one:

  • Disable auth (dev/test only):

    oc annotate llminferenceservice <name> -n <namespace> security.opendatahub.io/enable-auth=false
  • RBAC (recommended): create a ServiceAccount, a Role that grants get on the named llminferenceservices resource, and a RoleBinding. Clients then send Authorization: Bearer $(oc create token <sa> -n <namespace>).

Freeze the LLMInferenceService config to the 2.25 templates, so scheduler pods don’t fail during the upgrade:

oc patch llmisvc <name> -n <namespace> --subresource=status --type=merge \
  -p '{"status":{"annotations":{"serving.kserve.io/config-llm-template":"kserve-config-llm-template","serving.kserve.io/config-llm-decode-template":"kserve-config-llm-decode-template","serving.kserve.io/config-llm-worker-data-parallel":"kserve-config-llm-worker-data-parallel","serving.kserve.io/config-llm-decode-worker-data-parallel":"kserve-config-llm-decode-worker-data-parallel","serving.kserve.io/config-llm-prefill-template":"kserve-config-llm-prefill-template","serving.kserve.io/config-llm-prefill-worker-data-parallel":"kserve-config-llm-prefill-worker-data-parallel","serving.kserve.io/config-llm-scheduler":"kserve-config-llm-scheduler","serving.kserve.io/config-llm-router-route":"kserve-config-llm-router-route"}}}'

Verify that every LLMInferenceService is Ready:

oc get llminferenceservices -A -o jsonpath='{range .items[*]}{.metadata.namespace}/{.metadata.name} {.status.conditions[?(@.type=="Ready")].status}{"\n"}{end}'

Expected output, per resource:

ml-project-f/my-llm True
Important

Scheduler argument changes in 3.5. If you override LLMInferenceService scheduler arguments: arguments change from camelCase to kebab-case (--certPath → --cert-path), the default TLS cert path moves from /etc/ssl/certs to /var/run/kserve/tls, signed TLS via the OpenShift service signer is now mandatory, and you must include --cert-path and an SSL_CERT_DIR environment variable.

Verification

Inside the pod:

rhai-cli lint --target-version 3.5 --checks "*kserve*" --checks "*modelmesh*"

The phase is done when:

  • The non-RawDeployment count from 4.5 is 0.
  • Every ISVC is Ready=True.
  • No workload-group critical finding remains for KServe or ModelMesh.
  • Every converted model answers the baseline probe, and you have recorded the new URLs of converted Serverless models.

Don’t go to Phase 5 while any critical workload finding remains.

Rollback

The cluster is still on 2.25, Serverless and ModelMesh are still installed, and you saved every spec before you started.

  • One ISVC misbehaves after conversion: delete it and re-apply its original object from ./serving-pre-convert-*.yaml. Strip status, resourceVersion, uid, and creationTimestamp first. The webhook allows this because it creates a new object rather than changing the mode of an existing one.
  • A runtime was deleted by mistake: re-apply it from the same file.
  • Everything: restore from the Pre-flight backup.

5 - Remediate the platform

Phase 5 — back up Ray, TrustyAI, and AI Pipelines state, delete Llama Stack, then disable Kueue, CodeFlare, ModelMesh, Serverless, and Service Mesh in dependency order.

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.

OrderStepWhy here
1Ray, TrustyAI, AI Pipelines backupsWhile the components that own the backup logic still run
2Delete LlamaStackDistributionsDelete-and-replace; there is no upgrade path
3Inventory the non-migrating componentsSomething to compare against after the upgrade
4inferenceservice-config ignorelistAfter every ISVC is RawDeployment, before the disables
5Disable removed components and Service MeshNothing depends on them any more
6Uninstall 2.x serving operators, final lintClean 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.

Deployment type: GitOps-managed

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.

Note

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:

oc patch $(oc get dsc -o name | head -n1) --type=merge \
  -p '{"spec":{"components":{"codeflare":{"managementState":"Removed"}}}}'
oc get dsc -o jsonpath='{.items[0].spec.components.codeflare.managementState}{"\n"}'

Expected output (last line):

Removed

Inside the pod, back up every RayCluster (this is read-only):

mkdir -p /tmp/rhoai-upgrade-backup/ray_cluster
rhai-cli migrate run --migration raycluster.backup --target-version 3.5.0 \
  --raycluster-output-dir /tmp/rhoai-upgrade-backup/ray_cluster
ls /tmp/rhoai-upgrade-backup/ray_cluster

Expected output (the last command):

rhoai-2.x
rhoai-3.x
  • 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-backup needs the right one.

Copy the backup off the pod (workstation) and confirm the clusters are still ready:

oc cp rhai-migration/rhai-cli-0:/tmp/rhoai-upgrade-backup/ray_cluster ./ray-backup
oc get rayclusters -A -o custom-columns='NAME:.metadata.name,STATUS:.status.state'

Expected output, per cluster (shape):

NAME           STATUS
raycluster-a   ready

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:

oc get dsc -A -o jsonpath='{.items[0].spec.components.trustyai.managementState}{"\n"}'
oc get trustyaiservice -A

Expected output (the first line, if TrustyAI applies to you):

Managed

Inside the pod. Both actions run cluster-wide. --output-dir is required: the container root filesystem is read-only.

rhai-cli migrate prepare --migration trustyai.metrics --target-version 3.5.0 \
  --output-dir /tmp/rhoai-upgrade-backup/trustyai
rhai-cli migrate prepare --migration trustyai.data --target-version 3.5.0 \
  --output-dir /tmp/rhoai-upgrade-backup/trustyai

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:

oc exec -n rhai-migration rhai-cli-0 -- ls /tmp/rhoai-upgrade-backup/trustyai
oc exec -n rhai-migration rhai-cli-0 -- cat /tmp/rhoai-upgrade-backup/trustyai/<metrics-file>.json | jq empty && echo valid

Expected output (the last line):

valid

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:

E0831 ... "Unhandled Error" err="io: read/write on closed pipe" logger="UnhandledError"
    ✓ Backed up 0 file(s) to .../trustyai-data-<ns>-<timestamp>

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):

oc get guardrailsorchestrator -A -o json \
  | jq -r '.items[] | select(.spec.otelExporter != null) | {ns: .metadata.namespace, name: .metadata.name, otelExporter: .spec.otelExporter}' \
  > ./guardrails-otel-backup-$(date +%Y%m%d%H%M).json
oc cp rhai-migration/rhai-cli-0:/tmp/rhoai-upgrade-backup/trustyai ./trustyai-backup && ls ./trustyai-backup | head

Expected output: the metrics and data backup files, listed locally (shape):

trustyai-data-ml-project-e-20261111150000
trustyai-metrics-ml-project-e-20261111150000.json

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:

rhai-cli migrate run --migration ai-pipelines.pre-upgrade-check --target-version 3.5.0

On a clean cluster this passes with nothing to fix. It may report:

  • Deprecated instructLab field: safe to ignore. It’s tolerated during the upgrade.
  • Deprecated v1alpha1 DSPA: run rhai-cli migrate run --migration ai-pipelines.update-dsp-role --target-version 3.5.0, or update each CR to v1.
  • 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:

rhai-cli migrate prepare --migration ai-pipelines.pre-upgrade-check --target-version 3.5.0
ls /tmp/rhoai-upgrade-backup/ai_pipelines/dspa_pre_upgrade_pods.json

Expected output (the last line):

/tmp/rhoai-upgrade-backup/ai_pipelines/dspa_pre_upgrade_pods.json
Caution

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.

Cluster network: Disconnected (air-gapped)

Disconnected: skip this section. Llama Stack disconnected support starts in OpenShift AI 3.0.

Warning

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:

oc get llamastackdistribution -A -o custom-columns=NAMESPACE:.metadata.namespace,NAME:.metadata.name,PHASE:.status.phase,CREATED:.metadata.creationTimestamp
oc get rolebindings -n <namespace> -o wide   # identify owners

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:

rhai-cli migrate prepare --migration llamastack.backup --target-version 3.5.0 \
  --output-dir /tmp/rhoai-upgrade-backup/llamastack

Delete every LSD. This also clears the llamastack / config critical finding:

oc get llamastackdistribution -A -o json \
  | jq -r '.items[]? | "\(.metadata.namespace) \(.metadata.name)"' \
  | while read NS NAME; do oc delete llamastackdistribution "$NAME" -n "$NS"; done
oc get llamastackdistribution -A --no-headers 2>/dev/null | wc -l

Expected output (the last line):

0

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.

oc get pods -n rhoai-model-registries --no-headers | awk '{print $3}' | sort | uniq -c
oc get featurestores -A
oc get pytorchjobs -A -o custom-columns=NS:.metadata.namespace,NAME:.metadata.name --no-headers | tee ./pytorchjobs-pre-upgrade.txt

Expected output, first command (shape; every pod Running):

      3 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):

oc get configmap inferenceservice-config -n redhat-ods-applications -o yaml > ./inferenceservice-config-backup.yaml && test -s ./inferenceservice-config-backup.yaml && echo saved

Expected output:

saved

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:

rhai-cli migrate run --migration modelserving.hardwareprofiles-ignorelist --target-version 3.5.0

Verify (workstation):

oc get configmap inferenceservice-config -n redhat-ods-applications -o jsonpath='{.metadata.annotations.opendatahub\.io/managed}{"\n"}'
oc get configmap inferenceservice-config -n redhat-ods-applications -o yaml | grep -c hardware-profile

Expected output: false, followed by a count of at least 2:

false
2
Note

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.

Kueue end state: Removed

Removed: disable Kueue entirely.

oc patch $(oc get dsc -o name | head -n1) --type=merge -p '{
  "spec": { "components": { "kueue": { "managementState": "Removed" } } }
}'
oc get dsc -o jsonpath='{.items[0].spec.components.kueue.managementState}{"\n"}'

Expected output (last line):

Removed

The KueueReady condition goes to False / reason=Removed. That’s expected, and it stays False after the upgrade.

Kueue end state: Unmanaged (external RHBOK)

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:

oc annotate configmap kueue-manager-config -n redhat-ods-applications opendatahub.io/managed=false

Rename any LocalQueue named default (for example, to rhoai-kueue-default). RHBOK reserves that name, and admission breaks otherwise:

oc get localqueue -A --field-selector metadata.name=default

Expected output (before you set Unmanaged):

No resources found

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:

oc patch $(oc get dsc -o name | head -n1) --type=merge -p '{
  "spec": { "components": { "kueue": {
    "managementState": "Unmanaged",
    "defaultClusterQueueName": "default",
    "defaultLocalQueueName": "default"
  } } }
}'
oc get dsc -o jsonpath='{.items[0].spec.components.kueue.managementState}{"\n"}'

Expected output (last line):

Unmanaged

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:

oc get dsc -o jsonpath='codeflare={.items[0].spec.components.codeflare.managementState} ray={.items[0].spec.components.ray.managementState}{"\n"}'

Expected output:

codeflare=Removed ray=Managed

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.

oc get dsc -o jsonpath='{.items[0].spec.components.ray.managementState}{"\n"}'
oc get pods -A | grep -i kuberay

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

oc patch $(oc get dsc -o name | head -n1) --type=merge -p '{
  "spec": { "components": { "modelmeshserving": { "managementState": "Removed" } } }
}'
oc get dsc -o jsonpath='{.items[0].spec.components.modelmeshserving.managementState}{"\n"}'

Expected output (last line):

Removed

KServe Serverless mode

Set serving to Removed and the default mode to RawDeployment in one patch:

oc patch $(oc get dsc -o name | head -n1) --type=merge -p '{
  "spec": { "components": { "kserve": {
    "serving": { "managementState": "Removed" },
    "defaultDeploymentMode": "RawDeployment"
  } } }
}'

The Knative stack takes several minutes (5–10) to tear down. Poll until it’s gone:

oc get knativeserving -A

Expected output (eventually):

No resources found

Then confirm every model still serves. RawDeployment doesn’t depend on Knative:

oc get isvc -A -o custom-columns='NAME:.metadata.name,READY:.status.conditions[?(@.type=="Ready")].status' --no-headers | awk '{print $2}' | sort -u

Expected output:

True

Known issue: Serverless teardown seems stuck

Symptom. oc get knativeserving -A still lists resources after 10 minutes.

Diagnosis.

oc get pods -n knative-serving
oc logs -n redhat-ods-applications -l app=kserve-controller-manager --tail=50

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:

oc patch $(oc get dsci -o name | head -n1) --type=merge -p '{
  "spec": { "serviceMesh": { "managementState": "Removed" } }
}'
until [ -z "$(oc get smcp -A --no-headers 2>/dev/null)" ]; do echo "Waiting for SMCP to drain..."; sleep 5; done
oc delete smmr default -n istio-system --ignore-not-found
oc get smcp,smmr -A

Expected output (the last command):

No resources found

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:

oc get smmr default -n istio-system -o jsonpath='{.metadata.finalizers}{"\n"}'

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.

Caution

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.

# Standalone Authorino — only if Red Hat Connectivity Link is NOT installed
oc -n openshift-operators delete subscription authorino-operator --ignore-not-found
oc -n openshift-serverless delete subscription serverless-operator --ignore-not-found
# Service Mesh 2 — safe now that the SMCP and SMMR are gone
oc -n openshift-operators delete subscription servicemeshoperator --ignore-not-found

# Delete each operator's SOURCE CSV only — OLM garbage-collects the per-namespace copies
oc get csv -A -o json | jq -r '.items[]
  | select(.metadata.labels."olm.copiedFrom" == null)
  | select(.metadata.name | test("^(authorino-operator|serverless-operator|servicemeshoperator)\\."))
  | "\(.metadata.namespace) \(.metadata.name)"' \
  | while read -r ns name; do echo "Deleting $ns/$name"; oc -n "$ns" delete csv "$name"; done
Note

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:

oc get csv -A | grep -E 'authorino-operator\.|serverless-operator\.|servicemeshoperator\.' | grep -v rhods

Expected output:

(no output)
Important

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

  1. Set the OpenShift AI Subscription’s update approval to Manual so the channel change in Phase 7 can’t upgrade automatically:
oc -n redhat-ods-operator patch subscription rhods-operator --type=merge -p '{"spec":{"installPlanApproval":"Manual"}}'
oc -n redhat-ods-operator get subscription rhods-operator -o jsonpath='{.spec.installPlanApproval}{"\n"}'

Expected output:

Manual
  1. Confirm that the CSV, DSC, and DSCI are healthy:
oc get csv -n redhat-ods-operator --no-headers | grep rhods-operator | awk '{print $NF}'
oc get dsc  -o jsonpath='{.items[0].status.phase}{"\n"}'
oc get dsci -o jsonpath='{.items[0].status.phase}{"\n"}'

Expected output:

Succeeded
Ready
Ready

Reconciliation can take a while. Don’t continue while the DSC or DSCI shows errors.

  1. Re-run the full assessment (inside the pod):
rhai-cli lint --target-version 3.5 | grep -E 'Total:|FAIL|PASS|WARNING|PROHIBITED'

Expected output: a summary with zero failures (warnings are acceptable):

Failed: 0

Verification

Platform remediation is done when:

  • rhai-cli lint shows no critical or prohibited findings (exit code 0 or 2).
  • The DSC and DSCI are Ready, and the rhods-operator 2.25 CSV is Succeeded.
  • codeflare, modelmeshserving, and kserve.serving are Removed, ray is Managed, and Kueue is Removed or Unmanaged.
  • 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’s ai_pipelines/dspa_pre_upgrade_pods.json all 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 Managed with the same oc patch (for example, codeflare, modelmeshserving, kserve.serving, DSCI serviceMesh). 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 Removed for long without upgrading. Users could create RayClusters without its security configuration.

6 - Workbench images

Phase 6 — triage custom (BYON) workbench images for the 3.x auth and routing changes, bump required tags, and stop every workbench.

Outcome: every custom workbench image is triaged (re-import only, or rebuild), code-server workbenches are on 2025.2, every workbench is stopped, and the notebook lint returns PASS or WARNING. Phase 6 of 10 · Before upgrade. Next: Upgrade.

3.x changes how workbenches authenticate (oauth-proxy → kube-rbac-proxy) and how they’re routed (OpenShift Routes → Kubernetes Gateway API with path-based URLs). The operator bumps out-of-the-box images, but custom (BYON) images and old tags need your attention.

Important

Finish all of this before the upgrade. Unmigrated workbenches stay on the 2.x auth layer. Combined with NB_PREFIX routing conflicts, that produces redirect loops or connection failures, especially for RStudio, code-server, and custom images. Workbenches created in 2.25 or earlier are unsupported in 3.5 unless they’re migrated.

Prerequisites

  • Remediate the platform complete.
  • Users have been told to save their work. Every workbench ends this phase Stopped. If one can’t reach Running, stop or delete it.
  • Users know that workbench URLs change after the upgrade. They’ll get new ones from the dashboard, and old bookmarks break.
  • Owners of custom images are available. Red Hat doesn’t rebuild custom images. Rebuilding is the application owner’s job.

Procedure

6.1 Find the custom (BYON) images

oc get imagestream -n redhat-ods-applications -l app.kubernetes.io/created-by=byon \
  -o custom-columns='NAME:.metadata.name,URL:.metadata.annotations.opendatahub\.io/notebook-image-url'

Expected output: one row per custom image, or No resources found (shape):

NAME                 URL
custom-my-jupyter    quay.io/my-org/my-jupyter:1.0

Any image built before 3.x (for example, an upstream community Jupyter image) won’t work as-is after the upgrade.

6.2 Triage each custom image

The tag alone doesn’t tell you which case you’re in:

The image is…What breaksWhat to do
Built FROM the 2025.2 workbench baseNothing. Gateway NB_PREFIX routing and auth are already built in.Re-import (6.3), then apply the post-upgrade auth patch (8.4). No rebuild.
Only tagged 2025.2, on an older baseThe tag is cosmetic. It still assumes 2.x routing.Full rebuild (below).
Anything olderAuth and routingFull rebuild (below).

Because the tag can’t tell the first two cases apart, check by testing: after the upgrade, start one workbench per unique image and confirm that it routes and authenticates before you trust the rest.

Why 2.x custom images break, and how to rebuild them:

  1. Authentication. In 2.x, each workbench pod ran an oauth-proxy sidecar. In 3.x, the platform injects kube-rbac-proxy. An image with oauth-proxy configuration built in fights the platform and produces redirect loops. Remove all oauth-proxy binaries, config, and sidecar wiring. The image only needs to serve the notebook on its own port.
  2. Routing. Workbenches now sit behind the Gateway under a path prefix, which is passed in the NB_PREFIX environment variable. The server must serve under that prefix and must not strip it from redirects. For Jupyter, use this entrypoint in place of the upstream start-notebook.sh, which ignores NB_PREFIX:
#!/bin/bash
set -euo pipefail
exec jupyter lab \
  --ServerApp.base_url="${NB_PREFIX:-/}" \
  --ServerApp.ip=0.0.0.0 --ServerApp.port=8888 \
  --ServerApp.token='' --ServerApp.password='' \
  --ServerApp.allow_origin='*' --ServerApp.open_browser=False --ServerApp.quit_button=False

In the Containerfile: drop any oauth-proxy wiring, COPY the entrypoint in, and set it as the ENTRYPOINT.

Warning

Rebuild gotchas.

  • Build for the cluster’s architecture: --platform linux/amd64. An arm64 image fails with exec format error.
  • Production images should be rebased on UBI9 plus Python from registry.redhat.io.
  • NGINX-fronted images (code-server, RStudio) need two extra fixes that Jupyter doesn’t: keep NB_PREFIX in every Location: redirect header, and serve /api as a 302 rather than an inline rewrite (which avoids 403s).

Background: Introducing the Kubernetes Gateway API for custom image migration.

6.3 Re-register the ImageStream with the rebuilt image

oc tag <registry>/<rebuilt-image>:3.x custom-<name>:3.x \
  -n redhat-ods-applications --reference-policy=local

oc annotate imagestream custom-<name> -n redhat-ods-applications \
  opendatahub.io/notebook-image-url="<registry>/<rebuilt-image>:3.x" --overwrite

Verify the new tag resolved:

oc get istag custom-<name>:3.x -n redhat-ods-applications -o jsonpath='{.image.dockerImageReference}{"\n"}'

Expected output: an image reference with a digest (shape):

image-registry.openshift-image-registry.svc:5000/redhat-ods-applications/custom-<name>@sha256:…

--reference-policy=local pins the ImageStream to the internal registry. If you host the image there, also grant system:image-puller to the workbench ServiceAccount for redhat-ods-applications. See Importing a custom workbench image.

Known issue: oc tag can’t reach the image

Symptom. The ImageStream tag shows an import error.

Diagnosis.

oc describe imagestream custom-<name> -n redhat-ods-applications | grep -iA2 error

Workaround. Check that the image URL is correct and public, or add a pull secret for the registry to redhat-ods-applications.

Tracker. None.

6.4 Bump out-of-date image tags

Image3.5 requirement
Jupyter2025.2 recommended. A Jupyter workbench on 2025.1 still lints as compatible.
code-server2025.2 required
RStudio (BuildConfig)latest required, plus a fresh build after the upgrade

First check which tags the ImageStream actually offers. The target may not exist on your cluster yet:

oc get imagestream code-server-notebook -n redhat-ods-applications \
  -o jsonpath='{range .spec.tags[*]}{.name}{"\n"}{end}'

Expected output (must include):

2025.2

Bump every code-server workbench that is on an old tag:

oc get notebooks -A -o json \
  | jq -r '.items[]
      | select(.spec.template.spec.containers[0].image | test("code-?server"))
      | select(.spec.template.spec.containers[0].image | test(":2025\\.[01]$"))
      | "\(.metadata.namespace)/\(.metadata.name)"' \
  | while read -r nb; do
      NS="${nb%/*}"; NAME="${nb##*/}"
      oc patch notebook "$NAME" -n "$NS" --type=json \
        -p='[{"op":"replace","path":"/spec/template/spec/containers/0/image","value":"image-registry.openshift-image-registry.svc:5000/redhat-ods-applications/code-server-notebook:2025.2"}]'
    done

Verify that no code-server workbench is left on 2025.0 or 2025.1:

oc get notebooks -A -o json | jq -r '[.items[] | .spec.template.spec.containers[0].image | select(test("code-?server")) | select(test(":2025\\.[01]$"))] | length'

Expected output:

0

6.5 Stop every workbench

The notebook controller treats the kubeflow-resource-stopped annotation as “stopped” whenever it’s present. Use a timestamp, not the literal true.

STAMP=$(date -u +%Y-%m-%dT%H:%M:%SZ)
for row in $(oc get notebooks -A --no-headers | awk '{print $1"/"$2}'); do
  ns="${row%/*}"; name="${row##*/}"
  oc -n "$ns" annotate notebook "$name" kubeflow-resource-stopped="$STAMP" --overwrite
done

Verify that no workbench has running pods:

oc get notebooks -A -o custom-columns="NAMESPACE:.metadata.namespace,NAME:.metadata.name,RUNNING:.status.readyReplicas"

Expected output: every RUNNING value is 0 or <none> (shape):

NAMESPACE      NAME           RUNNING
ml-project-a   my-workbench   <none>

Known issue: a workbench won’t stop, and its pod keeps coming back

Symptom. The pod restarts after you annotate the workbench.

Diagnosis. Check that the annotation actually applied:

oc get notebook <name> -n <ns> -o jsonpath='{.metadata.annotations.kubeflow-resource-stopped}{"\n"}'

Workaround. If it’s empty, re-annotate with a timestamp. Any non-empty value means stopped.

Tracker. None.

6.6 Verify workbench readiness

Inside the pod:

rhai-cli lint --target-version 3.5 --checks "*notebook*"

Expected output: the notebook checks report PASS or WARNING, with no FAIL. The report sorts images into compatibility buckets (compatible, custom-needs-verification, incompatible-rebuild-after, and so on) and confirms that every notebook is stopped.

PASS

Verification

  • The notebook lint has no FAIL.
  • Every workbench’s RUNNING value is 0/<none>.
  • Every custom image is triaged. Rebuilt images are re-imported, and the owners of “rebuild after” images have a date.

Rollback

  • Restart a workbench (for example, if the upgrade is postponed): remove the annotation with oc -n <ns> annotate notebook <name> kubeflow-resource-stopped-.
  • Revert a tag bump: patch the image back to the previous tag, using the same oc patch notebook … /spec/template/spec/containers/0/image form.
  • ImageStream re-tags are additive. The old tag is still there.

7 - Upgrade

Phase 7 — switch to the support-required-upgrade-3.5 channel, approve the InstallPlan, install the JobSet operator, wait for the DSC, and move to stable-3.5.

Outcome: rhods-operator 3.5 is Succeeded, no 2.x CSV is left, the JobSet operator is installed, the DSC and DSCI are Ready, and the Subscription is on stable-3.5. Phase 7 of 10 · Upgrade. Next: Post-upgrade.

Caution

This is the point of no return. Once you approve the InstallPlan, the only way back is restoring the Pre-flight backup. OpenShift AI doesn’t support rolling back an in-place migration.

Prerequisites

  • Phases 4–6 complete. The latest rhai-cli lint shows zero critical or prohibited findings. Nothing enforces this: the lint can’t stop OLM (see the overview).
  • The Subscription’s approval is Manual (5.10).
  • Every workbench is stopped. Everyone, including you, is logged out of the OpenShift AI dashboard.

Procedure

7.1 Inspect the current subscription

oc -n redhat-ods-operator get subscription rhods-operator \
  -o jsonpath='channel={.spec.channel}{"\n"}approval={.spec.installPlanApproval}{"\n"}installedCSV={.status.installedCSV}{"\n"}'

Expected output (your current channel and 2.25.z):

channel=stable-2.25
approval=Manual
installedCSV=rhods-operator.2.25.10

Confirm that the catalog offers the migration channel:

oc get packagemanifest rhods-operator -n openshift-marketplace \
  -o jsonpath='{range .status.channels[*]}{.name}{"\n"}{end}' | grep -x 'support-required-upgrade-3.5'

Expected output:

support-required-upgrade-3.5

The support-required-upgrade-3.5 channel is kept separate so that nobody can trigger this upgrade by accident. It is the only channel with the cross-major 2.25 → 3.5 path: its edge carries skipRange >=2.25.10 <2.26.0, so any 2.25.10+ goes straight to 3.5. (The unversioned support-required-upgrade channel is for 2.25 → 3.3 only.)

7.2 Mirror the required OSSM v3

Cluster network: Connected

Connected cluster: skip this step. The Cluster Ingress Operator pulls OSSM v3 itself.

Cluster network: Disconnected (air-gapped)

Disconnected cluster. Mirror exactly the OSSM v3 version and channel that the Cluster Ingress Operator requires:

oc set env deployment/ingress-operator -n openshift-ingress-operator --list | grep GATEWAY_API_OPERATOR_VERSION | sed 's/.*=//'
oc set env deployment/ingress-operator -n openshift-ingress-operator --list | grep GATEWAY_API_OPERATOR_CHANNEL | sed 's/.*=//'

Create an ImageSetConfiguration for servicemeshoperator3 pinned to that minVersion/maxVersion and channel. Run oc-mirror --v2 into your mirror registry, then apply the generated cluster resources, making sure the CatalogSource is named redhat-operators. Verify that the version is available:

oc get packagemanifest -o json | jq '.items[] | select(.metadata.name=="servicemeshoperator3" and .status.catalogSource=="redhat-operators") | .status.channels[] | select(.name=="<ossm-channel>") | .entries[].name'

Expected output: includes the version reported by GATEWAY_API_OPERATOR_VERSION (shape):

"servicemeshoperator3.v3.x.y"

If OSSM-dependent components don’t become ready after the upgrade, see KB 7141146.

7.3 Switch to the migration channel

oc -n redhat-ods-operator patch subscription rhods-operator --type=merge -p '{
  "spec": { "channel": "support-required-upgrade-3.5" }
}'

Confirm that OLM produced an unapproved InstallPlan:

oc -n redhat-ods-operator get installplan \
  -o custom-columns='NAME:.metadata.name,CSV:.spec.clusterServiceVersionNames[0],APPROVED:.spec.approved'

Expected output (shape):

NAME            CSV                     APPROVED
install-abcde   rhods-operator.3.5.0    false

Known issue: no InstallPlan appears, stale ResolutionFailed

Symptom. No InstallPlan appears after the channel switch. The Subscription reports ResolutionFailed / ConstraintsNotSatisfiable.

Diagnosis. First confirm that the channel name is exactly support-required-upgrade-3.5. Then check:

oc -n redhat-ods-operator get subscription rhods-operator -o jsonpath='{.status.conditions}' | jq '.[] | select(.type=="ResolutionFailed")'
oc get jobs -n openshift-marketplace

If ResolutionFailed is "True" while the bundle unpack jobs are Complete, the resolver is stale. It’s not a real dependency conflict.

Workaround. Restart the OLM catalog operator to force a fresh resolve:

oc rollout restart deployment/catalog-operator -n openshift-operator-lifecycle-manager
oc rollout status  deployment/catalog-operator -n openshift-operator-lifecycle-manager --timeout=120s
oc -n redhat-ods-operator get installplan

The 3.5 InstallPlan appears within seconds.

Tracker. None filed. Observed in a field run.

7.4 Approve the upgrade

Because of the skipRange edge, any 2.25.10+ normally resolves to a single InstallPlan straight to 3.5. If OLM produces more than one, approve each in turn. This loop handles both cases:

deadline=$(( $(date +%s) + 1800 ))
while (( $(date +%s) < deadline )); do
  IP=$(oc -n redhat-ods-operator get installplan -o json \
    | jq -r '.items[] | select(.spec.approved==false) | .metadata.name' | head -1)
  if [ -n "$IP" ]; then
    echo "Approving InstallPlan $IP ..."
    oc -n redhat-ods-operator patch installplan "$IP" --type=merge -p '{"spec":{"approved":true}}'
    sleep 30; continue
  fi
  phase=$(oc -n redhat-ods-operator get csv rhods-operator.3.5.0 -o jsonpath='{.status.phase}' 2>/dev/null)
  echo "rhods-operator.3.5.0 phase: ${phase:-<pending>}"
  [ "$phase" = "Succeeded" ] && break
  sleep 30
done

If your catalog serves a later 3.5.z (for example rhods-operator.3.5.1), change the CSV name in the loop to match.

Verify that the new CSV succeeded and no 2.x CSV remains:

oc get csv -n redhat-ods-operator --no-headers | grep rhods-operator | awk '{print $1, $NF}'

Expected output: exactly one line:

rhods-operator.3.5.0 Succeeded

Known issue: the approval loop times out before Succeeded

Symptom. The loop runs out its 30 minutes, and the CSV is still not Succeeded.

Diagnosis.

oc logs -n redhat-ods-operator deploy/rhods-operator --tail=50

Workaround. A stuck InstallPlan usually means a removed component was left Managed. Re-run the assessment if you are still on 2.25, fix what it reports, and the upgrade resumes. If the CSV is Succeeded but the DSC is held, see Known issue: DSC held at AdminAckRequired.

Tracker. None.

7.5 Install the JobSet operator

New in 3.5: Kueue depends on the JobSet operator. Install it into its own namespace with an OwnNamespace OperatorGroup. Do not use openshift-operators.

oc create namespace jobset-system

cat <<'EOF' | oc apply -f -
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
  name: jobset-operator
  namespace: jobset-system
spec:
  targetNamespaces:
    - jobset-system
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: job-set
  namespace: jobset-system
spec:
  channel: stable-v1.0
  name: job-set
  source: redhat-operators
  sourceNamespace: openshift-marketplace
  installPlanApproval: Automatic
EOF

Wait for the CSV, then read the operand CRD’s group/version from the cluster, because it can differ between builds:

oc get csv -n jobset-system --no-headers | grep jobset-operator | awk '{print $1, $NF}'
oc get crd | grep -i jobsetoperator
oc get crd jobsetoperators.operator.openshift.io -o jsonpath='{.spec.group}/{.spec.versions[0].name}{"\n"}'

Expected output (on jobset-operator.v1.0.0; later builds may say v1.0.1):

jobset-operator.v1.0.0 Succeeded
jobsetoperators.operator.openshift.io            2026-11-11T15:40:00Z
operator.openshift.io/v1

Create the operand, using the group/version that was reported:

cat <<'EOF' | oc apply -f -
apiVersion: operator.openshift.io/v1   # <-- confirm against the CRD above
kind: JobSetOperator
metadata:
  name: cluster
spec: {}
EOF
oc get crd jobsets.jobset.x-k8s.io -o name

Expected output:

jobsetoperator.operator.openshift.io/cluster created
customresourcedefinition.apiextensions.k8s.io/jobsets.jobset.x-k8s.io

Known issue: no matches for kind "JobSetOperator"

Symptom. Applying the JobSetOperator fails with no matches for kind "JobSetOperator".

Diagnosis. The wrong API group. Earlier drafts of the migration guide used operator.jobset.x-k8s.io/v1alpha1, which is a different group entirely.

Workaround. Use the group/version that oc get crd … -o jsonpath='{.spec.group}/{.spec.versions[0].name}' reports. On v1.0.0 that’s operator.openshift.io/v1.

Tracker. None. A documentation error, fixed here.

Kueue end state: Unmanaged (external RHBOK)

Kueue Unmanaged: JobSet is what lets KueueReady reach True.

Kueue end state: Removed

Kueue Removed: KueueReady=False is expected and does not block the DSC. JobSet is installed anyway so the platform is ready if you enable Kueue later.

7.6 Wait for the DSC and DSCI

oc wait --for=jsonpath='{.status.phase}'=Ready dsc/$(oc get dsc -o jsonpath='{.items[0].metadata.name}') --timeout=20m
oc get dsci -o jsonpath='{.items[0].status.phase}{"\n"}'

Expected output:

datasciencecluster.datasciencecluster.opendatahub.io/default-dsc condition met
Ready

If the wait times out, don’t debug components yet. Check the DSC conditions first. The two most common causes are documented in Post-upgrade:

oc get dsc -o json | jq -r '.items[0].status.conditions[] | select(.status!="True") | "\(.type) \(.reason) \(.message)"'

Expected output, once the DSC is healthy: only conditions that are false by design (for example, KueueReady Removed … on the Removed path), or nothing:

(no output)

7.7 Move off the migration channel

support-required-upgrade-3.5 is a one-shot trigger. It doesn’t advance to later 3.5.z patches. Move to stable-3.5. Don’t use stable-3.x, which would eventually offer a later minor version; that’s a separate planning decision.

oc patch subscription rhods-operator -n redhat-ods-operator --type=merge -p '{
  "spec": { "channel": "stable-3.5" }
}'

Verify:

oc get subscription rhods-operator -n redhat-ods-operator -o jsonpath='channel={.spec.channel} state={.status.state} installedCSV={.status.installedCSV}{"\n"}'

Expected output:

channel=stable-3.5 state=AtLatestKnown installedCSV=rhods-operator.3.5.0

If users had bookmarked dashboard URLs, set up redirects now: KB 7137771.

Verification

  • rhods-operator.3.5.x is Succeeded, and no rhods-operator.2.* CSV remains.
  • The JobSet CSV is Succeeded, and jobsets.jobset.x-k8s.io exists.
  • The DSC and DSCI are Ready, or you are following one of the two linked known issues.
  • The Subscription is on stable-3.5, AtLatestKnown.

Rollback

None supported. From here, the only path back to 2.25 is restoring the Pre-flight backup (etcd snapshot plus OADP). If the upgrade is stuck, go forward: fix the cause in Post-upgrade and contact Red Hat Support on your proactive case.

8 - Post-upgrade

Phase 8 — clear upgrade gates, get the Data Science Gateway programmed, restore inferenceservice-config, migrate workbenches and RayClusters, patch Guardrails, and verify every component on 3.5.

Outcome: the DSC is Ready, the Data Science Gateway is Programmed=True, inferenceservice-config is managed again with no unwanted redeploys, every workbench is on kube-rbac-proxy, RayClusters run under KubeRay without the oauth-proxy sidecar, Guardrails and TrustyAI are migrated with no data loss, and every component is verified. Phase 8 of 10 · After upgrade. Next: Re-test.

The operator is on 3.5, but the migration isn’t finished. Several rhai-cli migrate actions still have to bring components across. Work through this page in order. 8.2 (Gateway) blocks 8.5 (Ray), and 8.3 must run before you judge model health.

Prerequisites

  • Upgrade complete: the 3.5 CSV is Succeeded.
  • The rhai-cli-0 pod and its PVC are still present. In a new pod shell, re-run export KUBECONFIG=/tmp/.kubeconfig; export PATH="/opt/rhai-cli/bin:$PATH" and log in again.
  • In-pod actions may print phase pre-upgrade but effective phase is post-upgrade. That warning is harmless.
Note

The 3.5 operator does these on startup. Don’t do them by hand:

  • HardwareProfile migration: AcceleratorProfiles become HardwareProfiles, and Notebooks/ISVCs are annotated (create-only, so your customizations are kept).
  • GatewayConfig ingressMode: a LoadBalancer ingress mode is carried forward.
  • Kueue ValidatingAdmissionPolicyBinding cleanup: deprecated pre-v2.29 resources are removed.
  • DSC v1 → v2 conversion: datasciencepipelines becomes aipipelines, and modelmeshserving and codeflare are dropped.

Procedure

8.1 Confirm platform health

oc get csv -n redhat-ods-operator --no-headers | grep rhods-operator | awk '{print $1, $NF}'
oc get dsc  -o jsonpath='{.items[0].status.phase}{"\n"}'
oc get dsci -o jsonpath='{.items[0].status.phase}{"\n"}'
oc get pods -n redhat-ods-operator --no-headers | awk '{print $3}' | sort -u
oc get pods -n redhat-ods-applications --no-headers | awk '{print $3}' | sort -u

Expected output:

rhods-operator.3.5.0 Succeeded
Ready
Ready
Running
Running

If the second line isn’t Ready, read the conditions before anything else:

oc get dsc -o json | jq -r '.items[0].status.conditions[] | select(.status!="True") | "\(.type) \(.reason) \(.message)"'

Kueue end state: Removed

Kueue Removed: a KueueReady False Removed line is healthy.

Kueue end state: Unmanaged (external RHBOK)

Kueue Unmanaged: KueueReady should be True. If it reports Managed is not supported, the pre-upgrade RHBOK migration wasn’t finished: complete it now. If it’s False with JobSet missing, see Upgrade 7.5.

Known issue: DSC held at AdminAckRequired (upgrade gates)

Symptom. The DSC is Not Ready with:

Ready=False  [AdminAckRequired]  Waiting for upgrade gates to be acknowledged

Diagnosis. The operator is healthy and is deliberately refusing to reconcile because pre-migration work is outstanding. Nothing has been migrated and nothing is broken: the platform is held in its pre-upgrade state. The gates live in the odh-upgrade-acks ConfigMap (21 keys in 3.5.1):

# Confirm it's the gate
oc get dsc default-dsc \
  -o jsonpath='{range .status.conditions[?(@.reason=="AdminAckRequired")]}{.type}={.status}  {.message}{"\n"}{end}'

# List only the gates still blocking (a satisfied gate reads "true")
oc get cm odh-upgrade-acks -n redhat-ods-operator \
  -o go-template='{{range $k,$v := .data}}{{if ne $v "true"}}{{$k}}{{"\n    "}}{{$v}}{{"\n\n"}}{{end}}{{end}}'

# Progress counter
oc get cm odh-upgrade-acks -n redhat-ods-operator -o json \
  | jq -r '.data | "satisfied: \([.[]|select(.=="true")]|length)/\(length)"'
GateExample messageFix in
ack-3.5-kservekserve blocking workloads found: 2 Serverless InferenceServices, 1 ModelMesh InferenceServices, 1 multi-model ServingRuntimesConvert model serving
ack-3.5-dependencies-kueue-operatorKueue managementState Managed is not supported5.7 Kueue
ack-3.5-removed-codeflareCodeFlare internal CR present5.1 / 5.7
ack-3.5-removed-modelmeshservingModelMeshServing internal CR present5.7
ack-3.5-dependencies-servicemeshoperatorv2Service Mesh Operator v2 subscription … is still installed5.8 / 5.9
ack-3.5-ray2 CodeFlare-managed RayClusters still require pre-upgrade backup acknowledgement5.1
ack-3.5-trustyai1 TrustyAIService instances using PVC storage require pre-upgrade backup5.2

Workaround. Clear each gate by doing the work it names, then let the operator re-evaluate. These are the same conditions rhai-cli lint reports before the upgrade, so a cluster that passed a clean assessment arrives with every gate already true.

Caution

Gates are acknowledgements, not verifications. You can write one directly:

oc patch cm odh-upgrade-acks -n redhat-ods-operator --type=merge -p '{"data":{"ack-3.5-ray":"true"}}'

The operator accepts that and never re-checks it. In a test, a forced true survived repeated reconciles and moved the count from 14/21 to 15/21, while the RayClusters were never backed up. An admin can release the DSC this way without having done any of the migration, and the DSC then reconciles exactly the state the gates exist to prevent. Only acknowledge a gate when the work is genuinely done.

Tracker. None filed. Observed in a field run (2.25.10 → 2.25.11 → 3.5.1, with all pre-migration steps deliberately skipped).

8.2 Confirm the Data Science Gateway

The dashboard, workbenches, and ModelRegistry all resolve through the Data Science Gateway. It must be Programmed=True before you verify anything else.

oc get gatewayconfigs -A -o wide
oc get gateway data-science-gateway -n openshift-ingress -o jsonpath='{.status.conditions[?(@.type=="Programmed")].status}{"\n"}'

Expected output: default-gateway shows READY True, and the last line is:

True

Then open the Red Hat OpenShift AI link in the OpenShift console and confirm the dashboard loads.

Known issue: Data Science Gateway won’t program, blocked by stale Service Mesh 2 Istio CRDs

This is the most common reason a 3.5 upgrade lands with the DSC Not Ready.

Symptom. A chain of failures that reinforce each other:

  • The DSC is stuck Not Ready: ProvisioningFailed: modelregistry.
  • GatewayConfig/default-gateway: failed to lookup … DestinationRule in version "networking.istio.io/v1".
  • Gateway/data-science-gateway: Programmed=False, listener Bad TLS configuration.
  • The istiod-openshift-gateway pod is stuck at 0/1. Its log says failed to list *v1.VirtualService: the server could not find the requested resource.
  • ModelRegistry: failed to compute gateway domain: gateway domain is missing.
  • The ingress-operator log says Istio CRDs are managed by an unknown party. That’s the giveaway.

Diagnosis. When you uninstalled the Service Mesh 2 (Maistra 2.6.x) operator in 5.9, OLM left its *.istio.io CRDs behind, serving only v1beta1/v1alpha3. On OCP 4.20.31+, 4.21.22+, and 4.22+, the OCP built-in Gateway API (“sail” Istio) provides the control plane, and it refuses to install its own v1 CRDs while foreign Istio CRDs exist.

oc logs -n openshift-ingress-operator deploy/ingress-operator -c ingress-operator --tail=200 | grep -c "managed by an unknown party"
oc get crd -l maistra-version -o custom-columns=NAME:.metadata.name,VER:.metadata.labels.maistra-version

Workaround. First confirm there are zero Istio custom resources on the cluster, so deleting the CRDs loses no data. Run this in bash: under zsh the loop iterates once and the check is meaningless.

for crd in $(oc get crd -o name | grep '\.istio\.io$' | sed 's|.*/||'); do
  n=$(oc get "$crd" -A --no-headers 2>/dev/null | wc -l); echo "$crd $n"
done | awk '$2 != 0'

Expected output:

(no output)

If anything is listed, stop: something still uses those CRs, so migrate or remove it first. Otherwise, delete the 14 stale CRDs and restart the ingress operator so sail reinstalls them at v1:

oc delete crd destinationrules.networking.istio.io virtualservices.networking.istio.io \
  gateways.networking.istio.io serviceentries.networking.istio.io sidecars.networking.istio.io \
  envoyfilters.networking.istio.io workloadentries.networking.istio.io workloadgroups.networking.istio.io \
  proxyconfigs.networking.istio.io authorizationpolicies.security.istio.io \
  peerauthentications.security.istio.io requestauthentications.security.istio.io \
  telemetries.telemetry.istio.io wasmplugins.extensions.istio.io
oc rollout restart deploy/ingress-operator -n openshift-ingress-operator

The recovery then fixes itself in sequence: DestinationRule comes back serving v1 → istiod-openshift-gateway reaches 1/1 → the Gateway is Programmed=True → GatewayConfig is Ready (domain assigned) → ModelRegistry is Ready → the DSC is Ready. Verify:

oc get crd destinationrules.networking.istio.io -o jsonpath='{.spec.versions[*].name}{"\n"}'
oc get gateway data-science-gateway -n openshift-ingress -o jsonpath='{.status.conditions[?(@.type=="Programmed")].status}{"\n"}'
oc get dsc -o jsonpath='{.items[0].status.phase}{"\n"}'

Expected output (the first line must include v1; the order and the other versions may differ):

v1alpha3 v1beta1 v1
True
Ready

The *.maistra.io CRDs hold no CRs and don’t block sail. You can optionally remove them in Clean up.

Tracker. None filed. Observed in a field run.

Known issue: Gateway dashboard URL doesn’t resolve (NetworkPolicy rejected)

Symptom. The Gateway exists, but the dashboard URL doesn’t resolve. Clusters with an SRE-managed admission webhook that restricts NetworkPolicy in openshift-* namespaces are the ones affected.

Diagnosis. The GatewayConfig reconciler’s NetworkPolicy POST is rejected:

oc get gatewayconfig default-gateway -o jsonpath='{.status.conditions}' | jq

Workaround.

oc patch gatewayconfig default-gateway --type=merge -p '{"spec":{"networkPolicy":{"ingress":{"enabled":false}}}}'

Tracker. None.

Cluster network: Disconnected (air-gapped)

Disconnected: if servicemeshoperator3 failed to subscribe, the DSCI isn’t Ready, or data-science-gateway shows Unknown, see KB 7141146 and re-check the OSSM v3 mirror.

8.3 Restore the inferenceservice-config ConfigMap

You set it to managed=false in 5.6. Now hand control back. The action restores the annotation, restarts the KServe controller, and checks that no ISVC was redeployed. Inside the pod:

rhai-cli migrate run --migration modelserving.managed-isvc-config --target-version 3.5.0

If you were managing a customized inferenceservice-config by hand before the upgrade, skip the action and only run the verification below.

Verify (workstation):

oc get configmap inferenceservice-config -n redhat-ods-applications -o jsonpath='managed={.metadata.annotations.opendatahub\.io/managed}{"\n"}'

Expected output:

managed=true

Each ISVC should have one active ReplicaSet. An extra ReplicaSet scaled to 0 next to the active one means it was redeployed when it shouldn’t have been. ReplicaSets live in each ISVC’s own namespace:

for ns in $(oc get isvc -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"\n"}{end}' | sort -u); do
  echo "--- $ns ---"
  oc get replicasets -n "$ns" -o custom-columns='NAME:.metadata.name,CREATED:.metadata.creationTimestamp,REPLICAS:.status.replicas'
done

Expected output, per namespace (shape; one predictor ReplicaSet per ISVC):

--- ml-project-b ---
NAME                                CREATED                REPLICAS
my-raw-isvc-predictor-6d9f7c8b5d    2026-10-01T09:12:44Z   1

8.4 Move the workbenches to the new auth model

Workbenches still carry 2.x oauth-proxy config. Without this step they hit redirect loops on first start. Confirm the controllers are up:

oc get deployment -n redhat-ods-applications odh-notebook-controller-manager notebook-controller-deployment --no-headers | awk '{print $1, $2}'

Expected output (READY equals the desired count; shape):

odh-notebook-controller-manager 1/1
notebook-controller-deployment 1/1

Inside the pod, patch every stopped workbench in place. It prompts twice: once before patching, once before the OAuth cleanup. Answer y both times.

rhai-cli migrate run --migration workbenches.patch-auth-model --target-version 3.5.0 --only-stopped --with-cleanup
rhai-cli migrate run --migration workbenches.verify-migration --target-version 3.5.0

Expected output (from verify-migration):

Legacy (2.x): 0
All workbenches have been migrated

Tell users they can restart their workbenches. Their URLs are new: get them from the dashboard.

Note

Custom images with oauth-proxy built in can’t be fixed by this patch. They need the rebuild. The action flags them.

Deferred image migration. If some workbenches couldn’t be stopped before the upgrade, migrate them now. Bump the tags (Jupyter 2025.2 recommended, code-server 2025.2 required, RStudio latest plus a rebuild). Then either edit and save the workbench in the dashboard (it patches automatically), or delete and recreate it using the same PVC so no data is lost.

Known issue: workbenches.verify-migration reports Failed: N

Symptom. The verify action reports failures.

Diagnosis.

oc describe notebook <name> -n <ns>

Workaround. The usual cause is a custom image that still has oauth-proxy built in. Rebuild it and re-import it.

Tracker. None.

8.5 Migrate the RayClusters to KubeRay

Prerequisites: the Gateway is Programmed=True (8.2), the workbench migration is done (8.4), and KubeRay is actually running:

oc get dsc -o jsonpath='{.items[0].spec.components.ray.managementState}{"\n"}'
oc get pods -A --no-headers | grep -i kuberay | awk '{print $4}'

Expected output:

Managed
Running

If KubeRay is missing, see Known issue: ray: Removed silently leaves RayClusters unmanaged. Set ray back to Managed and wait for the operator before you continue:

oc patch $(oc get dsc -o name | head -n1) --type=merge -p '{"spec":{"components":{"ray":{"managementState":"Managed"}}}}'

Inside the pod:

rhai-cli migrate run --migration raycluster.migrate --target-version 3.5.0 --dry-run
rhai-cli migrate run --migration raycluster.migrate --target-version 3.5.0

The dry run prints === DRY RUN MODE === and Summary: N to migrate, M already migrated. To target a single cluster, use --raycluster-cluster, --raycluster-namespace, or --raycluster-from-backup <path to rhoai-3.x copy>. Each migrated cluster restarts its head and worker pods, so expect brief downtime.

STATUS=ready alone is not enough proof. The action rewrites the CR; KubeRay recreates the pods. Confirm the head pod was recreated and now has a single ray-head container with no oauth-proxy:

oc get pod -n <ns> -l ray.io/node-type=head \
  -o jsonpath='{range .items[*]}{.metadata.name}: {range .spec.containers[*]}{.name} {end}{"\n"}{end}'

Expected output (per head pod):

raycluster-a-head-xxxxx: ray-head

Known issue: RayCluster reports ready but the pods are still the 2.x spec

Symptom. The head pod still lists oauth-proxy, or its age is older than the migration, while oc get raycluster says ready.

Diagnosis. KubeRay hasn’t adopted the rewritten spec. Check the pod age:

oc get pods -n <ns> -l ray.io/cluster=<cluster-name> -o wide

Workaround. The CR is already correct, so it’s safe to delete the stale pods and let KubeRay recreate them:

oc delete pod -n <ns> -l ray.io/cluster=<cluster-name>

Then re-check: STATUS=ready, AVAILABLE equal to DESIRED, and every pod 1/1. If this keeps happening, confirm that KubeRay is running (above).

Tracker. None filed. Observed in a field run.

The migration leaves the old ray-dashboard-<cluster> Routes and <cluster>-oauth-<hash> Services behind. They now return HTTP 403 because their ServiceAccount is gone. They’re harmless, and you remove them in Clean up.

8.6 Patch the GuardrailsOrchestrators

Both actions run cluster-wide. trustyai.patch-guardrails adds the missing ReadinessProbe. trustyai.migrate-gorch-otel-exporter rewrites spec.otelExporter to the 3.x schema. Inside the pod:

rhai-cli migrate run --migration trustyai.patch-guardrails --target-version 3.5.0 --dry-run
rhai-cli migrate run --migration trustyai.patch-guardrails --target-version 3.5.0
rhai-cli migrate run --migration trustyai.migrate-gorch-otel-exporter --target-version 3.5.0

Verify the readinessProbe patch by checking that each orchestrator pod reaches 1/1:

oc get pods -n <namespace> --no-headers | grep '^<gorch-name>' | awk '{print $1, $2}'

Expected output (per orchestrator; shape):

my-gorch-7c9d8f6b4-abcde 1/1

Then compare each /info with your Baseline. Every service that was HEALTHY before should still be HEALTHY:

GORCH_ROUTE_HEALTH=$(oc get routes -n <namespace> "<gorch-name>-health" -o jsonpath='{.spec.host}')
curl -sSk "https://${GORCH_ROUTE_HEALTH}/info" -H "Authorization: Bearer $(oc whoami -t)" | jq -c .

Expected output: the same statuses as the baseline (shape):

{"services":{"openai":{"status":"HEALTHY"},"regex":{"status":"HEALTHY"}}}

Known issue: Guardrails /info reports UNKNOWN

Symptom.

{"services":{"openai":{"status":"UNKNOWN","code":500,"reason":"client error (Connect)"}}}

Diagnosis. /info reports the health of the backends (the generator and each detector), not the orchestrator itself. Check what it’s configured to reach:

oc get configmap <orchestratorConfig-name> -n <ns> -o jsonpath='{.data.config\.yaml}'

Workaround. If the baseline showed UNKNOWN too, the backend never existed. This isn’t a regression. If the baseline showed HEALTHY, check that the backend’s ISVC is Ready (8.9).

Tracker. None.

8.7 Verify TrustyAI and restore data if needed

oc wait --for=condition=Available deployment/trustyai-service-operator-controller-manager -n redhat-ods-applications --timeout=120s

Expected output:

deployment.apps/trustyai-service-operator-controller-manager condition met

Compare the current metric count with your backup, per namespace. Run this on your workstation, against the copy you made in 5.2. The pod image doesn’t ship jq.

export BACKUP_DIR=./trustyai-backup
export NS=<namespace>
export TAS_NAME=$(oc get trustyaiservice -n "$NS" -o jsonpath='{.items[0].metadata.name}')
export SVC_PORT=$(oc get svc -n "$NS" "$TAS_NAME" -o jsonpath='{.spec.ports[?(@.name=="http")].port}')
oc port-forward -n "$NS" "svc/$TAS_NAME" 8080:${SVC_PORT} & PF_PID=$!
CURRENT=$(curl -sk -H "Authorization: Bearer $(oc whoami -t)" http://localhost:8080/metrics/all/requests | jq '.requests | length')
BACKUP=$(jq '.requests | length' "$(ls -t ${BACKUP_DIR}/trustyai-metrics-${NS}-*.json | head -1)")
kill $PF_PID 2>/dev/null
[ "$CURRENT" -ge "$BACKUP" ] && echo "OK: no data loss" || echo "DATA LOSS: restore needed"

Expected output:

OK: no data loss

If you see DATA LOSS, restore from the backup on the PVC. Confirm the route label with oc get route -n "$NS" --show-labels. Then, inside the pod, do a dry run and restore:

export NS=<namespace>
export BACKUP_FILE=$(ls -t /tmp/rhoai-upgrade-backup/trustyai/trustyai-metrics-${NS}-*.json | head -1)
export ROUTE_LABEL='trustyai-service-name=<tas-name>'
rhai-cli migrate run --migration trustyai.metrics --target-version 3.5.0 --namespace "$NS" --file "$BACKUP_FILE" --route-label "$ROUTE_LABEL" --dry-run
rhai-cli migrate run --migration trustyai.metrics --target-version 3.5.0 --namespace "$NS" --file "$BACKUP_FILE" --route-label "$ROUTE_LABEL" --skip-existing

Expected output: each metric reports Successfully scheduled, and the summary is:

Failed: 0

Restored metrics get new UUIDs. The original IDs aren’t preserved.

Known issue: GPU ISVC stays Pending next to a TrustyAI service

Symptom. On a GPU cluster, a new GPU-based predictor pod in a namespace with a running TrustyAI service stays Pending indefinitely while the old pod keeps running.

Diagnosis.

oc get pods -A | grep predictor        # look for a 0/N Pending predictor

Workaround. Inside the pod:

rhai-cli migrate run --migration trustyai.break-gpu-deadlock --target-version 3.5.0 --namespace <ns> --dry-run
rhai-cli migrate run --migration trustyai.break-gpu-deadlock --target-version 3.5.0 --namespace <ns>

Tracker. None. The CLI ships a dedicated action for it.

8.8 Verify the non-core components

Model registry and catalog. The catalog now runs two pods, model-catalog and model-catalog-postgres:

oc get pods -n rhoai-model-registries --no-headers | awk '{print $3}' | sort -u

Expected output:

Running

Registries should show Available in the dashboard. The navigation was renamed: registry admin is now Settings → … → Model registry settings, and the catalog moved from AI hub → Catalog to AI hub → Models. Tell your users.

Feature Store (GA):

oc get pods -n redhat-ods-applications --no-headers | grep feast-operator | awk '{print $3}'
oc get featurestores -A
oc create job postupgradetest --from=cronjob/<cronjob-name> -n <namespace> && oc get jobs -n <namespace>

Expected output (first line):

Running

Then check the dashboard under Develop & train → Feature Store, which has a new Gateway URL.

AI Pipelines. Inside the pod, diff against the 5.3 snapshot:

rhai-cli migrate run --migration ai-pipelines.post-upgrade-check --target-version 3.5.0

Then have pipeline users import and run a pipeline, and confirm that scheduled runs are still enabled.

Llama Stack → OGX. Recreate fresh OGXServer (v1beta1) CRs. Use the 5.4 archive only as reference, because the SQLite data can’t be imported. 3.5 needs PostgreSQL 14+, an explicitly enabled embedding provider, the Vector_IO API, llama-stack-client 0.4.x, and config.yaml (formerly run.yaml). See Deploying an OGX server.

Kubeflow Training Operator. Compare with your pre-upgrade list, then run the read-only enumeration (it creates nothing and pulls nothing):

oc get pytorchjobs -A -o custom-columns=NS:.metadata.namespace,NAME:.metadata.name --no-headers | diff ./pytorchjobs-pre-upgrade.txt - && echo "same jobs"

Expected output (jobs that finished and were cleaned up in the meantime show as diff lines; explain each one):

same jobs

Inside the pod:

rhai-cli migrate run --migration training.verify-workloads --target-version 3.5.0

Expected output (when no KFTO v1 job is running, the summary contains one of these):

nothing to migrate
safe to proceed

Any workload still Running/Created is reported as [BLOCKER] instead.

Known issue: training.verify-workloads “completed with failures, please report a bug”

Symptom. With a PyTorchJob still running, the action exits non-zero and ends with:

Migration training.verify-workloads completed with failures
Suggestion: Unexpected error, please report a bug

Diagnosis. A running KFTO v1 job carried across the upgrade is the expected, healthy outcome. The [BLOCKER] refers to the future Trainer v2 migration, not this one.

Workaround. None needed, and no support case is needed either. Confirm that the job list matches your pre-upgrade inventory. A PyTorchJob in a failed state usually means the job itself failed: oc describe pytorchjob <name> -n <ns>.

Tracker. None filed. A misleading message, observed in a field run.

8.9 Verify model serving

Every ISVC should be Ready=True with DEPLOYMENT_MODE Standard (the 3.5 display name for RawDeployment):

oc get pods -n redhat-ods-applications -l control-plane=kserve-controller-manager --no-headers | awk '{print $3}'
oc get pods -n redhat-ods-applications -l control-plane=odh-model-controller --no-headers | awk '{print $3}'
oc get isvc -A -o json | jq -r '["NAMESPACE","NAME","DEPLOYMENT_MODE","READY"], (.items[] | [.metadata.namespace, .metadata.name, .status.deploymentMode, (.status.conditions[] | select(.type=="Ready") | .status)]) | @tsv' | column -t
oc get llminferenceservices -A

Expected output (shape):

Running
Running
NAMESPACE     NAME                DEPLOYMENT_MODE  READY
ml-project-a  my-serverless-isvc  Standard         True
ml-project-b  my-raw-isvc         Standard         True
ml-project-c  my-modelmesh-isvc   Standard         True

Known issues: model-serving symptom matrix

SymptomCauseFix
READY: True but every call returns HTTP 503A Serverless ISVC wasn’t converted before the upgradeConvert to Standard after the upgrade per KB 7134025
Healthy ISVC, but requests return 503 “Application Not Available”A ModelMesh ISVC wasn’t convertedConvert per KB 7134025
Ready=False after the upgrade8.3 hasn’t run yet, or the predictor is failingRun 8.3 first, then check the predictor pod’s events and logs
KnativeServing still Ready, idle pods in knative-servingServerless Operator wasn’t removedNo functional impact. Uninstall it, then oc delete namespace knative-serving
Standalone Authorino still ReadyAuthorino wasn’t removedNo impact on ISVCs (they use the per-pod oauth-proxy). Breaks LLMInferenceService: uninstall it and use RHCL
Gateway API resources don’t workOSSM v2 wasn’t removed, or stale SM2 *.istio.io CRDs remainKnown issue: stale Istio CRDs
Dashboard shows runtimes OutdatedThe runtime templates moved onRedeploy on the latest global serving runtime templates

8.10 Final assessment

rhai-cli lint only works before the upgrade. On 3.5 it does nothing:

rhai-cli lint --target-version 3.5

Expected output:

Current and target versions are the same (3.5), no checks will be executed.

Your post-upgrade confidence comes from 8.1–8.9 and the Re-test diff, not from the lint.

Verification

  • The DSC and DSCI are Ready, the Gateway is Programmed=True, and the dashboard loads.
  • inferenceservice-config is managed=true, with one active ReplicaSet per ISVC.
  • workbenches.verify-migration reports Legacy (2.x): 0.
  • Ray head pods run ray-head only, are newly created, and AVAILABLE equals DESIRED.
  • Guardrails pods are 1/1, and /info matches the baseline. TrustyAI reports OK: no data loss.
  • Model registry, Feature Store, AI Pipelines, and KFTO match the pre-upgrade inventory.
  • Every ISVC is Standard / Ready=True.

Rollback

None supported after the upgrade. Individual steps can be undone in a limited way:

  • inferenceservice-config: oc apply -f ./inferenceservice-config-backup.yaml (from 5.6) restores the pre-upgrade content.
  • A RayCluster: recreate it from ./ray-backup/rhoai-3.x/ with --raycluster-from-backup.
  • Deleted stale Istio CRDs: sail reinstalls them at v1. The Maistra v1beta1 versions are deliberately not restored.

For anything else, go forward with Red Hat Support on your proactive case, or restore the Pre-flight backup.

9 - Re-test

Phase 9 — re-run the baseline probes against the 3.5 cluster, diff before against after, and know exactly what should and should not have changed.

Outcome: a saved after record that matches the Baseline everywhere except the differences this page tells you to expect. That before/after pair is your evidence that the migration broke nothing. Phase 9 of 10 · After upgrade. Next: Clean up.

Post-upgrade proved the platform is healthy. This page proves the workloads still serve their users. These are smoke tests: does each thing still answer a request?

Prerequisites

  • Post-upgrade verification passed.
  • Your $BASELINE directory from Phase 2, and a directory for the after record:
export AFTER=./after-$(date -u +%Y%m%dT%H%MZ) && mkdir -p "$AFTER" && ls -d "$BASELINE" "$AFTER"

Expected output (shape; both directories exist):

./after-20261112T0900Z
./baseline-20261111T1500Z

Procedure

9.1 Inference-test each model

Re-run the same probe as the baseline:

for isvc in $(oc get isvc -A -o jsonpath='{range .items[*]}{.metadata.namespace}/{.metadata.name}{"\n"}{end}'); do
  NS="${isvc%/*}"; NAME="${isvc##*/}"
  URL=$(oc get isvc "$NAME" -n "$NS" -o jsonpath='{.status.url}')
  POD_STATE=$(oc get pods -n "$NS" -l serving.kserve.io/inferenceservice="$NAME" -o jsonpath='{.items[0].status.phase}' 2>/dev/null)
  echo "--- $isvc ---"
  echo "  URL:           $URL"
  echo "  Predictor pod: ${POD_STATE:-no pod}"
  [[ "$URL" != https://* ]] && { echo "  HTTP test:     skipped (cluster-internal only)"; continue; }
  MODEL_ID=$(curl -sk --max-time 10 "${URL}/v1/models" 2>/dev/null | jq -r '.data[0].id // empty')
  if [ -n "$MODEL_ID" ]; then
    REPLY=$(curl -sk --max-time 30 "${URL}/v1/completions" -H 'Content-Type: application/json' \
      -d "{\"model\":\"$MODEL_ID\",\"prompt\":\"The capital of France is\",\"max_tokens\":8,\"temperature\":0}" \
      | jq -r '.choices[0].text // "(error)"')
    echo "  vLLM model id: $MODEL_ID"
    echo "  Completion:    $REPLY"
  fi
done | tee "$AFTER/inference.txt"
diff "$BASELINE/inference.txt" "$AFTER/inference.txt"

Expected output of the diff: differences only for models you converted in Phase 4. Serverless models get a new URL. ModelMesh models change from a grpc://modelmesh-serving… URL to a single-model URL, and may gain an HTTP test they skipped before. Every line for a model that was already RawDeployment is identical, including the completions (temperature: 0):

2c2
<   URL:           https://my-serverless-isvc-ml-project-a.apps.…   (Knative URL)
---
>   URL:           https://my-serverless-isvc-ml-project-a.apps.…   (new Route)

A changed completion, or an ISVC that has gone missing, is a regression. Investigate it in Post-upgrade 8.9. If a runtime image was intentionally updated (a predictor restarted onto a newer vLLM), small wording differences can be legitimate.

Confirm every ISVC is Ready:

oc get isvc -A -o json | jq -r '[.items[] | select(.status.conditions[]? | select(.type=="Ready" and .status!="True"))] | length'

Expected output:

0

9.2 What changes for a Standard model

The honest answer is narrower than “3.x changes routing and auth”. Measured on a real 2.25.10 → 3.5.1 migration of an externally exposed, auth-enabled vLLM ISVC that was already RawDeployment before the upgrade:

PropertyBefore (2.25.10)After (3.5.1)
deploymentModeRawDeploymentStandard (display rename only)
ISVC .status.urlhttps://<name>-<ns>.apps.<cluster>identical
Route name / host<name> / same hostidentical
Route target porthttpsidentical
Route TLS termination / policyreencrypt / Redirectidentical
HTTPRoutes created for the ISVC00
Unauthenticated requestHTTP 302identical
Authenticated request and inferenceservedidentical, same output

Why it survives. For Standard/Raw, the operator creates the Route with an ownerReference to the ISVC and names it after it. Nothing in the upgrade moves that Route onto the Gateway. The Gateway move that does change URLs affects the dashboard and workbenches. Serverless endpoints move because their Knative ingress is gone.

Note

A Standard ISVC is only reachable from outside the cluster if it carries the label networking.kserve.io/visibility: exposed. That label makes the operator create the Route and set .status.url to the external host. The Knative label networking.knative.dev/visibility: cluster-local has no effect on Raw. Also, security.opendatahub.io/enable-auth=true switches the Route from edge/http1 to reencrypt/https.

Check on your own cluster rather than assuming:

NS=<namespace>; N=<isvc-name>
oc get isvc "$N" -n "$NS" -o jsonpath='url={.status.url}{"\n"}mode={.status.deploymentMode}{"\n"}'
oc get route "$N" -n "$NS" -o jsonpath='host={.spec.host}{"\n"}port={.spec.port.targetPort}{"\n"}tls={.spec.tls.termination}{"\n"}'
oc get httproute -n "$NS"

Expected output, for an auth-enabled model that was already Raw (shape):

url=https://my-raw-isvc-ml-project-b.apps.<cluster-domain>
mode=Standard
host=my-raw-isvc-ml-project-b.apps.<cluster-domain>
port=https
tls=reencrypt
No resources found in ml-project-b namespace.

Known issue: auth-enabled model still runs oauth-proxy after the upgrade

Symptom. A customer reports “the URL didn’t change, but auth is still oauth-proxy”:

oc get pod -n <ns> -l serving.kserve.io/inferenceservice=<name> \
  -o jsonpath='{range .items[*]}{.metadata.name}: {range .spec.containers[*]}{.name} {end}{"\n"}{end}'
my-raw-isvc-predictor-…: kserve-container oauth-proxy modelcar

Diagnosis. This is expected behavior on both counts, not a missed step. The oauth-proxy → kube-rbac-proxy change applies to workbenches only. On 3.5.1, the KServe controller keeps model serving on oauth-proxy.

Workaround. None needed. Don’t try to force the change. oc rollout restart reports success, but the controller scales the new ReplicaSet back to 0 and keeps the original pod, because the ISVC-owned Deployment template still specifies ose-oauth-proxy-rhel9. There’s no modelserving auth-model action (workbenches.patch-auth-model is for workbenches only).

Tracker. None. Working as designed in 3.5.1.

9.3 Reach each workbench through the Gateway

3.x workbenches live at https://<gateway-host>/notebook/<ns>/<name>/. Start them (Phase 6 stopped them all):

for row in $(oc get notebooks -A --no-headers | awk '{print $1"/"$2}'); do
  ns="${row%/*}"; name="${row##*/}"
  oc -n "$ns" annotate notebook "$name" kubeflow-resource-stopped- --overwrite
done

Confirm each pod came back with the kube-rbac-proxy sidecar. This proves 8.4 took effect:

oc get pods -n <ns> -o jsonpath='{range .items[*]}{.metadata.name}: {range .spec.containers[*]}{.name} {end}{"\n"}{end}'

Expected output (per workbench pod; no oauth-proxy):

my-workbench-0: my-workbench kube-rbac-proxy

Then probe each workbench through the Gateway:

GATEWAY_HOST=$(oc get gatewayconfig default-gateway -o jsonpath='{.status.domain}')
echo "gateway: ${GATEWAY_HOST:?empty — see known issue below}"
for nb in $(oc get notebook -A -o jsonpath='{range .items[*]}{.metadata.namespace}/{.metadata.name}{"\n"}{end}'); do
  NS="${nb%/*}"; NAME="${nb##*/}"
  CODE=$(curl -sk -o /dev/null -w '%{http_code}' --max-time 10 "https://${GATEWAY_HOST}/notebook/${NS}/${NAME}/")
  echo "$nb -> HTTP $CODE"
done | tee "$AFTER/workbenches.txt"

Expected output, per workbench (any 2xx or 3xx):

ml-project-a/my-workbench -> HTTP 302

Known issue: every workbench probe returns HTTP 000

Symptom. Every line reads HTTP 000.

Diagnosis. GATEWAY_HOST is empty. The gateway domain lives on GatewayConfig .status.domain. There is no .spec.hostname.

oc get gatewayconfig default-gateway -o jsonpath='{.status.domain}{"\n"}'

Workaround. Use the jsonpath above. If .status.domain itself is empty, the Gateway isn’t programmed: see Known issue: stale Istio CRDs.

Tracker. None.

Known issue: a workbench URL returns 404

Symptom. HTTP 404 for one workbench.

Diagnosis. The Gateway HTTPRoute hasn’t propagated yet, or the Notebook wasn’t patched:

oc get httproute -n <ns>

Workaround. Wait about 2 minutes. If it persists, confirm that 8.4 patched this Notebook.

Tracker. None.

9.4 Confirm the DSPAs serve the pipelines API

TOKEN=$(oc whoami -t)
for dspa in $(oc get dspa -A -o jsonpath='{range .items[*]}{.metadata.namespace}/{.metadata.name}{"\n"}{end}'); do
  NS="${dspa%/*}"; DSPA_NAME="${dspa##*/}"
  DSPA_HOST=$(oc get route "ds-pipeline-${DSPA_NAME}" -n "$NS" -o jsonpath='{.spec.host}' 2>/dev/null)
  echo "--- DSPA $dspa https://${DSPA_HOST} ---"
  [ -z "$DSPA_HOST" ] && { echo "  no route found"; continue; }
  curl -sk -H "Authorization: Bearer $TOKEN" "https://${DSPA_HOST}/apis/v2beta1/healthz" | jq -c .
done | tee "$AFTER/dspa.txt"
oc get dspa -A -o json | jq -r '[.items[] | select(.status.conditions[]? | select(.type=="Ready" and .status!="True"))] | length'

Expected output: the healthz bodies match $BASELINE/dspa.txt, and the last line is:

0

Known issue: DSPA endpoint returns 404

Symptom. The healthz probe returns 404, or no route found.

Diagnosis. The pipeline route path can vary after the upgrade:

oc get httproute -A -l app.kubernetes.io/instance=<dspa-name> -o yaml

Workaround. Probe the path that the HTTPRoute exposes.

Tracker. None.

9.5 Confirm Ray clusters accept work

oc get raycluster -A -o custom-columns='NS:.metadata.namespace,NAME:.metadata.name,DESIRED:.spec.workerGroupSpecs[0].replicas,AVAILABLE:.status.availableWorkerReplicas,STATUS:.status.state' \
  | tee "$AFTER/ray.txt"
diff "$BASELINE/ray.txt" "$AFTER/ray.txt" && echo "ray unchanged"

Expected output:

ray unchanged

If a cluster isn’t ready, re-run the migration scoped to it (inside the pod): rhai-cli migrate run --migration raycluster.migrate --target-version 3.5.0 --raycluster-namespace <ns>. Then apply the pod check from 8.5.

Known issue: LLM inference returns 502/503 right after the upgrade

Symptom. A model that passed 8.9 returns 502 or 503 during 9.1.

Diagnosis. The 3.x controller may still be rolling the predictor onto a newer runtime image:

oc get pods -n <ns> -l serving.kserve.io/inferenceservice=<name>

Workaround. Wait 60 seconds and re-run the probe.

Tracker. None.

Verification

Archive both directories together. They are your migration evidence:

tar czf migration-evidence-$(date -u +%Y%m%d).tgz "$BASELINE" "$AFTER" && ls migration-evidence-*.tgz

Expected output (shape):

migration-evidence-20261112.tgz

Re-test passes when:

  • The inference diff shows only the expected Serverless URL changes.
  • Every workbench answers 2xx/3xx through the Gateway, with kube-rbac-proxy.
  • Every DSPA is Ready and healthz matches the baseline.
  • ray unchanged.

Rollback

Read-only phase. Nothing to roll back. A failed probe is a lead for Post-upgrade, not a reason to roll back.

10 - Clean up

Phase 10 — copy every backup off the PVC, remove the rhai-cli pod, clear 2.x leftovers, tell users the new URLs, and record the final 3.5 state.

Outcome: every backup is on your workstation (or in your archive), the rhai-cli pod and PVC are gone, there are no Ray dashboard, Serverless, or Service Mesh 2 leftovers, users have their new URLs, and the final 3.5 state is recorded. Phase 10 of 10 · Clean up. This is the last phase.

Prerequisites

Procedure

10.1 Copy everything off the PVC

Deleting the PVC destroys everything under /tmp/rhoai-upgrade-backup: assessment reports, RayCluster CRs, TrustyAI metrics and data, the AI Pipelines snapshot, and Llama Stack archives.

oc cp rhai-migration/rhai-cli-0:/tmp/rhoai-upgrade-backup ./rhoai-upgrade-backup-final
ls ./rhoai-upgrade-backup-final

Expected output: the directories created by the phases you ran (shape):

ai_pipelines  llamastack  ray_cluster  rhai-cli-output.yaml  trustyai

10.2 Remove the rhai-cli pod and PVC

oc delete statefulset rhai-cli -n rhai-migration
oc delete pvc backup-rhai-cli-0 -n rhai-migration

Expected output:

statefulset.apps "rhai-cli" deleted
persistentvolumeclaim "backup-rhai-cli-0" deleted

Optionally delete the namespace too: oc delete project rhai-migration.

10.3 Remove the leftover Ray dashboard resources

raycluster.migrate left the CodeFlare ray-dashboard-<cluster> Routes and <cluster>-oauth-<hash> Services behind. They return HTTP 403 because the ServiceAccount they used is gone. Per cluster:

oc delete route -n <ns> -l ray.io/cluster=<cluster-name> --ignore-not-found
oc get route,svc -n <ns> | grep -E 'ray-dashboard-|-oauth-'

Expected output (the second command):

(no output)

If a <cluster>-oauth-<hash> Service is still listed, delete it by name.

10.4 Remove any remaining 2.x serving leftovers

oc get csv -A | grep -E 'authorino-operator\.|serverless-operator\.|servicemeshoperator\.' | grep -v rhods
oc get namespace knative-serving --ignore-not-found

Expected output:

(no output)

If anything is listed, remove it as in 5.9, then run oc delete namespace knative-serving. Never touch servicemeshoperator3.

Optionally, remove the harmless *.maistra.io CRDs. Unlike the *.istio.io ones removed in 8.2, they hold no CRs and don’t block the Gateway:

oc get crd -l maistra-version -o custom-columns=NAME:.metadata.name,VER:.metadata.labels.maistra-version

10.5 Tell users what changed

  • New dashboard URL and new workbench URLs (Gateway API). Their 2.x URLs no longer resolve.
  • Model endpoints: publish new URLs only for models you converted from Serverless or ModelMesh. Models that were already RawDeployment keep their Route and URL (9.2).
  • Renamed dashboard navigation: AI hub → Models (catalog) and Settings → Model registry settings.
  • Llama Stack is now OGX: owners recreate their servers as OGXServer.
  • Runbooks: remove references to Serverless and ModelMesh, and note that RawDeployment now shows as Standard.

10.6 Record the final state

Deployment type: GitOps-managed

Update Git first, then re-enable sync. If you re-enable first, the next sync reverts the migration. Your Git source must now describe the 3.x state, at least:

  • the DSC with codeflare, modelmeshserving, and kserve.serving Removed (or dropped under v2), ray Managed, and Kueue Removed/Unmanaged;
  • the DSCI without serviceMesh Managed;
  • the rhods-operator Subscription on stable-3.5;
  • no InferenceServices with Serverless or ModelMesh annotations, and no multi-model ServingRuntimes;
  • no Service Mesh 2, Serverless, or standalone Authorino Subscriptions;
  • the new cert-manager and JobSet operators (and RHCL, if used);
  • OGXServer in place of LlamaStackDistribution.

Before re-enabling, preview what a sync would change:

argocd app diff <app-name>

Expected output: no diff, or only differences you intend:

(no output)

Then restore syncPolicy.automated on each Application, from Git or by re-applying the Application manifest.

Deployment type: Not GitOps-managed

Save the 3.5 DSC for your runbook:

oc get dsc -o yaml > ./dsc-3.5-final.yaml && echo saved

Expected output:

saved

Verification

  • ./rhoai-upgrade-backup-final exists, and the PVC and StatefulSet are gone.
  • There are no ray-dashboard-* / *-oauth-* leftovers and no 2.x serving operators, and servicemeshoperator3 is untouched.
  • Users have been sent the new URLs.
  • 10.6 is done for your deployment type.
  • Close your proactive support case with a short summary and the evidence archive.

Rollback

Deleting leftovers is safe: they were inert. The only irreversible step is deleting the PVC, which is why 10.1 comes first. To restore a component backup later, use the copy in ./rhoai-upgrade-backup-final.

11 - Things that broke

Symptom index — every known break in the 2.25 → 3.5 migration, what it looks like, and a link to the fix on the page where you hit it.

Outcome: you match what you’re seeing to a known issue in one scan, and jump to its full write-up (symptom, diagnosis command, workaround, tracker) on the page where it happens.

Each known issue lives inline, on the page where you hit it. This page is only an index into them. Rows are in migration order. If a symptom matches more than one row, take the earliest phase first: later failures are often caused by a skipped earlier step.

Before the upgrade

You seeLikely causeFix
A converted runtime or DSC component goes back to its old state minutes laterGitOps sync still in flightPre-flight
A loop runs once with the whole list as one itemRunning under zsh, not bashPre-flight
rhai-cli-0 never becomes ReadyPVC Pending, no default StorageClassAssess
migrate run says “completed with skipped steps”, exit 0, nothing changedConfirmation prompt wasn’t answered yAssess
lint --output yaml prints LINT_BLOCKED, exit 1Expected while blockers remainAssess
Converted ISVC READY=False for minutesRawDeployment reloading the modelConvert model serving
storage type [pvc] is not supported, then OVMS model_config_list.json invalid, then 0/1PVC-backed OVMS not fully convertedConvert model serving
Working RawDeployment model loses its runtime after the sweepmultiModel still true on the flipped runtimeConvert model serving
ServingRuntime delete refused, “still in use”A ModelMesh ISVC still references itConvert model serving
Serverless ISVC stuck in TerminatingFinalizer deadlock: Knative/Istio already removedConvert model serving
deploymentMode webhook error on a hand-recreated ISVCChanging the mode of an existing objectConvert model serving
raycluster.backup failsCodeFlare still ManagedRemediate the platform
TrustyAI backup permission deniedMissing --output-dir (read-only root)Remediate the platform
io: read/write on closed pipe, “Backed up 0 file(s)”Empty PVC-backed TrustyAI service (harmless)Remediate the platform
Knative teardown takes 10+ minutesNormal drain, or a stuck controllerRemediate the platform
oc delete smmr hangsService Mesh 2 operator already uninstalledRemediate the platform
Hundreds of CSV deletes from an uninstall sweepDeleting OLM copies instead of the source CSVRemediate the platform
oc tag import error for a custom imageWrong URL or missing pull secretWorkbench images
Workbench pod keeps coming back after stopStop annotation not appliedWorkbench images

During the upgrade

You seeLikely causeFix
No InstallPlan; ResolutionFailed / ConstraintsNotSatisfiableStale OLM resolverUpgrade
Approval loop times out before SucceededA removed component left ManagedUpgrade
no matches for kind "JobSetOperator"Wrong API groupUpgrade
DSC Not Ready, KueueReady=False (Unmanaged path)JobSet operator not installedUpgrade

After the upgrade

You seeLikely causeFix
DSC Ready=False [AdminAckRequired]Upgrade gates: pre-migration work skippedPost-upgrade
DSC ProvisioningFailed: modelregistry; Gateway Programmed=False; istiod-openshift-gateway 0/1; “Istio CRDs are managed by an unknown party”Stale Service Mesh 2 *.istio.io CRDsPost-upgrade
Dashboard Gateway URL doesn’t resolve on a managed clusterNetworkPolicy rejected by an admission webhookPost-upgrade
workbenches.verify-migration reports Failed: NCustom image still has oauth-proxy built inPost-upgrade
RayCluster ready but head pod still has oauth-proxyKubeRay hasn’t adopted the new specPost-upgrade
raycluster.migrate succeeds but nothing recreates pods; status staleray: Removed, so no KubeRayRemediate the platform
Guardrails /info shows UNKNOWNBackend unreachable (check the baseline)Post-upgrade
GPU predictor stuck Pending next to TrustyAIGPU deployment deadlockPost-upgrade
training.verify-workloads “please report a bug”A running KFTO job (healthy)Post-upgrade
ISVC Ready but HTTP 503, “Application Not Available”, Outdated runtimes, leftover Knative or AuthorinoSee the model-serving matrixPost-upgrade
Model URL unchanged but auth still oauth-proxyExpected: only workbenches move to kube-rbac-proxyRe-test
Every workbench probe HTTP 000Empty GATEWAY_HOST (wrong jsonpath)Re-test
Workbench URL 404HTTPRoute not propagated yet, or Notebook not patchedRe-test
DSPA healthz 404Pipeline route path changedRe-test
LLM 502/503 right after the upgradePredictor still rollingRe-test
Old Ray dashboard routes return 403Leftover CodeFlare resourcesClean up

Trackers referenced

  • KB 7134025: converting ModelMesh and Serverless InferenceServices to RawDeployment (the manual fallback).
  • KB 7137771: dashboard URL 404s after the upgrade (bookmark redirects).
  • KB 7141146: OSSM 3.x fails to deploy on a disconnected cluster.

Most of the known issues on these pages say “None filed. Observed in a field run.” They came from real 2.25.10 → 3.5.1 runs and have no Jira or KCS id yet. When one gets a tracker, add its id to the inline write-up.