cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

roachprod: warn if attempting to delete a cluster before snapshotting a workload collection volume

Open coolcom200 opened this issue 3 years ago • 0 comments

Workload collection works by creating, attaching and mounting a volume to nodes in a cluster. The workload is then collected to this volume. The volumes are configured to be deleted when the cluster is deleted which means that it is possible to delete a cluster and its volumes before the captured workload is saved. In order to improve the user experience, adding some guardrails to prevent users of the workload collection roachprod commands from deleting a cluster before they have taken at least one snapshot of a workload collection volume in the cluster.

Related to: https://github.com/cockroachdb/cockroach/pull/91686#pullrequestreview-1225391201

Jira issue: CRDB-22675

coolcom200 avatar Dec 21 '22 16:12 coolcom200