Skip to content

Commit

Permalink
feat(travis, bdc): add support to create pool on unclaimed Block Devi…
Browse files Browse the repository at this point in the history
…ce (#2620) (#2622)

Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
  • Loading branch information
sai chaithanya authored and vishnuitta committed Jun 8, 2019
1 parent e3424ca commit 9700810
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions k8s/ci/test-script.sh
Expand Up @@ -69,18 +69,6 @@ sleep 10
#echo "------------------ Deploy Pre-release features ---------------------------"
#kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/master/k8s/openebs-pre-release-features.yaml

echo "------------------------ Create block device claim --------------- "
##TODO: Remove below snippet once manual BDC is supported to create cStor pools
#### Get name of blockdevice to claim the blockdevice ####
block_device_name=$(kubectl get blockdevice -n ${NS} -o jsonpath='{.items[*].metadata.name}')
wget https://raw.githubusercontent.com/openebs/openebs/master/k8s/sample-pv-yamls/blockdeviceclaim.yaml -O temp_bdc.yaml
sed "s|sparse-1234|$block_device_name|g" temp_bdc.yaml > bdc.yaml
kubectl apply -f bdc.yaml
sleep 15
block_device_status=$(kubectl get blockdevice -n ${NS} -o jsonpath='{.items[*].status.claimState}')
echo "BlockDevice: ${block_device_name} Claimstate: ${block_device_status}"
rm temp_bdc.yaml

echo "------------------------ Create block device sparse storagepoolclaim --------------- "
# delete the storagepoolclaim created earlier and create new spc with min/max pool
# count 1
Expand Down

0 comments on commit 9700810

Please sign in to comment.