Commit 8ed5ed4
committed
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 <[email protected]>1 parent 78ca123 commit 8ed5ed4
1 file changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments