Skip to content

Commit 0e2679c

Browse files
committed
roachtest: require workload disk for snapshots
Previously, an optimization was made to workload nodes to not include any data disks [1]. This breaks the snapshot functionality provided by roachprod. A different issue has been craeted to make the snapshot functionality compatible with VMs without data disks [2]. [1] #153952 [2] #156760 Fixes: #156713 Epic: None
1 parent 00ea203 commit 0e2679c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pkg/cmd/roachtest/tests/admission_control_database_drop.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ func registerDatabaseDrop(r registry.Registry) {
2929
spec.CPU(8),
3030
spec.WorkloadNode(),
3131
spec.WorkloadNodeCPU(8),
32+
// The use of snapshots requires workload nodes to also have an attached disk.
33+
// See: https://github.com/cockroachdb/cockroach/issues/156760
34+
spec.WorkloadRequiresDisk(),
3235
// The dataset uses above 4TiB of data, and if we have to create the dataset
3336
// via IMPORT we need some buffer. 500GiB per node (4.5TiB total) has been
3437
// found to fail regularly in the past since the IMPORT job fails when any

pkg/cmd/roachtest/tests/admission_control_index_backfill.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ func registerIndexBackfill(r registry.Registry) {
2929
10, /* nodeCount */
3030
spec.CPU(8),
3131
spec.WorkloadNode(),
32+
// The use of snapshots requires workload nodes to also have an attached disk.
33+
// See: https://github.com/cockroachdb/cockroach/issues/156760
34+
spec.WorkloadRequiresDisk(),
3235
spec.WorkloadNodeCPU(8),
3336
spec.VolumeSize(500),
3437
spec.GCEVolumeType("pd-ssd"),

0 commit comments

Comments
 (0)