ceph-mirror/qa/standalone
Kyr Shatskyy 907304b3a2 qa/standalone/misc: make less noise for asok calculation
The $() notation not only calls the function, it also creates subshell,
which is a separate process. Additionally in debug mode all the content
of the function get_asok_path is printed out in the logs each time
whenever it is called, for example:

    ...stderr://home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:552: run_mgr:  get_asok_path
    ...stderr://home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:107: get_asok_path:  local name=
    ...stderr://home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:108: get_asok_path:  '[' -n '' ']'
    ...stderr:///home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:111: get_asok_path:  get_asok_dir
    ...stderr:///home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:99: get_asok_dir:  '[' -n '' ']'
    ...stderr:///home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:102: get_asok_dir:  echo /tmp/ceph-asok.48301
    ...stderr://home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:111: get_asok_path:  echo '/tmp/ceph-asok.48301/$cluster-$name.asok'

Instead of calling get_asok_path each time we need to define osd.0,
etc. asok file path, we just predefine corresponding variables.
It not only avoids extra resource usage, but also removes a lot of
noise from the logs.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
2026-04-04 13:22:21 +08:00
..
c2c qa: verify the benefits of mempool cacheline optimization 2021-04-30 12:11:13 +08:00
crush qa: drop XMLSTARLET variable, use xmlstarlet directly 2024-08-25 13:22:08 +02:00
erasure-code qa: Add a new test to test-erasure-code-plugins.sh to test for new health warn 2025-11-18 16:01:15 +00:00
mgr qa/standalone/mgr/balancer.sh: adapt test 2020-04-14 00:05:02 +00:00
misc qa/standalone/misc: make less noise for asok calculation 2026-04-04 13:22:21 +08:00
mon qa/standalone/mon/misc: update for umbrella 2026-03-25 16:53:03 +00:00
mon-stretch mon [stretch-mode]: Allow a max bucket weight diff threshold 2026-02-06 22:05:07 +00:00
osd Merge pull request #67275 from ifed01/wip-ifed-fix-bluefs-expand-test 2026-03-13 17:05:44 +03:00
osd-backfill qa/standalone: osd-backfill-space.sh 2026-02-17 19:50:19 +00:00
scrub qa/standalone: osd-scrub-dump.sh: additional tests 2025-11-30 01:31:44 -06:00
special qa/standalone: always decode output from check_output() 2020-09-03 13:09:16 +08:00
ceph-helpers.sh qa/standalone/misc: make less noise for asok calculation 2026-04-04 13:22:21 +08:00
README

qa/standalone
=============

These scripts run standalone clusters, but not in a normal way.  They make
use of functions ceph-helpers.sh to quickly start/stop daemons against
toy clusters in a single directory.

They are normally run via teuthology based on qa/suites/rados/standalone/*.yaml.

You can run them in a git checkout + build directory as well:

  * The qa/run-standalone.sh will run all of them in sequence.  This is slow
     since there is no parallelism.

  * You can run individual script(s) by specifying the basename or path below
    qa/standalone as arguments to qa/run-standalone.sh.

../qa/run-standalone.sh misc.sh osd/osd-dup.sh

  * Add support for specifying arguments to selected tests by simply adding
    list of tests to each argument.

../qa/run-standalone.sh "test-ceph-helpers.sh test_get_last_scrub_stamp"