You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by ar...@apache.org on 2015/10/10 05:48:53 UTC
[1/2] incubator-trafodion git commit: 0000034: Missing fully
qualified path for 'ip' from dcs bind script
Repository: incubator-trafodion
Updated Branches:
refs/heads/master 39d9c2975 -> a751675ff
0000034: Missing fully qualified path for 'ip' from dcs bind script
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/f9abcd48
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/f9abcd48
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/f9abcd48
Branch: refs/heads/master
Commit: f9abcd4815369628b45eba39ab04be08f3e557e7
Parents: 0434c60
Author: Anuradha Hegde <an...@esgyn.com>
Authored: Wed Sep 23 06:40:37 2015 +0000
Committer: Anuradha Hegde <an...@esgyn.com>
Committed: Fri Oct 9 20:44:02 2015 +0000
----------------------------------------------------------------------
dcs/bin/scripts/dcsbind.sh | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/f9abcd48/dcs/bin/scripts/dcsbind.sh
----------------------------------------------------------------------
diff --git a/dcs/bin/scripts/dcsbind.sh b/dcs/bin/scripts/dcsbind.sh
index c166f5d..bd983c7 100755
--- a/dcs/bin/scripts/dcsbind.sh
+++ b/dcs/bin/scripts/dcsbind.sh
@@ -87,8 +87,8 @@ fi
function check_node {
dcsEcho "checking node $1"
- for myinterface in `pdsh -N -w $1 ip link show|awk -F': ' '/^[0-9]+:.*/ {print $2;}'`; do
- ip_output=$(pdsh -N -w $1 ip addr show $myinterface)
+ for myinterface in `pdsh -N -w $1 /sbin/ip link show|awk -F': ' '/^[0-9]+:.*/ {print $2;}'`; do
+ ip_output=$(pdsh -N -w $1 /sbin/ip addr show $myinterface)
if [ $gv_externalip_set -eq 1 -a $external_only -eq 1 ]; then
myifport=`echo "$ip_output" | grep $gv_float_external_ip`
status=$?
@@ -101,8 +101,8 @@ function check_node {
unbindip=`echo "$myifport"|awk '{print $2}'`
unbindlb=`echo "$myifport"|awk '{print $NF}'`
dcsEcho "external ip $gv_float_external_ip is already in use on node $1 bound to interface $myinterface($unbindlb) - unbind..."
- dcsEcho "pdsh -S -w $1 sudo ip addr del $unbindip dev $myinterface label $unbindlb"
- pdsh -S -w $1 sudo ip addr del $unbindip dev $myinterface label $unbindlb
+ dcsEcho "pdsh -S -w $1 sudo /sbin/ip addr del $unbindip dev $myinterface label $unbindlb"
+ pdsh -S -w $1 sudo /sbin/ip addr del $unbindip dev $myinterface label $unbindlb
status=$?
if [ $status -ne 0 ]; then
@@ -124,7 +124,7 @@ function Check_VirtualIP_InUse_Unbind {
#check if external ip is in use
dcsEcho "check all nodes $allMyNodes"
- externalNodes=`pdsh $allMyNodes ip addr show | grep $gv_float_external_ip | awk -F' ' '/^.+:[[:space:]]+.*/ {print $1;}' | cut -d':' -f1 | sed '/^$/d'`
+ externalNodes=`pdsh $allMyNodes /sbin/ip addr show | grep $gv_float_external_ip | awk -F' ' '/^.+:[[:space:]]+.*/ {print $1;}' | cut -d':' -f1 | sed '/^$/d'`
if [ ! -z "$externalNodes" ]; then
dcsEcho "find possible node `echo $externalNodes`"
external_only=1
@@ -151,7 +151,7 @@ if [ $gv_externalip_set -eq 1 ]; then
dcsEcho "external ip is already bound on node $gv_myhostname - skip bind step"
else
dcsEcho "sudo /sbin/ip addr add $gv_float_external_ip/$mask broadcast $bcast dev $gv_float_external_interface label $gv_float_external_interface:$gv_port"
- sudo ip addr add $gv_float_external_ip/$mask broadcast $bcast dev $gv_float_external_interface label $gv_float_external_interface:$gv_port
+ sudo /sbin/ip addr add $gv_float_external_ip/$mask broadcast $bcast dev $gv_float_external_interface label $gv_float_external_interface:$gv_port
status=$?
if [ $status -ne 0 ]; then
dcsEcho "failed - status is $status"
[2/2] incubator-trafodion git commit: Merge [TRAFODION 1518] PR-114
Missing fully qualified path for 'ip' from dcs bind script
Posted by ar...@apache.org.
Merge [TRAFODION 1518] PR-114 Missing fully qualified path for 'ip' from dcs bind script
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/a751675f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/a751675f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/a751675f
Branch: refs/heads/master
Commit: a751675ff636d45e77d9d12e82e9ccc50e01f237
Parents: 39d9c29 f9abcd4
Author: Arvind Narain <ar...@apache.org>
Authored: Sat Oct 10 03:46:50 2015 +0000
Committer: Arvind Narain <ar...@apache.org>
Committed: Sat Oct 10 03:46:50 2015 +0000
----------------------------------------------------------------------
dcs/bin/scripts/dcsbind.sh | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/a751675f/dcs/bin/scripts/dcsbind.sh
----------------------------------------------------------------------