Ovstorage operator debug broker

From NVIDIA-Omniverse/ovstorage · View interactive version

Ovstorage operator debug broker is an AI agent skill from the GitHub repository NVIDIA-Omniverse/ovstorage. Use when triaging a misbehaving ovstorage-broker - covers startup failures, authz denies, listener authn mismatches, streaming write aborts, reload misfires, and drain hangs.

How to use this skill

Skill file

Debug the Broker

Goal

Triage a misbehaving broker using the typed errors, metric labels,

and tracing fields the daemon emits. The broker fails closed by

design; most live-incident classes surface as a typed error before

any backend dispatch.

Recipe

  1. Read

CODE0

§ Debug runbook for the structured walkthrough.

  1. For startup failures, run

cargo run -p ovstorage-cli -- list-routes --config /etc/ovstorage/broker.toml

against the broker's config. The same TOML validator the daemon

runs at startup will report bad routes, unresolvable secret

refs, and invalid listener authn config without binding any

sockets.

  1. For authz denies, look at the tracing output for

broker_authz_decisions_total{outcome="deny"}. The deny path

threads the plugin's reason and explanation into the gRPC

PermissionDenied message; the explanation is typically a

stable rule id from the built-in policy evaluator.

  1. For PolicyEpochStale errors, the request was stamped with a

pre-reload epoch. Nothing in the SDK refreshes and retries it:

it reaches the caller as FailedPrecondition (HTTP 409), which

the caller re-issues itself against the reloaded policy.

  1. For listener authn failures (Unauthenticated), confirm the

mode matches what your callers send:

issuer / audience / jwks_url. JWKS is cached

5 minutes; an unknown kid triggers one refetch before

Unauthenticated.

listeners.

with trusted_peers CIDR allow-list.

configured.

  1. For "broker is up but no routes are visible," check

[[connections]] blocks: backends register at startup; a

missing or misnamed plugin manifest fails startup. Confirm

OVSTORAGE_PLUGIN_DIR is set and readable. Remember that

list-routes shows only roots marked visible: the broker carries a

hidden root to clients marked hidden, and the client keeps it routable

without listing it. A suppressed root is absent from the wire and a direct

caller receives NoRoute, as does an address whose scheme is not in

anonymous_fallback_schemes when no connection serves it. A granted scheme

reaches clients as a hidden s3:/// root, and a brokered client honours it

only when its own [ovstorage.layers.broker] table grants the scheme too.

  1. For streaming-write issues (slow, corrupted, aborted),

distinguish:

broker commits with the chunks received.

status.code() == Cancelled) — broker aborts with

Status::cancelled. Look for broker.write spans

ending in Cancelled to identify these.

after authz. Larger writes need the redirect branch (S3

multipart, GCS resumable, etc.); the plugin must mint

redirects via WriteStep::Redirects.

  1. For lifecycle issues:

increments on validation failure; old broker stays live.

successful reload.

DEFAULT_DRAIN_TIMEOUT). A wedged plugin / upstream

pushes the broker past the deadline and forces truncated

in-flight RPCs.

Common live-incident classes

(Unix) or process restart (Windows). Cert hot-reload is not

implemented.

request. Check the IdP's reachability from the broker host.

synchronous; rising RPC latency points to listener authentication, storage

dispatch, or an outer timeout rather than a remote policy plugin. Watch

histogram_quantile(0.99, rate(broker_rpc_seconds_bucket[5m]))

trending up — though note the RPC-latency histogram is

dormant today (registered but not observed), so this query

may return empty.

broker_lifecycle_events_total{event="reload_failed"}

increments and the broker keeps the previous epoch.

principal (summed across every watch key on the connection) receives

ResourceExhausted (the per-principal cap is 256).

Pre-deploy validation

Always run

cargo run -p ovstorage-cli -- list-routes --config <broker-config>

against a config change before SIGHUP or restart. The same

validator the daemon runs at startup will surface typed errors

without binding any socket.

What's not debuggable today

through your log aggregator.

yet — closing that gap is a tracked work item.

References

— full debug runbook + observability + implementation gaps.

— what to scrape and which spans carry which fields.

— interpreting authz denies and policy-epoch advances.

baseline deployment checklist.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.