Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 2025 10:36:13 -0400
From:      Mark Johnston <markj@freebsd.org>
To:        Alan Somers <asomers@freebsd.org>
Cc:        "Sankar Raj, HareshX" <hareshx.sankar.raj@intel.com>, "FreeBSD-testing@FreeBSD.org" <FreeBSD-testing@freebsd.org>
Subject:   Re: Reg: sys/geom/class/eli/misc_test:preserve_disk_props skipped
Message-ID:  <Z_5u3cUabtRBLWbx@nuc>
In-Reply-To: <CAOtMX2jCBxGfZfGpgqF7vdGDXGm0FS0nVfcvJSs_4mbN%2B6EeKw@mail.gmail.com>
References:  <PH7PR11MB7571683BCE4DDFC3F0801684CFB22@PH7PR11MB7571.namprd11.prod.outlook.com> <PH7PR11MB75715982B8DE683D0617585FCFB22@PH7PR11MB7571.namprd11.prod.outlook.com> <CAOtMX2jCBxGfZfGpgqF7vdGDXGm0FS0nVfcvJSs_4mbN%2B6EeKw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, Apr 15, 2025 at 08:31:51AM -0600, Alan Somers wrote:
> On Tue, Apr 15, 2025 at 8:24 AM Sankar Raj, HareshX <
> hareshx.sankar.raj@intel.com> wrote:
> 
> > Hi All,
> >
> >
> >
> > We are from Intel – and we are trying to run the kyua framework tests with
> > both software crypto acceleration providers and also Intel QAT HW.
> >
> > We want a clarification on the kyua tests - sys/geom/class/eli/misc_test:
> > preserve_disk_props  which is by default skipped and requires configuration
> > property 'disks'.
> >
> > We are not sure of how to set this property and get this test unskipped.
> > Could someone please guide us in this regard?
> >
> >
> >
> > *Steps to reproduce the skipped behavior:*
> >
> >
> >
> > cd /usr/tests
> >
> > kyua test sys/geom/class/eli/misc_test
> >
> > sys/geom/class/eli/misc_test:physpath  ->  passed  [0.070s]
> >
> > sys/geom/class/eli/misc_test:preserve_disk_props  ->  skipped: Required
> > configuration property 'disks' not defined  [0.001s]
> >
> > sys/geom/class/eli/misc_test:preserve_props  ->  passed  [0.040s]
> >
> > sys/geom/class/eli/misc_test:unaligned_io  ->  passed  [2.935s]
> >
> >
> >
> > Results file id is usr_tests.20250403-124541-697370
> >
> > Results saved to
> > /root/.kyua/store/results.usr_tests.20250403-124541-697370.db
> >
> >
> >
> > 3/4 passed (0 broken, 0 failed, 1 skipped)
> >
> >
> >
> > Below log is from kyua report of the whole test list sys/geom/class/eli/:
> >
> >
> >
> > *kyua report --results-filter  skipped --results-file /usr/tests --verbose*
> > ===> Execution context
> > Current directory: /usr/tests
> > Environment variables:
> >     BLOCKSIZE=K
> >     ENV=/root/.shrc
> >     HOME=/root
> >     LANG=C.UTF-8
> >     LOGNAME=root
> >     MAIL=/var/mail/root
> >     MM_CHARSET=UTF-8
> >     OLDPWD=/root/kyua_executor
> >     PAGER=less
> >
> > PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
> >     PWD=/usr/tests
> >     SHELL=/bin/sh
> >     SSH_CLIENT=10.94.154.238 62938 22
> >     SSH_CONNECTION=10.94.154.238 62938 10.237.214.23 22
> >     SSH_TTY=/dev/pts/0
> >     TERM=xterm
> >     USER=root
> > ===> sys/geom/class/eli/misc_test:preserve_disk_props
> > Result:     skipped: Required configuration property 'disks' not defined
> > Start time: 2025-02-15T06:08:08.886500Z
> > End time:   2025-02-15T06:08:08.887832Z
> > Duration:   0.001s
> >
> > Metadata:
> >     allowed_architectures is empty
> >     allowed_platforms is empty
> >     description = geli should preserve properties for disks
> >     has_cleanup = true
> >     is_exclusive = false
> >     required_configs = disks
> >     required_disk_space = 0
> >     required_files is empty
> >     required_memory = 0
> >     required_programs is empty
> >     required_user = root
> >     timeout = 15
> > ===> Skipped tests
> > sys/geom/class/eli/misc_test:preserve_disk_props  ->  skipped: Required
> > configuration property 'disks' not defined  [0.001s]
> > ===> Summary
> > Results read from
> > /root/.kyua/store/results.usr_tests.20250215-060555-627469.db
> > Test cases: 37 total, 1 skipped, 0 expected failures, 1 broken, 0 failed
> > Start time: 2025-02-15T06:05:55.728318Z
> > End time:   2025-02-15T06:09:23.253538Z
> > Total time: 206.250s
> >
> >
> >
> > We tried to create virtual disks using dd command and gave the property in
> > the kyua.conf file as below:
> >
> > cat /etc/kyua.conf
> > [eli]
> > disks = ["/dev/md0", "/dev/md1", "/dev/md2"]
> >
> >
> >
> >
> >
> > We also tried to export DISKS parameter like below.
> >
> >
> >
> > export DISKS="/dev/md0"
> >
> >
> >
> > *Example:*
> >
> >
> >
> > *Creating a dummy disk for the test:*
> >
> >
> >
> > dd if=/dev/zero of=/tmp/dummy_disk.img bs=1M count=10
> >
> > mdconfig -a -t vnode -f /tmp/dummy_disk.img -u 0
> >
> >
> >
> > *Setting disks property and running test:*
> >
> > export DISKS="/dev/md0" or Having disks set in kyua.conf
> >
> > kyua test sys/geom/class/eli/misc_test
> >
> >
> > *Cleanup:*
> >
> >
> >
> > mdconfig -d -u 0
> >
> >
> >
> >
> >
> >
> >
> > We still got the tests to skipped. *Could you please help in guiding us
> > to run the tests without skipping them.*
> >
> > Any required documentation on the same would be helpful. Thanks in advance.
> >
> >
> >
> > Kind Regards,
> >
> > Haresh
> >
> 
> Hi, Haresh!
> 
> In order to run that test, you need to have some actual disks to devote to
> the test.  Their data will not be preserved.  I'm not sure if md devices
> count; they might.

I'm pretty sure md disks will work fine for this purpose.

> But once you choose which disks to use, you need to
> configure them in /etc/kyua/kyua.conf, like this, for example.  Most such
> tests only need one disk, but a few need more than one.
> 
> test_suites.FreeBSD.disks = '/dev/vtbd1 /dev/vtbd2 /dev/vtbd3 /dev/vtbd4
> /dev/vtbd5'

One can also specify this in the kyua command-line invocation:

  $ kyua -v test_suites.FreeBSD.disks='/dev/vtbd1 /dev/vtbd2' test



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Z_5u3cUabtRBLWbx>