Skip to content

Latest commit

 

History

History
149 lines (106 loc) · 7.54 KB

validate-stack.md

File metadata and controls

149 lines (106 loc) · 7.54 KB

Stack Validation & Preflight Checks

Pre-install node readiness and post-deploy health checks for the Intel® Agent Toolkit.


Table of Contents


Overview

Check When Command Output
Preflight At the start of ./es_auto_installer.sh install; standalone at any time ext/enterprise.agent-toolkit/playbooks/preflight-check.yml Report in env/<name>/logs/health-report-latest.{json,html,txt}; the .txt summary is also printed
Validate After the install ./es_auto_installer.sh validate <layer> Per-component checks in the run output; any failure stops the run with its reason

Components that are not enabled are skipped, not reported as failures.


Preflight Check — Pre-Install

Checks node readiness on every host in the inventory. No result stops the install. The only change it makes is the Kubelet DNS setting (see Troubleshooting).

Status Checks Meaning
FAIL Time sync, Kubelet DNS file, unfinished Kubernetes install, node connection, swap in use, root and containerd disk < 10% free, external DNS, gateway reachable Fix these; they are also listed in the PREFLIGHT WARNING block
WARN CPU governor not performance, THP=always, Hugging Face token invalid Tuning or model access; the install works
PENDING Node resource pressure before the cluster exists; Hugging Face token not set Checked on a later run: after the install, or with HF_TOKEN exported
OK Kernel and OS version, kubelet version (not installed before the cluster exists), NUMA topology Informational, recorded in the report

Example, on a node with the CPU governor on powersave:

  Network connectivity                  [ OK ]  (reachable via ICMP ping <gateway>)
  Platform health                       [ WARN ] governor=powersave freq=3343MHz max=3900MHz
  WARNING: [platform-health] CPU governor on node1
          Hint: Set performance: cpupower frequency-set -g performance
  RESULT: 2 layers — 1 PASSED, 1 WARNING

Runs with the install

In an env inited for agent-toolkit, ./es_auto_installer.sh install runs the preflight first: on a new cluster before Kubespray, otherwise before the components. Runs with --only skip it. To turn it off, set node_preflight_enabled: false in env/<name>/config.agent-toolkit.yaml. The checks are capped at 5 minutes; past that the install continues. The run output is saved to env/<name>/logs/preflight-check.log.

Run standalone

From the enterprise-ai-solutions checkout, after init agent-toolkit. For multi-node, list the nodes in env/<name>/inventory/hosts.yaml first (Multi-Node Deployment, Step 1):

export HF_TOKEN=<token>   # optional: also checks the token for gated models
.venv/bin/ansible-playbook -i env/<name>/inventory/hosts.yaml \
  ext/enterprise.agent-toolkit/playbooks/preflight-check.yml

Report: env/<name>/logs/health-report-latest.json and .html; a summary is printed at the end of the run.


Validate Stack — Post-Deploy

validate runs the validate checks of every enabled component in the target and its dependencies; --only limits it to the target. A healthy stack ends with failed=0 in the run's recap.

Run all checks

./es_auto_installer.sh validate agent-toolkit

Run a single layer or component

./es_auto_installer.sh validate platform --only
./es_auto_installer.sh validate inference --only
./es_auto_installer.sh validate litellm --only

What validate checks

Layer Component Checks
Infrastructure kubernetes kubectl and kubeconfig, API server reachable, node readiness, server version
storage (NFS, Ceph, Trident) CSI driver and node plugin, StorageClass, exactly one default class; Ceph health and OSDs
kata_containers kata-deploy rollout, requested RuntimeClasses
Platform cert-manager, MetalLB, Envoy Gateway Releases, controllers ready, IP pool, GatewayClass and Gateway accepted, TLS secret
Istio istiod, ztunnel on every node, mesh-wide mTLS
PostgreSQL, SeaweedFS Database cluster ready, S3 gateway ready
observability Prometheus Operator, Grafana, Node Exporter, Loki, Tempo, OTel Collector
NRI balloons, NFD Policy and DaemonSet ready, CPU feature labels on nodes
Keycloak (when enabled) Operator and instances ready
Inference KServe, model services CRDs and controllers, serving runtimes, deployed models, CPU policy
LiteLLM Deployment ready, readiness endpoint, master key; a request through the content-safety guardrail and a chat request through LiteLLM
Langfuse, vLLM Semantic Router Web and worker deployments; router and dashboard routed
Agent toolkit Redis Stack, pgvector Pods, Redis PING and RediSearch, pgvector extension and credentials
Agent Sandbox Controller, router, CRDs, templates, warm pools (and the Kata template)
OpenShell, KubeRay Gateway ready; operator and head pod

Not in this release: burn tests, the proxy checks and a post-deploy report file. Node-level checks (time sync, disk, swap, CPU governor, THP, DNS, gateway) are in the preflight.


Troubleshooting

Preflight fails on NTP sync

Ensure chronyd or systemd-timesyncd is running and synchronized on all nodes:

.venv/bin/ansible -i env/<name>/inventory/hosts.yaml all -b -m shell -a "timedatectl status | grep synchronized"

Preflight fails on the Kubelet DNS file

On Ubuntu and Fedora, Kubespray points kubelet at /run/systemd/resolve/resolv.conf, which only exists while systemd-resolved runs; without it, Kubernetes cannot start. When no node runs systemd-resolved, the preflight writes kube_resolv_conf: "/etc/resolv.conf" and resolvconf_mode: "none" to env/<name>/kubespray_extra.yml (reported as Kubelet DNS setting) and the install continues. It reports FAIL when some nodes run systemd-resolved and others do not: one setting cannot serve both, so make the nodes the same, then re-run the install. With the preflight off (node_preflight_enabled: false), write the two lines yourself on such hosts.

Preflight fails on an unfinished Kubernetes install

An install that stopped during kubeadm leaves /var/lib/kubelet/config.yaml on the node. A plain re-run then skips kubeadm init and fails later (secrets is forbidden on kubeadm token create). Reset the nodes, then install again:

./es_auto_installer.sh teardown kubernetes
./es_auto_installer.sh install agent-toolkit

Preflight fails on a node connection

The installer's playbook runs on the installer machine and runs some steps for each node on that node (Kata setup, CPU pinning). A node with no ansible_connection gets those steps run on the installer machine instead, so they report and configure the wrong machine. Add ansible_connection: ssh to every node reached over SSH, and ansible_connection: local to the machine running the installer, in env/<name>/inventory/hosts.yaml, then re-run the install.

A model is still loading

Large models can take 5-15 minutes to load. Re-run validation once they are Ready:

kubectl get llminferenceservices,inferenceservices -n llm-inference
./es_auto_installer.sh validate inference