Repository navigation
fix(model-manager): gated models on IIM, teardown with later models, duplicate LiteLLM entries - #104
Open
AhmedSeemalK wants to merge 1 commit into
Open
AhmedSeemalK wants to merge 1 commit into
AhmedSeemalK wants to merge 1 commit into
Conversation
…duplicate LiteLLM entries - Pass the hf-token Secret to Intel Inference Microservices serving pods; the launcher refuses a gated model without HF_TOKEN (DCAIDSE8-2636). - llm_services runs its own teardown before the label pass, so models deployed later with model-manager or Headlamp no longer hold the model-store PVC (DCAIDSE8-2637). - A --wait deploy or undeploy retires a pending no-wait reconciler, and registration re-reads /model/info instead of adding the model again (DCAIDSE8-2638). Signed-off-by: AhmedSeemalK <100253923+AhmedSeemalK@users.noreply.github.com>
AhmedSeemalK
requested review from
Mushtaq-BGA and
vhpintel
and
a balanced review from Copilot
December 4, 2026 14:32
There was a problem hiding this comment.
🟡 Changes recommended
In-flight reconciliation is not canceled and awaited, allowing a deleted model to be re-registered after undeploy or registration to race a foreground deploy.
1 open issue
What changed in this PR
This PR addresses model-manager deployment and teardown issues involving gated models, later-deployed workloads, and duplicate LiteLLM registrations.
Changes:
- Pass the Hugging Face token Secret to Intel Inference Microservices serving pods.
- Run model teardown before ownership-label cleanup.
- Add reconciler retirement and retry registration visibility checks without repeating successful additions.
| File | Description |
|---|---|
| roles/llm_services/vars/openshift.yaml | Add an empty variables file for teardown loading. |
| roles/llm_services/vars/kubernetes.yaml | Add an empty variables file for teardown loading. |
| model_manager/tests/test_units.py | Test token injection, reconciler retirement, and registration retries. |
| model_manager/core/routing.py | Poll registration visibility after a successful addition. |
| model_manager/core/renderer.py | Inject the token Secret into IIM serving pods. |
| model_manager/core/cli.py | Add reconciler retirement during deployment and removal. |
| components.yaml | Configure model teardown before label-based cleanup. |
Review effort: Balanced
Comment on lines
+376
to
+377
| except BlockingIOError: # still running: it stops once its log is gone | ||
| log.unlink(missing_ok=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

fix(model-manager): gated models on IIM, teardown with later models, duplicate LiteLLM entries
Fixes for v1.2.0-rc.2: