ceph-ansible/roles/ceph-osd/tasks
wangxiaotong b4c1f325a8 osds: use ceph osd stat instead of ceph status
Improve the checked way of the OSD created checking process.
This replaces the ceph status command by the ceph osd stat command.
The osdmap structure isn't needed anymore.

$ ceph status -f json | wc -c
2001
$ ceph osd stat -f json | wc -c
132
$ time ceph status -f json > /dev/null

real    0m0.563s
user    0m0.526s
sys     0m0.036s
$ time ceph osd stat -f json > /dev/null

real	0m0.457s
user	0m0.411s
sys	0m0.045s

Signed-off-by: wangxiaotong <wangxiaotong@fiberhome.com>
(cherry picked from commit b9cb0f12e9)
2020-11-03 14:32:09 +01:00
..
scenarios common: don't enable debug log on ceph-volume calls by default 2020-08-12 22:57:10 +02:00
common.yml Fix Ansible check mode for site.yml.sample playbook 2020-10-07 07:06:19 +02:00
container_options_facts.yml ceph-osd: set container objectstore env variables 2020-01-20 13:59:44 -05:00
crush_rules.yml osd: use default crush rule name when needed 2020-03-31 19:42:14 -04:00
main.yml osds: use ceph osd stat instead of ceph status 2020-11-03 14:32:09 +01:00
openstack_config.yml common: follow up on #5948 2020-11-03 09:43:51 +01:00
start_osds.yml ceph-osd: Fix check mode for start osds tasks 2020-10-19 22:53:20 +02:00
system_tuning.yml ceph-osd: fix fs.aio-max-nr sysctl condition 2019-11-07 13:51:48 +01:00
systemd.yml ceph-osd: remove ceph-osd-run.sh script 2020-06-23 17:35:24 +02:00