ceph-mirror/qa/standalone/misc
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
..
mclock-config.sh qa/standalone/misc: make less noise for asok calculation 2026-04-04 13:22:21 +08:00
network-ping.sh mon: Improvements to slow heartbeat health messages 2020-01-14 18:06:44 +00:00
ok-to-stop.sh mgr: add --max <n> to 'osd ok-to-stop' command 2021-02-20 09:53:51 -05:00
ok-to-upgrade.sh mgr/DaemonServer: Implement ok-to-upgrade command 2026-02-23 12:43:16 +05:30
rados-striper.sh scripts: fix bash path in shebangs 2017-07-27 13:24:26 -06:00
test-ceph-helpers.sh Merge pull request #16494 from asomers/bin_bash 2017-08-27 10:14:14 +08:00
test-snaptrim-stats.sh osd: Add snaptrim duration to pg dump stats. 2022-03-16 00:33:24 +05:30
ver-health.sh qa/standalone/misc: ver-health.sh: Increase wait_for_health_string() timeout 2021-07-30 18:16:00 +05:30