Skip to content

Commit

Permalink
tests: fail out early if not on XFS in clustered ducktape
Browse files Browse the repository at this point in the history
This is a nasty failure mode where we deploy fresh
packages and accidentally wip out our /var/lib/redpanda
symlink, resulting in running tests on very slow drives.
  • Loading branch information
jcsp committed Aug 8, 2022
1 parent d3a3087 commit 087d653
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/rptest/services/redpanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,17 @@ def start_node(self,
if self.coproc_enabled():
self.start_wasm_engine(node)

if self.dedicated_nodes:
# When running on dedicated nodes, we should always be running on XFS. If we
# aren't, it's probably an accident that can easily cause spurious failures
# and confusion, so be helpful and fail out early.
fs = node.account.ssh_output(
f"stat -f -c %T {self.PERSISTENT_ROOT}").strip()
if fs != b'xfs':
raise RuntimeError(
f"Unexpected filesystem {fs} at {self.PERSISTENT_ROOT} on {node.name}"
)

def is_status_ready():
status = None
try:
Expand Down

0 comments on commit 087d653

Please sign in to comment.