-
Notifications
You must be signed in to change notification settings - Fork 123
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
In the nodeclaim creation phase. There are mainly 3 steps.
- create several nodeclaims
- waiting for these nodeclaims to be ready
- get specific node object
https://github.com/kaito-project/kaito/blob/main/pkg/workspace/controllers/workspace_controller.go#L482
We list nodeclaim from informercache in step 2, if local informercache is inconsistent with apiserver, we won't get the right nodeclaim to wait. Then step3 fails, the workspace will be reconciled again.
If the informercache remains inconsistent with apiserver for a while, we will end up creating many nodeclaims.
I observed this happening in the e2e tests. The informercache have more than 10seconds delay. The workspace controller create 200+ nodeclaims.
https://github.com/kaito-project/kaito/actions/runs/16444568532
Steps To Reproduce
Expected behavior
Logs
Environment
- Kubernetes version (use
kubectl version
): - OS (e.g:
cat /etc/os-release
): - Install tools:
- Others:
Additional context
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done