]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/cephadm: add test that deploys raw OSDs 56794/head
authorAdam King <adking@redhat.com>
Tue, 9 Apr 2024 18:01:23 +0000 (14:01 -0400)
committerAdam King <adking@redhat.com>
Tue, 9 Apr 2024 18:32:07 +0000 (14:32 -0400)
commit8ed5ed4cc64692234e8e0613baee5b21eecd0951
treeb7efbb36e91cb97b029b62c5a8a95b49d4dca7d3
parent78ca1234606e38a1d2610af52c03a53d657ce381
qa/cephadm: add test that deploys raw OSDs

The test relies on the fact that
'ceph-volume lvm list' returns a nonzero
rc when there are no lvm OSDs present

```
root@smithi156:/# ceph-volume lvm list
No valid Ceph lvm devices found
root@smithi156:/# echo $?
1
```

with lvm OSDs present, it will instead
reports on the lvs and give a zero rc

```
root@smithi097:/# ceph-volume lvm list

====== osd.0 =======

  [block]       /dev/ceph-ffeadaf4-...

...

root@smithi097:/# echo $?
0
```

Assuming the override this test has works
properly and all the OSDs we see are raw,
we can use the nonzero rc to confirm the
OSDs ar raw

Signed-off-by: Adam King <adking@redhat.com>
qa/suites/orch/cephadm/osds/2-ops/deploy-raw.yaml [new file with mode: 0644]