ubuntu 24.04 scylla_setup failing on kernel check (Command 'mkfs.xfs /var/tmp/kernel-check.img' returned non-zero exit status 1)
fruch opened this issue · comments
Israel Fruchter commented
scylla installation is failing like the follow on ubuntu 24.04 image (GCP)
gce_image_db: 'https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/family/ubuntu-minimal-2404-lts-amd64'
Stdout:
Unpacking liburcu8t64:amd64 (0.14.0-3.1build1) ...
Selecting previously unselected package xfsprogs.
Preparing to unpack .../xfsprogs_6.6.0-1ubuntu2_amd64.deb ...
Unpacking xfsprogs (6.6.0-1ubuntu2) ...
Setting up liburcu8t64:amd64 (0.14.0-3.1build1) ...
Setting up libinih1:amd64 (55-1ubuntu2) ...
Setting up xfsprogs (6.6.0-1ubuntu2) ...
Processing triggers for libc-bin (2.39-0ubuntu8) ...
Debug log created: /var/tmp/scylla/scylla_kernel_check-4720-debug.log
Debug log created: /var/tmp/scylla/scylla_setup-4712-debug.log
Stderr:
run('mkfs.xfs /var/tmp/kernel-check.img', shell=True, check=True, stdout=DEVNULL, stderr=DEVNULL)
File "/opt/scylladb/python3/lib64/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'mkfs.xfs /var/tmp/kernel-check.img' returned non-zero exit status 1.
Traceback (most recent call last):
File "/opt/scylladb/scripts/libexec/scylla_setup", line 334, in <module>
run('{}/scylla_kernel_check'.format(scriptsdir()), shell=True, check=True)
File "/opt/scylladb/python3/lib64/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '/opt/scylladb/scripts/scylla_kernel_check' returned non-zero exit status 1.
running locally the command showed this:
$ sudo mkfs.xfs /var/tmp/kernel-check.img
Filesystem must be larger than 300MB.
Usage: mkfs.xfs
...
this patch xfs https://lore.kernel.org/all/164738662491.3191861.15611882856331908607.stgit@magnolia/ suggest there's a way to overide the check like that:
$ sudo QA_CHECK_FS=yes TEST_DIR=yes TEST_DEV=yes mkfs.xfs /var/tmp/kernel-check.img
meta-data=/var/tmp/kernel-check.img isize=512 agcount=4, agsize=8192 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=1
= reflink=1 bigtime=1 inobtcount=1 nrext64=0
data = bsize=4096 blocks=32768, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0, ftype=1
log =internal log bsize=4096 blocks=3075, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0