blob: 05a61c234911513b737ffb59ccc3e72c2feb81fd [file] [log] [blame]
Oleksii Zhurbaa10927b2017-09-27 22:09:23 +00001from cvp_checks import utils
2
3
4def test_check_ceph_osd(local_salt_client):
5 config = utils.get_configuration(__file__)
6 osd_fail = \
7 local_salt_client.cmd(config["ceph_osd_probe_node"][0], 'cmd.run',
8 ['ceph osd tree | grep down'])
9 assert not osd_fail.values()[0], \
10 "Some osds are in down state or ceph is not found".format(
11 osd_fail.values()[0])