Unlocking BOSH Locks
search cancel

Unlocking BOSH Locks

book

Article ID: 298023

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

If you come across a scenario where an upgrade or an apply changes is hung on a bosh task, you may try to cancel the task via bosh by running the 'bosh cancel task' command. However, this command sometimes is not effective and after running the command the task will be stuck in a 'cancelling' state when you run 'bosh tasks'.

The cancel tasks command doesn't immediately cancel the task; rather it registers the request and patiently waits for the current task to get into a state where you could safely cancel it. Which is almost never what you want. You know something is wrong and you want to cancel the task NOW.

More importantly perhaps, you want to unlock the current deployment.

BOSH has a lock over each deployment. You can only perform one deployment per deployment name at a time. So if you cannot cancel a task that has locked a deployment, then you cannot perform a subsequent task.

The rest of this article documents how to find and delete a lock.

This info is from a Stark & Wayne Blog found here: https://starkandwayne.com/blog/unlocking-bosh-locks/ 

Environment

Bosh environments.

Resolution

Please contact Tanzu Support and provide this KB Article ID to assist with the resolution.