From: Rishabh Dave Date: Mon, 17 Jun 2019 15:14:28 +0000 (+0530) Subject: add shrink_mds scenario to CI X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2f35e9c033d16b62bc57845fcf384f9b9dda4c8d;p=ceph-build.git add shrink_mds scenario to CI Add shrink_mds scenario to CI so that it can be tested against master. Signed-off-by: Rishabh Dave --- diff --git a/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml b/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml index b06a42ed..aff69e4f 100644 --- a/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml +++ b/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml @@ -613,6 +613,48 @@ current-parameters: true - name: 'ceph-ansible-prs-luminous-centos-container-shrink_osd' current-parameters: true + - conditional-step: + condition-kind: shell + condition-command: | + #!/bin/bash + set -x + # if the target branch is not master then we DON'T RUN these tests. + if [[ "$ghprbTargetBranch" != "master" ]]; then + exit 1 + fi + git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/shrink-mds' + on-evaluation-failure: dont-run + steps: + - multijob: + name: 'ceph-ansible shrink_mds playbook testing' + condition: SUCCESSFUL + execution-type: PARALLEL + projects: + - name: 'ceph-ansible-prs-dev-centos-non_container-shrink_mds' + current-parameters: true + - name: 'ceph-ansible-prs-dev-centos-container-shrink_mds' + current-parameters: true + - conditional-step: + condition-kind: shell + condition-command: | + #!/bin/bash + set -x + # if the target branch is not stable-4.0 then we DON'T RUN these tests. + if [[ "$ghprbTargetBranch" != "stable-4.0" ]]; then + exit 1 + fi + git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/shrink-mds' + on-evaluation-failure: dont-run + steps: + - multijob: + name: 'ceph-ansible shrink_mds playbook testing' + condition: SUCCESSFUL + execution-type: PARALLEL + projects: + - name: 'ceph-ansible-prs-nautilus-centos-non_container-shrink_mds' + current-parameters: true + - name: 'ceph-ansible-prs-nautilus-centos-container-shrink_mds' + current-parameters: true - conditional-step: condition-kind: shell condition-command: | diff --git a/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml b/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml index 447f9ed1..8f13864d 100644 --- a/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml +++ b/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml @@ -17,6 +17,7 @@ - lvm_osds - shrink_mon - shrink_osd + - shrink_mds - lvm_batch - add_osds - add_mons @@ -95,6 +96,7 @@ - lvm_osds - shrink_mon - shrink_osd + - shrink_mds - lvm_batch - add_osds - add_mons @@ -174,6 +176,7 @@ - lvm_osds - shrink_mon - shrink_osd + - shrink_mds - lvm_batch - add_osds - rgw_multisite @@ -336,6 +339,8 @@ - filestore_osds_container - shrink_mon - shrink_mon_container + - shrink_mds + - shrink_mds_container - shrink_osd - shrink_osd_container - lvm_osds