hashicorp / nomad

Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications. Nomad is easy to operate and scale and has native Consul and Vault integrations.
https://www.nomadproject.io/
Other
15k stars 1.96k forks source link

nomad volume detach should warn if no allocs to detach #8641

Open tgross opened 4 years ago

tgross commented 4 years ago

The nomad volume detach command detaches a volume from a specific node, but if there are no allocations eligible to be detached (for example, they're all in use), the command accepts that silently. Printing a warning would make it more clear what's happening.

tgross commented 2 years ago

Additional notes here: the nomad volume detach needs to become more tolerant of broken states in general, so that we can use it to free claims that can't be unpublished because the nodes are gone.