Skip to content

Report Pending for an AIMService that no node can run - #95

Open
salexo wants to merge 1 commit into
mainfrom
fix/service-status-not-available
Open

salexo wants to merge 1 commit into
mainfrom
fix/service-status-not-available

Conversation

@salexo

@salexo salexo commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Why

When spec.resources overrides a profile's resources and no node fits them, the profile component reports NotAvailable. The framework keeps that as the worst state, and AIMServiceStatus.SetStatus passed it through to status.status, whose enum is Pending;Starting;Running;Degraded;Failed. The API server then refused the whole status update (status.status: Unsupported value: "NotAvailable"), so the service kept its previous status and conditions, for example Running with Ready=True. Found by @bjorn-amd in the review of #64, which reports NoNodesForAllocation through the same state.

What changes

  • SetStatus maps NotAvailable to Pending: no node can run the service yet, and it starts once one appears. The component's reason still reaches the Ready condition.
  • The status tables in services.md and resource-lifecycle.md describe the mapping, and the changelog has a Fixed entry.

Testing

TestServiceStatusAcceptsEveryFrameworkStatus sets each status the framework derives (Pending, Progressing, Ready, Degraded, NotAvailable, Failed) on an AIMService and validates the object against the generated v1alpha2 CRD schema. Without the fix it fails for NotAvailable with the API server's error. make lint and the API, AIMService and controller tests are clean.

The framework derives NotAvailable when no node matches a service's
resource override, and AIMServiceStatus.SetStatus passed it through. The
status.status enum doesn't allow it, so the API server refused the whole
status update and the service kept its previous status and conditions.
Map NotAvailable to Pending, and test every framework status against the
generated CRD schema.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant