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

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

[-- Attachment #1 --]
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.  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'

[-- Attachment #2 --]
<div dir="ltr"><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Apr 15, 2025 at 8:24 AM Sankar Raj, HareshX &lt;<a href="mailto:hareshx.sankar.raj@intel.com">hareshx.sankar.raj@intel.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-7501074148132202714">





<div lang="EN-IN" style="overflow-wrap: break-word;">
<div class="m_-7501074148132202714WordSection1">
<p class="MsoNormal">Hi All,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal">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 &#39;disks&#39;.<u></u><u></u></p>
<p class="MsoNormal">We are not sure of how to set this property and get this test unskipped. Could someone please guide us in this regard?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b>Steps to reproduce the skipped behavior:<u></u><u></u></b></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US">cd /usr/tests</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">kyua test sys/geom/class/eli/misc_test<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">sys/geom/class/eli/misc_test:physpath  -&gt;  passed  [0.070s]<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="background:yellow">sys/geom/class/eli/misc_test:preserve_disk_props  -&gt;  skipped: Required configuration property &#39;disks&#39; not defined  [0.001s]</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">sys/geom/class/eli/misc_test:preserve_props  -&gt;  passed  [0.040s]<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">sys/geom/class/eli/misc_test:unaligned_io  -&gt;  passed  [2.935s]<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Results file id is usr_tests.20250403-124541-697370<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Results saved to /root/.kyua/store/results.usr_tests.20250403-124541-697370.db<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">3/4 passed (0 broken, 0 failed, 1 skipped)<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Below log is from kyua report of the whole test list sys/geom/class/eli/:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b>kyua report --results-filter  skipped --results-file /usr/tests --verbose</b><br>
===&gt; Execution context<br>
Current directory: /usr/tests<br>
Environment variables:<br>
    BLOCKSIZE=K<br>
    ENV=/root/.shrc<br>
    HOME=/root<br>
    LANG=C.UTF-8<br>
    LOGNAME=root<br>
    MAIL=/var/mail/root<br>
    MM_CHARSET=UTF-8<br>
    OLDPWD=/root/kyua_executor<br>
    PAGER=less<br>
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin<br>
    PWD=/usr/tests<br>
    SHELL=/bin/sh<br>
    SSH_CLIENT=10.94.154.238 62938 22<br>
    SSH_CONNECTION=10.94.154.238 62938 10.237.214.23 22<br>
    SSH_TTY=/dev/pts/0<br>
    TERM=xterm<br>
    USER=root<br>
===&gt; sys/geom/class/eli/misc_test:preserve_disk_props<br>
Result:     skipped: Required configuration property &#39;disks&#39; not defined<br>
Start time: 2025-02-15T06:08:08.886500Z<br>
End time:   2025-02-15T06:08:08.887832Z<br>
Duration:   0.001s<u></u><u></u></p>
<p class="MsoNormal">Metadata:<br>
    allowed_architectures is empty<br>
    allowed_platforms is empty<br>
    description = geli should preserve properties for disks<br>
    has_cleanup = true<br>
    is_exclusive = false<br>
    required_configs = disks<br>
    required_disk_space = 0<br>
    required_files is empty<br>
    required_memory = 0<br>
    required_programs is empty<br>
    required_user = root<br>
    timeout = 15<br>
===&gt; Skipped tests<br>
<span style="background:yellow">sys/geom/class/eli/misc_test:preserve_disk_props  -&gt;  skipped: Required configuration property &#39;disks&#39; not defined  [0.001s]</span><br>
===&gt; Summary<br>
Results read from /root/.kyua/store/results.usr_tests.20250215-060555-627469.db<br>
Test cases: 37 total, 1 skipped, 0 expected failures, 1 broken, 0 failed<br>
Start time: 2025-02-15T06:05:55.728318Z<br>
End time:   2025-02-15T06:09:23.253538Z<br>
Total time: 206.250s<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We tried to create virtual disks using dd command and gave the property in the kyua.conf file as below:<u></u><u></u></p>
<p class="MsoNormal">cat /etc/kyua.conf<br>
[eli]<br>
disks = [&quot;/dev/md0&quot;, &quot;/dev/md1&quot;, &quot;/dev/md2&quot;]<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We also tried to export DISKS parameter like below.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">export DISKS=&quot;/dev/md0&quot;<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b>Example:<u></u><u></u></b></p>
<p class="MsoNormal"><u></u> <u></u></p>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td width="623" valign="top" style="width:467.5pt;border:1pt solid windowtext;padding:0cm 5.4pt">
<p class="MsoNormal"><b>Creating a dummy disk for the test:</b><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">dd if=/dev/zero of=/tmp/dummy_disk.img bs=1M count=10<u></u><u></u></p>
<p class="MsoNormal">mdconfig -a -t vnode -f /tmp/dummy_disk.img -u 0<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b>Setting disks property and running test:</b><u></u><u></u></p>
<p class="MsoNormal">export DISKS=&quot;/dev/md0&quot; or Having disks set in kyua.conf<u></u><u></u></p>
<p class="MsoNormal">kyua test sys/geom/class/eli/<span lang="EN-US">misc_test</span><u></u><u></u></p>
<p class="MsoNormal"><br>
<b>Cleanup:</b><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">mdconfig -d -u 0 <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We still got the tests to skipped. <b>Could you please help in guiding us to run the tests without skipping them.<u></u><u></u></b></p>
<p class="MsoNormal">Any required documentation on the same would be helpful. Thanks in advance.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Kind Regards,<u></u><u></u></p>
<p class="MsoNormal">Haresh<u></u><u></u></p>
</div></div></div></blockquote><div><br></div><div>Hi, Haresh!</div><div><br></div><div>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&#39;m not sure if md devices count; they might.  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.</div><div><br></div><div>test_suites.FreeBSD.disks = &#39;/dev/vtbd1 /dev/vtbd2 /dev/vtbd3 /dev/vtbd4 /dev/vtbd5&#39;</div></div></div>

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