Skip to content

Commit

Permalink
fix(travis, blockdevice): add support to create cStor pools on block …
Browse files Browse the repository at this point in the history
…device (openebs#2613)

Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
  • Loading branch information
sai chaithanya authored and vishnuitta committed Jun 3, 2019
1 parent 1b35209 commit e3424ca
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions k8s/ci/test-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,19 @@ 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 disk storagepoolclaim --------------- "
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
kubectl delete spc --all
Expand Down
2 changes: 1 addition & 1 deletion k8s/openebs-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ spec:
hostNetwork: true
containers:
- name: node-disk-manager
image: quay.io/openebs/node-disk-manager-amd64:v0.3.5
image: quay.io/openebs/node-disk-manager-amd64:ci
imagePullPolicy: Always
securityContext:
privileged: true
Expand Down
2 changes: 1 addition & 1 deletion k8s/sample-pv-yamls/spc-sparse-single.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: sparse-claim-auto
spec:
name: sparse-claim-auto
type: sparse
type: blockdevice
maxPools: 1
minPools: 1
poolSpec:
Expand Down

0 comments on commit e3424ca

Please sign in to comment.