ceph: test latest ceph on raw devices and previous ceph on partitions

The latest ceph-volume does not support creating OSDs on partitions.
The github actions only have a partition available, so we will run
the github tests on v14.2.12 and v15.2.7 that still support partitions,
while the Jenkins environment has a raw device available where we
can run the latest versions of Ceph in the tests.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
Travis Nielsen committed 2020-12-17 18:21:16 -07:00
1 parent 3beb625f08
commit 114a949cfb
8 files changed
+36 -14

No files matched your search

@@ -49,11 +49,11 @@ jobs:
docker images
docker tag $(docker images|awk '/build-/ {print $1}') rook/ceph:master
- name: validate-yaml
run: |
cd cluster/examples/kubernetes/ceph/
kubectl create -f crds.yaml -f common.yaml
kubectl create -f crds.yaml -f common.yaml
# skipping folders and some yamls that are only for openshift.
kubectl create $(ls -I scc.yaml -I operator-openshift.yaml -I "*.sh" -I "*.py" -p | grep -v / | awk ' { print " -f " $1 } ') --dry-run
@@ -61,6 +61,8 @@ jobs:
run: |
kubectl create -f cluster/examples/kubernetes/ceph/operator.yaml
sed -i "s|#deviceFilter:|deviceFilter: $(lsblk|awk '/14G/ {print $1}'| head -1)|g" cluster/examples/kubernetes/ceph/cluster-test.yaml
# recent c-v changes don't allow OSDs on a partition, so we stick with v15.2.7 until that is resolved
sed -i "s|:v15|:v15.2.7|g" cluster/examples/kubernetes/ceph/cluster-test.yaml
kubectl create -f cluster/examples/kubernetes/ceph/cluster-test.yaml
kubectl create -f cluster/examples/kubernetes/ceph/object-test.yaml
kubectl create -f cluster/examples/kubernetes/ceph/pool-test.yaml
@@ -627,4 +629,4 @@ jobs:
- name: validate vault
run: |
tests/scripts/deploy-validate-vault.sh validate
sudo lsblk
sudo lsblk