This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stable/concourse] properly cleanup btrfs subvolume and children (#14941
) When a `dind` (Docker in Docker) image is used with btrfs to e.g. run integration tests as per https://hub.docker.com/r/amidos/dcind/ in some occasions like job errors or interruptions the btrfs subvolumes are left not cleaned. So what happens then is that when the `rm -rf /concourse-worker-dir` runs it fails with `Operation not permitted` error which then causes `Init:Error` and ends in `Init:CrashLoopBackOff`. The solution is to take that into account and properly delete all of the btrfs subvolumes. This can be achieved either with the suggested script or with the mount option [user_subvol_rm_allowed](https://askubuntu.com/questions/509292/how-to-set-user-subvol-rm-allowed-capability) that is tricky to apply or with that delete script that seems as a better option. Signed-off-by: Ciro S. Costa <[email protected]> Co-authored-by: Radoslav Kirilov <[email protected]> Co-authored-by: Taylor Silva <[email protected]>
- Loading branch information