Skip to content

installer: Guard RHOAI references in confirmation and summary output (#526, #527) - #528

Open
raycarroll wants to merge 5 commits into
redhat-ai-americas:mainfrom
raycarroll:fix/526-527-rhoai-guards
Open

installer: Guard RHOAI references in confirmation and summary output (#526, #527)#528
raycarroll wants to merge 5 commits into
redhat-ai-americas:mainfrom
raycarroll:fix/526-527-rhoai-guards

Conversation

@raycarroll

@raycarroll raycarroll commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #525 — this branch is based on fix/ui-deploy-rhoai-optional. Merge #525 first; once it lands, this PR's diff will reduce to the single commit below.

Summary

On non-RHOAI clusters, uninstall-full.sh confirmation prompt listed RHOAI tile artifacts that wouldn't be removed, and deploy-full.sh summary printed a misleading "route not found" for the RHOAI dashboard. Guard both behind namespace-existence checks.

Follows up on #525 which already guarded remove_tile() and made RHOAI optional — these are the remaining UI output paths that still assumed RHOAI was present.

Linked issues

Closes #526
Closes #527

Design reference

  • docs/guides/cluster-install.md

Type of change

  • type:feature — new user-visible capability
  • type:bug — fix for incorrect behavior
  • type:infra — build, CI, deploy, or tooling change
  • type:design — design doc only, no code

Subsystem

  • memory-tree
  • storage
  • curator
  • governance
  • mcp-server
  • operator
  • observability
  • org-ingestion
  • auth
  • ui
  • llamastack

Changes

scripts/uninstall-full.sh

  • confirm(): RHOAI tile listing gated behind oc get namespace — on non-RHOAI clusters the artifact list is omitted entirely
  • summary(): three-way display — "skipped" (--skip-tile), checkmark (RHOAI present), or "(not installed)" (namespace absent)
  • New RHOAI_PRESENT flag tracks namespace existence from confirm() for use in summary()

scripts/deploy-full.sh

  • print_summary(): RHOAI dashboard route query moved inside namespace-existence guard; shows "(not installed)" when namespace absent, preserves "route not found" diagnostic only when RHOAI is installed but route is missing

Test plan

  • Run deploy-full.sh on a non-RHOAI cluster — summary shows RHOAI dashboard: (not installed)

  • Run deploy-full.sh on a RHOAI cluster — summary shows the dashboard URL as before

  • Run uninstall-full.sh on a non-RHOAI cluster — confirmation prompt omits RHOAI tile artifacts; summary shows RHOAI tile artifacts (not installed)

  • Run uninstall-full.sh --skip-tile — summary shows RHOAI tile artifacts (skipped)

  • Golden test (preserve-data): scripts/uninstall-full.sh --skip-data --yes && scripts/deploy-full.sh

  • pytest passes locally (or the affected subset)

  • Manual verification against a running cluster (if applicable)

  • New tests added for new behavior

Reviewer checklist

  • Design doc referenced or created
  • No committed credentials or cluster-specific URLs
  • CLAUDE.md / docs updated if behavior or conventions changed
  • Commit message follows subsystem: Imperative summary format

🤖 Generated with Claude Code

raycarroll and others added 4 commits August 13, 2026 15:32
…hat-ai-americas#518)

The UI deploy script unconditionally ran RHOAI integration steps (proxy
route + tile CR) that failed on clusters without RHOAI installed.
Consolidate all RHOAI tile logic into the UI script (where it belongs)
with namespace and CRD existence guards, add --skip-tile flag support,
and remove the redundant deploy_tile() from deploy-full.sh which now
passes --skip-tile through to the UI script.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…dhat-ai-americas#518)

Same pattern as the deploy fix — check that the RHOAI namespace exists
and the OdhApplication CRD is present before attempting tile artifact
cleanup. Without this, uninstall-full.sh fails on non-RHOAI clusters
because oc delete on a missing resource type is a hard error even with
--ignore-not-found.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…le (redhat-ai-americas#518)

check-prereqs.sh treated missing RHOAI as a failure, blocking deploy on
non-RHOAI clusters. Downgrade to a warning since the only RHOAI
integration is the optional dashboard tile.

Also fix unbound variable error when SKIP_TILE is false — empty bash
arrays trigger set -u with "${arr[@]}" expansion. Use a simple
conditional instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…edhat-ai-americas#526, redhat-ai-americas#527)

On non-RHOAI clusters, uninstall confirm prompt listed RHOAI tile
artifacts that wouldn't be removed, and deploy summary printed a
misleading "route not found" for the RHOAI dashboard. Guard both
behind namespace-existence checks.

Assisted-by: Claude Opus 4.6 <noreply@anthropic.com>
@raycarroll

Copy link
Copy Markdown
Collaborator Author

Note that this has not yet been tested on an RHOAI cluster. Can discuss this afternoon

…americas#526, redhat-ai-americas#527)

The summary checklist used bare `echo` for lines with color variables,
causing literal \033[...] sequences instead of colored output.

Assisted-by: Claude Opus 4.6 <noreply@anthropic.com>
@raycarroll

Copy link
Copy Markdown
Collaborator Author

Note that this has not yet been tested on an RHOAI cluster. Can discuss this afternoon

This has now been tested on RHOAI cluster. please review @rdwj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant