From e385c470ca3c58d5038d50a86380847bb6a5a56b Mon Sep 17 00:00:00 2001 From: "juraj.linkes" Date: Tue, 4 Apr 2017 15:04:47 +0200 Subject: Reworked helper scripts and fixed typos Added scripts for odl handling Change-Id: Idf715e1c8357a52ef1cd93f58b87c0b92211f85b Signed-off-by: juraj.linkes --- scripts/remount_vpp_into_odl.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/remount_vpp_into_odl.sh (limited to 'scripts/remount_vpp_into_odl.sh') diff --git a/scripts/remount_vpp_into_odl.sh b/scripts/remount_vpp_into_odl.sh new file mode 100755 index 0000000..9a67b6a --- /dev/null +++ b/scripts/remount_vpp_into_odl.sh @@ -0,0 +1,11 @@ +#!/bin/bash +script_dir=$(dirname $0) +. $script_dir/variables.sh + +overcloud_node_ips=$(grep -E "$NODE_PATTERN-[^-]+-[0-9]" /etc/hosts | grep -Eo '([0-9]{1,3}.){3}[0-9]{1,3}') +for overcloud_node_ip in $overcloud_node_ips +do + overcloud_node_hostname=$(ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $overcloud_node_ip hostname 2> /dev/null) + echo "Mounting $overcloud_node_hostname:$overcloud_node_ip on $NODE_PATTERN-controller-0" + $script_dir/mount_vpp_into_odl.sh $NODE_PATTERN-controller-0 $overcloud_node_hostname $overcloud_node_ip +done -- cgit 1.2.3-korg