Skip to content

feat: Make Phoenix (observability) an optional component - #913

Merged
pdettori merged 1 commit into
rossoctl:mainfrom
r3v5:make-phoenix-an-optional-component
Mar 11, 2026
Merged

pdettori merged 1 commit into
rossoctl:mainfrom
r3v5:make-phoenix-an-optional-component

Conversation

@r3v5

@r3v5 r3v5 commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Summary

RHAIENG-3565

Context

Phoenix (LLM observability) is currently deployed as part of the default Kagenti stack. For OpenShift AI deployments, it is not a required component and increases the stack footprint unnecessarily. There's already a partial toggle via components.otel.enabled, but Phoenix is bundled with OTEL so we can't disable it independently. The work is adding a components.phoenix.enabled flag and gating a handful of Helm templates and UI references. Phoenix will be optional for local Kind deployment as well.

User Stories

  • As a platform engineer, I want to install the Kagenti stack without Phoenix (by default), so that I only deploy what is required for core functionality.

What

Make it optional and default to off. Ensure the base Kagenti deployment works fully without Phoenix. Gate all Phoenix-related configuration (Helm values, Ansible tasks, backend config) behind a feature flag. Verify no hard dependencies on Phoenix endpoints exist in the backend or UI.

Why

Mandating Phoenix increases the stack footprint and blocks minimal deployments on OpenShift. Making it optional reduces resource requirements and simplifies the base deployment.

Acceptance Criteria

  • [ ] Kagenti deploys and functions fully on OpenShift without Phoenix enabled

  • [ ] Phoenix can be enabled via a clear configuration flag

  • [ ] No backend or UI errors when Phoenix is disabled

  • [ ] Agent chat, tool deployment, and Shipwright builds work without Phoenix


Related issue(s)

(Optional) Testing Instructions

1. Phoenix is disabled in cluster:

(kagenti-project) ➜  kagenti git:(make-phoenix-an-optional-component) ✗ kubectl get deployments -n kagenti-system
NAME                         READY   UP-TO-DATE   AVAILABLE   AGE
http-istio                   1/1     1            1           31m
kagenti-backend              1/1     1            1           27m
kagenti-controller-manager   1/1     1            1           27m
kagenti-ui                   1/1     1            1           27m
mcp-inspector                1/1     1            1           31m
otel-collector               1/1     1            1           31m

(kagenti-project) ➜  kagenti git:(make-phoenix-an-optional-component) ✗ kubectl get po -n kagenti-system
NAME                                          READY   STATUS    RESTARTS      AGE
http-istio-669ccc7bbc-z9vl6                   1/1     Running   0             31m
kagenti-backend-76d46db54f-k7ktb              1/1     Running   0             17m
kagenti-controller-manager-5b4867ddf7-k2lnx   1/1     Running   0             27m
kagenti-ui-6f547d5965-2fcww                   1/1     Running   0             15m
mcp-inspector-858bbb698-p96hp                 1/1     Running   0             31m
otel-collector-756bdbdd69-2t2wq               1/1     Running   0             31m
postgres-otel-0                               1/1     Running   1 (29m ago)   31m
(kagenti-project) ➜  kagenti git:(make-phoenix-an-optional-component) ✗

Kagenti UI reflects changes:

Screenshot 2026-03-09 at 12 36 46

Kiali confirms no Phoenix in the cluster:

Screenshot 2026-03-10 at 10 33 27

If Phoenix is enabled, UI looks the following way:
Screenshot 2026-03-06 at 17 06 01

2. Phoenix is enabled but OTEL is disabled therefore raises the error:

TASK [kagenti_installer : Install/upgrade kagenti-deps chart] ****************************************************************************************************************************************************************************************************************
Monday 09 March 2026  12:40:43 +0000 (0:00:00.026)       0:00:21.281 **********
FAILED - RETRYING: [localhost]: Install/upgrade kagenti-deps chart (3 retries left).
FAILED - RETRYING: [localhost]: Install/upgrade kagenti-deps chart (2 retries left).
FAILED - RETRYING: [localhost]: Install/upgrade kagenti-deps chart (1 retries left).
[ERROR]: Task failed: Module failed: Failure when executing Helm command. Exited 1.
stdout:
stderr: Error: UPGRADE FAILED: execution error at (kagenti-deps/templates/phoenix.yaml:3:4): components.phoenix.enabled requires components.otel.enabled (Phoenix depends on the OTEL Collector)

Origin: /Users/ianmiller/GitHub/kagenti/deployments/ansible/roles/kagenti_installer/tasks/main.yml:796:3

794     - (charts['kagenti-deps'] | default({})).get('enabled', false) | bool
795
796 - name: Install/upgrade kagenti-deps chart
      ^ column 3

fatal: [localhost]: FAILED! => {"attempts": 3, "changed": false, "command": "/opt/homebrew/opt/helm@3/bin/helm upgrade -i --reset-values --wait --timeout 1200s --create-namespace -f=/var/folders/1q/jx7s14b928n8zvstgfk98lj00000gn/T/tmp8f2d9gek.yml kagenti-deps '../../charts/kagenti-deps'", "msg": "Failure when executing Helm command. Exited 1.\nstdout: \nstderr: Error: UPGRADE FAILED: execution error at (kagenti-deps/templates/phoenix.yaml:3:4): components.phoenix.enabled requires components.otel.enabled (Phoenix depends on the OTEL Collector)\n", "stderr": "Error: UPGRADE FAILED: execution error at (kagenti-deps/templates/phoenix.yaml:3:4): components.phoenix.enabled requires components.otel.enabled (Phoenix depends on the OTEL Collector)\n", "stderr_lines": ["Error: UPGRADE FAILED: execution error at (kagenti-deps/templates/phoenix.yaml:3:4): components.phoenix.enabled requires components.otel.enabled (Phoenix depends on the OTEL Collector)"], "stdout": "", "stdout_lines": []}

PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************
localhost                  : ok=53   changed=14   unreachable=0    failed=1    skipped=68   rescued=0    ignored=0

Fixes #

@pdettori pdettori added the safe-to-test Maintainer reviewed - safe to run E2E tests label Mar 10, 2026

@pdettori pdettori left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Clean, well-structured feature flag implementation that makes Phoenix optional across the entire stack (Helm charts, backend, frontend, shell scripts, E2E tests, docs). The dependency direction is correct — OTEL can run without Phoenix, but Phoenix requires OTEL.

Areas reviewed: Helm/K8s, Python, Frontend, Shell, Security, Tests, Docs, Commits
Commits: 1 commit, signed-off ✓
CI status: All checks passing ✓

Highlights

  • The {{- fail }} guard in phoenix.yaml requiring OTEL when Phoenix is enabled is excellent defensive design
  • The traces/default fallback pipeline in otel-collector.yaml prevents OTEL Collector from starting with no pipelines — necessary correctness fix
  • Good test coverage in test_dashboard_config.py verifying both disabled (empty string) and enabled (passthrough) cases

Minor suggestions (non-blocking)

  1. Two-chart sync: components.phoenix.enabled must be kept in sync across both kagenti and kagenti-deps charts. Consider a note in values.yaml or docs about this requirement — a user could enable Phoenix in one chart but forget the other.

  2. optional: true in ui.yaml: The change from optional: {{ (not .Values.openshift) }} to optional: true is safe since the ConfigMap always provides the key now, but it silently masks future misconfigurations. A brief comment explaining why this is always safe would help future maintainers.

@pdettori
pdettori merged commit 5922d87 into rossoctl:main Mar 11, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe-to-test Maintainer reviewed - safe to run E2E tests

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants