diff options
| author | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-05-19 09:57:56 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-05-22 00:26:49 +0800 |
| commit | c98e9c44f23d14867e4dddea88fe9a9f7aa50dd6 (patch) | |
| tree | c0227dcff4d3c9a5ff405cba657bb3a324758f91 /tools | |
| parent | 3f2a5bdadc4bdc0cc1e76b35d04c23e48ce27396 (diff) | |
| download | kolla-c98e9c44f23d14867e4dddea88fe9a9f7aa50dd6.tar.gz kolla-c98e9c44f23d14867e4dddea88fe9a9f7aa50dd6.zip | |
Fix the rabbitmq crash on CentOS binary and source deploy
this is a wordround fix for the rabbitmq failed when deploy on CentOS in
the CI gate. the ideal fix should set the hostname in setup_gate.sh
script. But it do not work as expect with unknown reason
Partial-Bug: #1581301
Change-Id: Ia692794aadf11d3ebe75e4e2bf6b42d9a5f3996f
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/setup_RedHat.sh | 2 | ||||
| -rwxr-xr-x | tools/setup_gate.sh | 15 |
2 files changed, 8 insertions, 9 deletions
diff --git a/tools/setup_RedHat.sh b/tools/setup_RedHat.sh index ce5a93838..a062768b8 100755 --- a/tools/setup_RedHat.sh +++ b/tools/setup_RedHat.sh @@ -31,7 +31,7 @@ function setup_disk { # (SamYaple)TODO: Remove the path overriding export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -cat | sudo tee /etc/yum.repos.d/docker.repo << EOF +sudo tee /etc/yum.repos.d/docker.repo << EOF [docker] name=Docker Main Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7 diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh index dbfcd3d64..e7c75425d 100755 --- a/tools/setup_gate.sh +++ b/tools/setup_gate.sh @@ -76,17 +76,16 @@ function setup_ssh { function setup_inventory { local counter=0 - if [[ "${DISTRO}" == "Debian" ]]; then - ANSIBLE_CONNECTION_TYPE=ssh - else - ANSIBLE_CONNECTION_TYPE=local - fi - echo -e "127.0.0.1\tlocalhost" > /tmp/hosts for ip in $(cat /etc/nodepool/{node_private,sub_nodes_private}); do : $((counter++)) - echo -e "${ip}\tnode${counter} $(ssh ${ip} hostname)" >> /tmp/hosts - echo "node${counter} ansible_connection=${ANSIBLE_CONNECTION_TYPE}" >> ${RAW_INVENTORY} + # FIXME(jeffrey4l): do not set two hostnames in oneline. this is a + # wordround fix for the rabbitmq failed when deploy on CentOS in the CI + # gate. the ideal fix should set the hostname in setup_gate.sh script. + # But it do not work as expect with unknown reason + echo -e "${ip}\tnode${counter}" >> /tmp/hosts + echo -e "${ip}\t$(ssh ${ip} hostname)" >> /tmp/hosts + echo "node${counter}" >> ${RAW_INVENTORY} done sudo chown root: /tmp/hosts |
