mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
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>
|
||
|---|---|---|
| .. | ||
| c2c | ||
| crush | ||
| erasure-code | ||
| mgr | ||
| misc | ||
| mon | ||
| mon-stretch | ||
| osd | ||
| osd-backfill | ||
| scrub | ||
| special | ||
| ceph-helpers.sh | ||
| 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"