提交 2146e896 编写于 作者: K Kris Macoskey

Remove run_tinc pre_test_script pattern

The pattern has already been removed in other tests. In order to get to
a matched state, it should be removed in the other locations.

Included is a slight change in how the mpp_interconnect job installs the
correct kernel-devel package version in order to fix a bug for the
package version not being found
上级 f987abbe
......@@ -1786,12 +1786,30 @@ jobs:
<<: *cs_ccp_terraform_params
- task: gen_cluster
<<: *cs_ccp_gen_cluster_params
- task: pre_run_test_setup
tags: ["ccp"]
image: centos-gpdb-dev-6
config:
platform: linux
inputs:
- name: ccp_src
- name: cluster_env_files
run:
path: bash
args:
- -c
- |
set -ex
ccp_src/aws/setup_ssh_to_cluster.sh
ssh -t centos@mdw << 'SSH_CMD'
sudo yum -y install kernel-devel-$(uname -r)
SSH_CMD
on_failure:
<<: *debug_sleep
- task: run_tests
<<: *cs_ccp_run_tests_params
params:
TINC_TARGET: mpp_interconnect
PRE_TEST_SCRIPT_USER: centos
PRE_TEST_SCRIPT: sudo bash -c 'yum -y install "kernel-devel-uname-r == $(uname -r)"'
- *ccp_destroy
- name: mpp_resource_group_centos6
......@@ -2192,6 +2210,25 @@ jobs:
<<: *ccp_gen_cluster_default_params
on_failure:
<<: *ccp_destroy
- task: pre_run_test_setup
tags: ["ccp"]
image: centos-gpdb-dev-6
config:
platform: linux
inputs:
- name: ccp_src
- name: cluster_env_files
run:
path: bash
args:
- -c
- |
set -ex
ccp_src/aws/setup_ssh_to_cluster.sh
ssh -t mdw "HOST1=mdw HOST2=sdw1 HOST3=sdw2 HOST4=sdw3 HOST5=sdw4 \
bash -c 'ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub; for i in mdw sdw{1..4}; do ssh centos@\$i \"sudo chmod 777 /usr/local\"; done'"
on_failure:
<<: *debug_sleep
- task: run_tests
tags: ["ccp"]
file: gpdb_src/concourse/tasks/run_tinc.yml
......@@ -2199,7 +2236,6 @@ jobs:
params:
TINC_TARGET: gpexpand_2
CUSTOM_ENV: HOST1=mdw HOST2=sdw1 HOST3=sdw2 HOST4=sdw3 HOST5=sdw4
PRE_TEST_SCRIPT: bash -c 'ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub; for i in mdw sdw{1..4}; do ssh centos@$i "sudo chmod 777 /usr/local"; done'
on_failure:
<<: *debug_sleep
- *ccp_destroy
......
......@@ -9,7 +9,4 @@ run:
- |
set -ex
ccp_src/aws/setup_ssh_to_cluster.sh
if [ -n "$PRE_TEST_SCRIPT" ]; then
ssh -t "${PRE_TEST_SCRIPT_USER:-gpadmin}"@mdw "$CUSTOM_ENV $PRE_TEST_SCRIPT"
fi
ssh -t mdw "$CUSTOM_ENV bash /home/gpadmin/gpdb_src/concourse/scripts/run_tinc_test.sh \"$TINC_TARGET\""
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册