I built openshift-ai-bootstrap because I kept seeing the same failure pattern: automation reports success, the cluster is up, the operator is installed — but a data scientist still can’t open the dashboard, and the scheduler doesn’t actually see a GPU. Provisioned is not the same as working. The answer I landed on is a proof stage: a validation role that runs last, checks the eight quiet failure points, and blocks the release tag unless every one of them passes. This article walks through that gate, why it exists, and what it taught me across AWS, GCP, and Azure.
The Problem: Provisioned Is Not Working
A GPU-backed AI platform on OpenShift is a stack of moving parts. You need the cluster itself, GPU nodes, Node Feature Discovery (NFD) to label the hardware, the NVIDIA GPU Operator to install drivers and device plugins, Argo CD to manage the GitOps deployment, and the Red Hat OpenShift AI (RHOAI) application pods to actually serve the platform. agd provision returning success only tells you the automation ran to completion. It does not tell you that the DataScienceCluster custom resource became ready, that the dashboard route serves HTTP, or that nvidia.com/gpu is allocatable on any node.
The repository answers this with an explicit final workload: ocp4_workload_validate_rhoai. It is the release gate. A deployment cannot be tagged as a release until all checks pass. The spec puts it bluntly: “This is the release gate: a deployment cannot be tagged as a release until all checks pass.”
One Bootstrap, One Ordered Chain
The entry point is a single ./bootstrap.sh script, driven by an onboard.yml manifest. It installs prerequisites, sets up AgnosticD v2, and validates readiness before any deployment begins. The bootstrap itself has a readiness gate: it must show 8/8 PASS on its own checks before you are allowed to deploy. That is the first of two validation stages — one before the cluster exists, and one after everything is installed.
Once readiness passes, agd provision builds the chain in a deliberate order:
- OpenShift 4.22 IPI cluster
- cert-manager
- GPU machineset
- OpenShift GitOps (Argo CD)
- RHOAI via Helm and Argo CD
ocp4_workload_validate_rhoai— the validation role
The order is the design. You cannot validate a GPU node before the cluster exists, you cannot deploy RHOAI before GitOps is ready, and you cannot call the job done before the validation role runs. A deploy takes about 60 minutes and writes deployment_info.txt with console, dashboard, and login details.
agd provisionocp4_workload_validate_rhoai (8 checks)The deployment chain, with the validation gate as the final decision point.
Three Clouds, One Repo
Cloud differences live in per-cloud vars files: vars/rhoai-aws.yml, vars/rhoai-gcp.yml, and vars/rhoai-azure.yml. The GPU instances are deliberately different per cloud:
- AWS:
g4dn.xlarge— NVIDIA T4, 16 GB VRAM - GCP:
a2-highgpu-1g— NVIDIA A100, 40 GB VRAM - Azure:
Standard_NC4as_T4_v3— NVIDIA T4, 16 GB VRAM
All three clouds are marked verified, with release tags v0.1.0-aws, v0.2.0-gcp, and v0.3.0-azure-final. v1.0.0 is released.
The docs/gpu-sizing.md guide maps instance types to model sizes using VRAM as the primary constraint. For example, 16 GB fits a 7B-parameter model in FP16, 40 GB fits a 20B model in FP16 or a 65B model in 4-bit quantization. The guide also lists recommended models per tier — Granite, Llama, Muse, Qwen, Nemotron, Mistral — and is kept current by a weekly GitHub Actions workflow that queries the HuggingFace Hub API for new releases from ibm-granite and meta-llama, then opens an issue when the guide needs updating.
The Validation Gate: Eight Checks, One Release Rule
The ocp4_workload_validate_rhoai role runs as the final workload after every deployment. It is read-only, cloud-agnostic, idempotent, and designed to finish in under five minutes. Each check targets a specific quiet failure mode:
DataScienceClusterReady — the CR was created but never became ready.- RHOAI dashboard returns HTTP 200/302/301 — a route can exist without serving.
- NFD
NodeFeatureDiscoverypresent — feature discovery is missing entirely. - GPU node has the NVIDIA CUDA driver label — GPU feature discovery did not complete. The spec originally called for an NFD PCI label, but the role uses
nvidia.com/cuda.driver-version.majorbecause it is more reliable — it is set by the GPU feature discovery pod only after the driver is actually loaded. - GPU Operator
ClusterPolicyready — the operator installed but the policy never applied. nvidia.com/gpuallocatable is at least 1 — the scheduler cannot see the GPU.- GPU Operator pods all Running — driver, device-plugin, or toolkit pods failed.
- RHOAI application pods all Running — the AI application backend is not up.
The role emits a structured pass/fail summary via agnosticd.core.agnosticd_user_info, then fails with a non-zero exit if any check failed. The release rule is strict: no release tag unless all eight pass.
Field Lessons the Gate Learned
The gate did not start out perfect. Running it on real deployments taught me four things that are now baked into the project:
- The GPU Operator is slow. After
ClusterPolicyis created, it can take 5–10 minutes beforenvidia.com/gpubecomes allocatable. The gate treats waiting as a documented step, not a failure. - Argo CD needs permissions before it can create the
DataScienceCluster. Without aclusterrolebindinggranting the Argo CD service account cluster-admin, the RHOAI installation silently stalls. The role automates this for new deployments. - GCP service-account keys from RHPDS can arrive corrupted. Truncated PEM lines produce an
ASN.1 parsing erroron provision. The repo shipsscripts/validate-gcp-key.pyto report the line-length violation so the operator fetches a fresh key instead of debugging blind. - Teardown can fail on Route53.
agd destroyhitsHostedZoneNotEmptyExceptionuntil the cluster’sapi.*and*.apps.*DNS records are cleared.
What a Platform Team Should Take From It
If you are building or maintaining an AI platform, I would argue for four practices:
- Define “working” as an executable validation stage, not as a provision log line.
- Put the validation gate at the end of the automation chain and make release tags obey it.
- Use read-only checks so the gate is safe to rerun and has no side effects.
- Keep cloud differences in vars files rather than duplicating validation logic per cloud.
The spec codifies the last two: the role is cloud-agnostic, idempotent, and runs under five minutes because every check is a read-only query.
