X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=blueprints%2FuCPE%2Fci_management%2Fcleanup_prom_cadvisor.sh;fp=blueprints%2FuCPE%2Fci_management%2Fcleanup_prom_cadvisor.sh;h=0000000000000000000000000000000000000000;hb=692eda26d4bb9aea2760f0c3d48d7a91c392afd9;hp=fb563a2b3df52346758f8c4ac758fed0c4c07cb9;hpb=c19ae19ceb20a1c47d53e5d2a482f6f4fd5cfa38;p=eliot.git diff --git a/blueprints/uCPE/ci_management/cleanup_prom_cadvisor.sh b/blueprints/uCPE/ci_management/cleanup_prom_cadvisor.sh deleted file mode 100755 index fb563a2..0000000 --- a/blueprints/uCPE/ci_management/cleanup_prom_cadvisor.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -ex -############################################################################## -# Copyright (c) 2019 Huawei Tech and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## - -# The script is to stop and remove the prometheus and cadvisor containers from -# ELIOT Manager and ELIOT Edge Node respectively. - -# stop prometheus in ELIOT Manager -source uninstall_prometheus.sh | tee uninstall_prometheus.log - -#stop cadvisor statement executed at ELIOT Edge Node -stop_cadvisor_atedge="cd eliot/scripts/ci_management && source uninstall_cadvisor.sh" -# Read all the Worker Node details from nodelist file. -while read line -do - nodeinfo="${line}" - nodeusr=$(echo ${nodeinfo} | cut -d"|" -f1) - nodeip=$(echo ${nodeinfo} | cut -d"|" -f2) - nodepaswd=$(echo ${nodeinfo} | cut -d"|" -f3) - sshpass -p ${nodepaswd} ssh ${nodeusr}@${nodeip} ${stop_cadvisor_atedge} -done < ../nodelist > /dev/null 2>&1 -