blob: c14778d41b5458922ae3db9e903b434856026fe8 [file] [log] [blame]
import pytest
def test_check_ceph_osd(local_salt_client):
osd_fail = local_salt_client.cmd(
'ceph:osd',
'cmd.run',
['ceph osd tree | grep up'],
expr_form='pillar')
if not osd_fail:
pytest.skip("Ceph is not found on this environment")
assert not osd_fail.values()[0], \
"Some osds are in down state or ceph is not found".format(
osd_fail.values()[0])