backport 1.10 - fix(lightspeed): pre-create /rag-content/vector_db/notebooks in init …#449
Conversation
…container On EKS/AKS, the RAG init container populates /rag-content/ but never creates the notebooks subdirectory. At runtime, llama-stack tries to write /rag-content/vector_db/notebooks/faiss_store.db and fails with PermissionError because it cannot create the directory on a volume it doesn't own. OCP avoids this via fsGroup/supplemental group defaults. The fix pre-creates the directory and widens permissions before the sidecar starts, matching the fix the operator already applies via chmod -R 777 for the rest of vector_db. Fixes: RHDHBUGS-3371 Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
PR Summary by QodoFix Lightspeed RAG init to pre-create notebooks dir and relax /rag-content perms Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
Context used✅ Tickets:
RHDHBUGS-3371 1.
|
There was a problem hiding this comment.
@JslYoon You'll need to also bump the chart version, run the pre-commit hooks and push the resulting changes. See the checklist on the PR description. Thanks.
Jdubrick
left a comment
There was a problem hiding this comment.
@JslYoon @rm3l , I think we need a combination of podSecurityContext and making sure the permissions aren't copied during init. I was testing this locally and chmod fails on its own. This issue is really stemming from the fact the RAG containers UID is 65532 and not 1001, but this suggestion should match what OCP already does, which is set a blanket UID for the Pod. Since this is only failing on vanilla Kubernetes. What do you think?
Co-authored-by: Jordan Dubrick <Dubrickjordan@gmail.com>
Co-authored-by: Jordan Dubrick <Dubrickjordan@gmail.com>
Signed-off-by: Lucas <lyoon@redhat.com>
3fea267 to
0caaa25
Compare
Signed-off-by: Lucas <lyoon@redhat.com>
Signed-off-by: Lucas <lyoon@redhat.com>
Signed-off-by: Lucas <lyoon@redhat.com>
…rious top-level key Signed-off-by: Lucas <lyoon@redhat.com>
…ge structure fix Signed-off-by: Lucas <lyoon@redhat.com>
|



…container
On EKS/AKS, the RAG init container populates /rag-content/ but never creates the notebooks subdirectory. At runtime, llama-stack tries to write /rag-content/vector_db/notebooks/faiss_store.db and fails with PermissionError because it cannot create the directory on a volume it doesn't own. OCP avoids this via fsGroup/supplemental group defaults.
The fix pre-creates the directory and widens permissions before the sidecar starts, matching the fix the operator already applies via chmod -R 777 for the rest of vector_db.
Fixes: RHDHBUGS-3371
Description of the change
Which issue(s) does this PR fix or relate to
How to test changes / Special notes to the reviewer
Checklist
Chart.yamlaccording to Semantic Versioning.values.yamland added to the corresponding README.md. The pre-commit utility can be used to generate the necessary content. Runpre-commit run --all-filesto run the hooks and then push any resulting changes. The pre-commit Workflow will enforce this and warn you if needed.pre-commithook.ct lintcommand.