]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
osds: use ceph osd stat instead of ceph status
authorwangxiaotong <wangxiaotong@fiberhome.com>
Sat, 24 Oct 2020 13:59:17 +0000 (21:59 +0800)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 3 Nov 2020 08:05:33 +0000 (09:05 +0100)
commitb9cb0f12e9e79600f1a974dd88ba1ed1d833211f
treee061e504c132fe50e729051503ea16c10cc4be4b
parent371d854a5c03cfb30d27d5cdbaaad61f7f8d6c58
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>
roles/ceph-osd/tasks/main.yml