diff options
Diffstat (limited to 'scripts/remount_vpp_into_odl.sh')
-rwxr-xr-x | scripts/remount_vpp_into_odl.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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 |