Convert model serving
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.
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
InferenceServiceorLLMInferenceService. - You have audited the cluster for other consumers of OpenShift Service Mesh v2 and confirmed they can be migrated or removed.
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:
Expected output: one non-empty file (shape):
Procedure
4.1 Enumerate what needs converting
Inside the pod, run the serving-focused lint:
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:
Expected output: one row per ISVC to convert, or nothing if you have none (shape):
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:
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:
Expected output:
Verify that each converted ISVC is RawDeployment and Ready:
Expected output (shape):
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:
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:
Verify each ISVC:
Expected output:
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:
- The webhook rejects the pod:
storage type must be one of [s3, hdfs, webhdfs]. storage type [pvc] is not supported. - OVMS crash-loops:
Configuration file is invalid /models/model_config_list.json. It kept the multi-model launch args. - The pod runs but stays
0/1. No container port is declared, so the readiness probe defaults totcpSocket: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:
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.
pvc://<pvc>/<path> points at the model root, and OVMS finds the version subdirectory itself. Verify:
Expected output:
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.
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.
Expected output:
If it still says true while the ISVC is Ready on RawDeployment, don’t sweep. Re-apply the conversion’s own changes instead:
Also cross-check that no runtime you’re about to delete is referenced by a live ISVC (.spec.predictor.model.runtime). Then sweep:
Expected output: usually nothing. Otherwise, one Deleting … line per leftover:
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:
Workaround. Delete the ModelMesh ISVC that references it first, then the runtime.
Tracker. None. Expected behavior.
4.5 Confirm every model is RawDeployment
Expected output:
Inside the pod:
Pass it through grep to count the critical workload rows:
Expected output:
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.
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:
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.
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:
Verify:
Expected output:
Disconnected RHCL. Find the wasm-shim image SHA on the wasm-shim-rhel9 catalog page, then:
Create
wasm-plugin-pull-secretinopenshift-ingressfrom the cluster pull secret:Patch the
rhcl-operatorSubscription with the mirrored WASM image (RELATED_IMAGE_WASMSHIM,PROTECTED_REGISTRY), using your mirror registry and the wasm-shim SHA.Inject
WASM_INSECURE_REGISTRIESinto the Gateway pod through a<gateway>-configConfigMap inopenshift-ingress, and reference it from the Gateway’sinfrastructure.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):
RBAC (recommended): create a
ServiceAccount, aRolethat grantsgeton the namedllminferenceservicesresource, and aRoleBinding. Clients then sendAuthorization: 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:
Verify that every LLMInferenceService is Ready:
Expected output, per resource:
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:
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. Stripstatus,resourceVersion,uid, andcreationTimestampfirst. 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.