Skip to content

Commit

Permalink
test: this commit is only for testing
Browse files Browse the repository at this point in the history
This commit is only for testing

Signed-off-by: subhamkrai <srai@redhat.com>
  • Loading branch information
subhamkrai committed Dec 7, 2021
1 parent f6045c4 commit 2213cc8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/canary-integration-test.yml
Expand Up @@ -57,7 +57,7 @@ jobs:
kubectl -n rook-ceph exec $toolbox -- mkdir -p /etc/ceph/test-data
kubectl -n rook-ceph cp tests/ceph-status-out $toolbox:/etc/ceph/test-data/
kubectl -n rook-ceph cp deploy/examples/create-external-cluster-resources.py $toolbox:/etc/ceph
timeout 10 sh -c "until kubectl -n rook-ceph exec $toolbox -- python3 /etc/ceph/create-external-cluster-resources.py --rbd-data-pool-name replicapool; do echo 'waiting for script to succeed' && sleep 1; done"
timeout 10 sh -c "until kubectl -n rook-ceph exec $toolbox -- python3 /etc/ceph/create-external-cluster-resources.py --rbd-data-pool-name=replicapool --rbd-metadata-ec-pool-name=ec-pool; do echo 'waiting for script to succeed' && sleep 1; done"
- name: run external script create-external-cluster-resources.py unit tests
run: |
Expand Down
3 changes: 2 additions & 1 deletion deploy/examples/create-external-cluster-resources.py
Expand Up @@ -218,9 +218,10 @@ def validate_rgw_metadata_ec_pool_name(self):
)

cmd_json = {
"prefix": "osd pool ls detail"
"prefix": "osd pool ls detail", "format": "json"
}
ret_val, json_out, err_msg = self._common_cmd_json_gen(cmd_json)
print(json_out)
if ret_val != 0 or len(json_out) == 0:
raise ExecutionFailureException(
"'osd pool ls detail' command failed.\n" +
Expand Down
4 changes: 2 additions & 2 deletions deploy/examples/pool-ec.yaml
Expand Up @@ -10,11 +10,11 @@ metadata:
namespace: rook-ceph # namespace:cluster
spec:
# The failure domain will spread the replicas of the data across different failure zones
failureDomain: osd
failureDomain: host
# Make sure you have enough OSDs to support the replica size or sum of the erasure coding and data chunks.
# This is the minimal example that requires only 3 OSDs.
erasureCoded:
dataChunks: 2
dataChunks: 1
codingChunks: 1
# Set any property on a given pool
# see https://docs.ceph.com/docs/master/rados/operations/pools/#set-pool-values
Expand Down
1 change: 1 addition & 0 deletions tests/scripts/github-action-helper.sh
Expand Up @@ -212,6 +212,7 @@ function deploy_cluster() {
kubectl create -f cluster-test.yaml
kubectl create -f object-test.yaml
kubectl create -f pool-test.yaml
kubectl create -f pool-ec.yaml
kubectl create -f filesystem-test.yaml
kubectl create -f rbdmirror.yaml
kubectl create -f filesystem-mirror.yaml
Expand Down

0 comments on commit 2213cc8

Please sign in to comment.