Assess
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.
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.
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:
Expected output (first line):
Create the StatefulSet:
Expected output:
Wait for the pod:
Expected output:
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.
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:
Then, inside the pod:
Expected output:
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:
The action works out on its own whether it is in the pre- or post-upgrade phase.
| Component | Action | Phase |
|---|---|---|
| Model serving | modelserving.serverless-to-raw | 4 |
modelserving.modelmesh-to-raw | 4 | |
modelserving.hardwareprofiles-ignorelist | 5.6 | |
modelserving.managed-isvc-config | 8.3 | |
| Workbenches | workbenches.patch-auth-model, workbenches.verify-migration | 8.4 |
| TrustyAI | trustyai.metrics, trustyai.data | 5.2, 8.7 |
trustyai.patch-guardrails, trustyai.migrate-gorch-otel-exporter | 8.6 | |
trustyai.break-gpu-deadlock | 8.7 | |
| Llama Stack / OGX | llamastack.backup | 5.4 |
| AI Pipelines | ai-pipelines.pre-upgrade-check, ai-pipelines.update-dsp-role | 5.3 |
ai-pipelines.post-upgrade-check | 8.8 | |
| Ray | raycluster.backup | 5.1 |
raycluster.migrate | 8.5 | |
| Kueue | kueue (RHBOK migration) | 5.7 |
| Training | training.verify-workloads | 8.8 |
Known issue: a declined prompt reports success and exits 0
Symptom. A migrate run ends with All migrations completed, but nothing changed:
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:
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).
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):
Expected output: a findings table, followed by an exit code. On an unremediated cluster that is:
| Exit code | Meaning |
|---|---|
0 | All checks passed. |
1 | At least one prohibited or critical finding. This is expected while blockers remain, not a tool error. |
2 | Warnings only. This is acceptable. |
To cut the noise, filter to one component (wrap the value in *):
| Component | --checks | Component | --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).
| Impact | Meaning | Action |
|---|---|---|
prohibited | Upgrade is not possible. | Stop. Find the component’s section in this manual; if that doesn’t resolve it, contact Red Hat Support. |
critical | The component or workload will fail. | Fix it in the phase that covers it, then re-run the lint. |
warning | A potential issue or deprecated field. | Review it. |
info | A 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):
Expected output (shape; owner, size, and date vary, but the size must not be 0):
Known issue: lint --output yaml prints LINT_BLOCKED and exits 1
Symptom. While blockers remain, the command prints this to stderr and exits 1:
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):
Expected output:
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-0isRunninginrhai-migration, and its PVC isBound.rhai-cli-output.yamlis on your workstation and attached to the support case.- You have a list of every
critical/prohibitedfinding. Each one maps to Phase 4, 5, or 6.
Rollback
lint changes nothing. To remove the pod before you’ve started any migrate action:
Expected output:
Do not do this once you’ve begun Phase 4. The PVC then holds your component backups.