ceph-ansible/roles/ceph-osd/tasks
wangxiaotong 8bc0806f10 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:38:49 -05:00
..
scenarios common: don't enable debug log on ceph-volume calls by default 2020-08-13 14:21:44 +02:00
common.yml Fix Ansible check mode for site.yml.sample playbook 2020-10-07 07:06:54 +02:00
container_options_facts.yml ceph-osd: set container objectstore env variables 2020-01-20 15:36:11 -05:00
crush_rules.yml osd: add a default value for 'default' in crush_rules 2020-06-03 13:20:40 -04:00
main.yml osds: use ceph osd stat instead of ceph status 2020-11-03 14:38:49 -05:00
openstack_config.yml common: follow up on #5948 2020-11-03 09:52:42 +01:00
start_osds.yml ceph-osd: Fix check mode for start osds tasks 2020-10-21 13:19:49 +02:00
system_tuning.yml ceph-osd: fix fs.aio-max-nr sysctl condition 2019-11-07 20:31:02 +01:00
systemd.yml ceph-osd: remove ceph-osd-run.sh script 2020-06-23 17:35:01 +02:00