X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fscripts%2Fset_jvm_common_attribute.sh;h=408910d943cac7e8e7b908fae71d7eb4bb06dc94;hb=38c82b3551b9487be9f8d8ea73b91580a280df7f;hp=52bd734f8c141d46d61fb2f4e8259fc8563b3b43;hpb=7358817f715ef058296841ea289b131ac3d12c87;p=integration%2Ftest.git diff --git a/csit/scripts/set_jvm_common_attribute.sh b/csit/scripts/set_jvm_common_attribute.sh index 52bd734f8c..408910d943 100644 --- a/csit/scripts/set_jvm_common_attribute.sh +++ b/csit/scripts/set_jvm_common_attribute.sh @@ -18,45 +18,39 @@ EOF for i in `seq 1 ${NUM_ODL_SYSTEM}` do CONTROLLERIP=ODL_SYSTEM_${i}_IP + CLUSTERNAME=`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 12` cat > ${WORKSPACE}/elasticsearch.yml < ${WORKSPACE}/org.apache.karaf.decanter.appender.elasticsearch.cfg < /dev/null' - command2='curl '${!CONTROLLERIP}':9200/_cat/indices?v' - cat > ${WORKSPACE}/elasticsearch_startup.sh < /dev/null 2>&1 & ls -al /tmp/elasticsearch/elasticsearch-1.7.5/bin/elasticsearch - for ((i=1;i<=100;i++)); - do - output=${command_}; - outpu1=${command2}; - echo $output1; - echo $output; - if [[ "$out" == "$output" ]]; - then - echo "indices deleted"; - break; - fi - echo "could not reach server, retrying"; - sleep 2; - done; - EOF echo "Setup ODL_SYSTEM_IP specific config files for ${!CONTROLLERIP} " @@ -71,6 +65,9 @@ EOF scp ${WORKSPACE}/org.apache.karaf.decanter.collector.jmx-others.cfg ${!CONTROLLERIP}:/tmp/${BUNDLEFOLDER}/etc/ scp ${WORKSPACE}/elasticsearch.yml ${!CONTROLLERIP}:/tmp/ + + ssh ${!CONTROLLERIP} "sudo ls -al /tmp/elasticsearch/" + ssh ${!CONTROLLERIP} "sudo mv /tmp/elasticsearch.yml /tmp/elasticsearch/elasticsearch-1.7.5/config/" ssh ${!CONTROLLERIP} "cat /tmp/elasticsearch/elasticsearch-1.7.5/config/elasticsearch.yml"