Skip to the content.

Skupper Model Provider

Expose remote GPU-hosted LLM models to localhost via a Skupper V2 Virtual Application Network. Separates one-time infrastructure setup from daily start/stop operations. Manages a 4-site VAN across podman and Kubernetes (CRC) platforms with automated model container orchestration via hosted-model-ctl.

For architecture details, topology, and routing tables, see references/architecture.md.

For agent orchestration rules (signal routing, scoping, partial availability, startup/shutdown order), see references/agent-orchestration.md.

Site Switch — RHEL_AI_ENABLED

topology.env → RHEL_AI_ENABLED="false" takes rhel-ai out of every script: setup (Phase 1, its local listener and link), up, down, status, teardown, upgrade, precheck, and host/profile validation (up.sh rhel-ai → “disabled”). The VAN becomes local ↔ rhtevan-work (2-site; 3-site with CRC). Default true (or absent) keeps the original behaviour.

Script Separation

Script Purpose When to use
setup.sh One-time infrastructure First time, or after teardown
setup.sh --check Precheck only (topology + validation) Before setup, or to inspect topology
teardown.sh Remove infrastructure Decommissioning
upgrade.sh Align podman versions to CRC baseline After CRC operator upgrade
up.sh [SITE] Start VAN (controllers + routers) Daily use
down.sh [SITE] Stop VAN (routers + controllers) End of day
status.sh Full health check Troubleshooting
test-model.sh SITE_OR_PROFILE E2E connectivity test Verification

Workflow

The agent MUST select the appropriate operation based on the user’s request and run the corresponding script. The agent MUST report the script output verbatim.

Step 1 — Precheck

The agent MUST run: bash ~/.agents/skills/skupper-model-provider/scripts/setup.sh --check

Step 2 — Setup

The agent MUST run: bash ~/.agents/skills/skupper-model-provider/scripts/setup.sh

Step 3 — Upgrade

The agent MUST run: bash ~/.agents/skills/skupper-model-provider/scripts/upgrade.sh

Step 4 — Start

The agent MUST run: bash ~/.agents/skills/skupper-model-provider/scripts/up.sh [SITE]

Step 5 — Stop

The agent MUST run: bash ~/.agents/skills/skupper-model-provider/scripts/down.sh [SITE]

Step 6 — Status

The agent MUST run: bash ~/.agents/skills/skupper-model-provider/scripts/status.sh

Step 7 — Teardown

The agent MUST run: bash ~/.agents/skills/skupper-model-provider/scripts/teardown.sh

Step 8 — Test

The agent MUST run: bash ~/.agents/skills/skupper-model-provider/scripts/test-model.sh [SITE]

Error Handling

Script Idempotent On Failure
setup.sh ✅ Safe to retry. Checks existing state before each phase.
teardown.sh ✅ Safe to retry. Skips missing resources.
upgrade.sh ✅ Safe to retry. Verifies versions before/after.
up.sh ✅ Safe to retry. Skips unreachable hosts.
down.sh ✅ Safe to retry. Skips unreachable hosts.
status.sh ✅ (read-only) Never modifies state.
test-model.sh ✅ (read-only) Never modifies state.

Troubleshooting

Symptom Cause Fix
CRC link Pending Stale CA cert in link secret Compare CA fingerprints, refresh secret, restart pod
SSL certificate verify failed Server cert missing SANs Regenerate cert with proper SANs
Connection refused on :55672 No inter-router listener Inject listener into skrouterd.json, restart router
Observer shows suffixed site names Podman platform limitation (v2.2.1) Upgrade to v2.2.3
Version mismatch across sites Podman sites not aligned with CRC Run upgrade.sh

For detailed troubleshooting procedures, see references/troubleshooting.md.

Specification

ID Capability Verifiable By
S1 One-time VAN setup across 4 sites setup.sh → all sites Ready
S2a Start ALL VAN infrastructure up.sh → all sites up, all listeners active
S2b Start scoped VAN (one site) up.sh SITE → SITE up, other routes unaffected
S3a Stop ALL VAN infrastructure down.sh → all sites down
S3b Stop scoped VAN (one site, others active) down.sh SITE → SITE down, other routes preserved
S3c Stop scoped VAN (last site) down.sh SITE → SITE + local stopped
S4 Full status with all components status.sh → comprehensive report
S5 E2E connectivity test test-model.sh → 6/6 pass
S6 Teardown infrastructure teardown.sh → all Skupper containers stopped
S7a Auto-restart on crash (normal hosts) Kill router → auto-restart within 10s
S7b Auto-restart on crash (tmpfs hosts) Kill router → auto-restart within 10s
S8 Agent orchestration with hosted-model-ctl Signal → VAN + model lifecycle coordinated
S9a Partial start — provider unreachable Available providers up, unreachable skipped
S9b Partial start — consumer unreachable All providers up, unreachable consumer skipped
S9c Partial stop — provider unreachable Reachable hosts stopped, unreachable skipped
S10a Start scoped consumer site up.sh crc → CRC link recreated, no model delegation
S10b Stop scoped consumer site down.sh crc → CRC link deleted
S11a Start localhost independently up.sh localhost → local started, links reconverge
S11b Stop localhost independently down.sh localhost → local stopped, remotes untouched
S12 Upgrade podman sites to CRC baseline upgrade.sh → all versions aligned
S13 Disable rhel-ai site RHEL_AI_ENABLED=false → precheck/up/down/status/teardown/upgrade skip rhel-ai; up.sh rhel-ai → disabled

Tests

Test Spec Precondition Command Expected
T1 S1 Clean (post-teardown) setup.sh All sites Ready, all links connected
T2a S2a All sites down up.sh All sites up, all listeners active
T2b S2b Only rhtevan-work up up.sh rhel-ai rhel-ai starts, :9000 listening
T3a S3a All sites up down.sh All stopped, no listeners
T3b S3b Both providers up down.sh rhel-ai rhel-ai down, :10000 preserved
T3d S3c Only rhtevan-work up down.sh rhtevan-work All stopped
T4 S4 Any status.sh All components reported correctly
T5 S5 VAN + model up test-model.sh rhtevan-work 6/6 pass
T6 S6 Any teardown.sh All Skupper containers stopped
T7a S7a VAN up Kill rhtevan-work router, wait 12s Auto-restarted
T8 S8 All down “start skupper” signal VAN + models up, e2e pass
T9a S9a rhel-ai unreachable up.sh rhtevan-work up, rhel-ai skipped
T10a S10a CRC authenticated up.sh crc CRC links recreated
T11b S11a Local down, providers up up.sh localhost Local started, links reconverge
T12 S12 Version mismatch upgrade.sh All versions match CRC baseline
T13 S13 RHEL_AI_ENABLED=false setup.sh --check; up.sh --list-sites; up.sh rhel-ai 2-site tree, no rhel-ai checks; rhtevan-work; “disabled” error

Gotchas

For the full known issues table, see references/known-issues.md.

Rules

Do NOT fabricate or invent command output, status, or results. Every report MUST come from actual script or command execution. If a command fails, report the actual error — do not guess.

Do NOT skip steps or combine multiple operations into one step. Execute each step in order and verify before proceeding.

Prerequisites

Network Observer (CRC)

Web console for the whole VAN (sites, links, services, traffic flows) from the RHSI Network Observer operator.

Relationship to Other Skills

Skill Relationship Coupling
hosted-model-ctl Manages model container lifecycle Agent-level semantic triggering
goose-skupper-provider Configures Goose to use the exposed endpoint Independent

References

Changelog

See CHANGELOG.md for version history.