-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
The function in Tink Worker that creates and starts containers (
tink/cmd/tink-worker/worker/worker.go
Line 150 in 97c97ba
func (w *Worker) execute(ctx context.Context, wfID string, action *proto.WorkflowAction) (proto.State, error) { |
A failure in the start of a container leaves the container around on the host. The Workflow fails and cannot be re-run as is because the container name will have a conflict.
Expected Behaviour
Tink worker should always clean up containers properly.
Current Behaviour
Possible Solution
Move the defer function to immediately after the successful creation of the container.
Steps to Reproduce (for bugs)
Context
Your Environment
-
Operating System and version (e.g. Linux, Windows, MacOS):
-
How are you running Tinkerbell? Using Vagrant & VirtualBox, Vagrant & Libvirt, on Packet using Terraform, or give details:
-
Link to your project or a code example to reproduce issue:
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.