cockroach
cockroach copied to clipboard
roachprod: warn if attempting to delete a cluster before snapshotting a workload collection volume
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