bottlerocket-os / bottlerocket-os/bottlerocket
Host Container Unable to Create Container Task
- Dominant language
- Rust
- Stars
- 9.7k
- Forks
- 586
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 12
Description
**Image I'm using:**
Bottlerocket K8s 1.29
VERSION_ID: 1.19.4
Build_ID=4f0a078e
**What I expected to happen:**
Expect container task to start every iteration.
**What actually happened:**
Container task fails to start after it encounters failure.
**How to reproduce the problem:**
I can see the container task start when a new node comes up. During its regular run, it fails to start again and complains the task already exists. This appears to happen when the previous deletion fails. I can see in logs the deletion of task fail with `context deadline exceeded` error.
`level=error msg=failed to delete container task" error="failed to delete task: context deadline exceeded: unknown"`
`level=error msg=failed to cleanup container" error="cannot delete running task taskname: failed precondition"`
Subsequent runs are unable to get the task started as it seems to exist already.
Contributor guide
Research direction
Start by reproducing the recurring container-task run on Bottlerocket K8s 1.29 and inspect the reported deletion and cleanup errors, especially the context deadline exceeded and failed precondition messages. Trace the task deletion and recreation flow, then verify that a failed cleanup cannot prevent subsequent iterations from starting the task.
Written by the indexing model from the issue text.
Assessment
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100