From: Kyr Shatskyy Date: Mon, 1 Jul 2024 12:18:54 +0000 (+0200) Subject: qa: ceph.py mkfs.ext4 has no -f X-Git-Tag: v20.0.0~1347^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4e54a9034c8ccee3f5283c079a0c32cf02282478;p=ceph.git qa: ceph.py mkfs.ext4 has no -f Addresses probable issue: mkfs.ext4: invalid option -- 'f' Fixes: https://tracker.ceph.com/issues/10797 Signed-off-by: Kyr Shatskyy --- diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 6314183c3b37..706ea6b89f13 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -990,7 +990,9 @@ def cluster(ctx, config): try: remote.run(args=['yes', run.Raw('|')] + ['sudo'] + mkfs + [dev]) except run.CommandFailedError: - # Newer btfs-tools doesn't prompt for overwrite, use -f + if fs != 'btrfs': + raise + # Newer btrfs-tools doesn't prompt for overwrite, use -f if '-f' not in mount_options: mkfs_options.append('-f') mkfs = ['mkfs.%s' % fs] + mkfs_options