summaryrefslogtreecommitdiffstats
path: root/tools/kingbird/deploy.sh
diff options
context:
space:
mode:
authorDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2016-07-14 09:36:08 +0200
committerDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2016-07-14 14:17:41 +0000
commita4544eab3da82cd1f3351d0577c54be6080616be (patch)
treeaf160c97715f53660221d3af92db4ef1887d1257 /tools/kingbird/deploy.sh
parent42eb52df3b46289ac6c76d9d5faa0473f8ca67c5 (diff)
Fix endpoint URLs
Previously kingbird endpoints were registered without port number and version. This fix restores correct endpoints. Change-Id: I7ce1cbffa1c99e5a4f5d97aa495f9ac914272d8a Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com>
Diffstat (limited to 'tools/kingbird/deploy.sh')
-rwxr-xr-xtools/kingbird/deploy.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/kingbird/deploy.sh b/tools/kingbird/deploy.sh
index 5a8c6a8..9cca95e 100755
--- a/tools/kingbird/deploy.sh
+++ b/tools/kingbird/deploy.sh
@@ -1,9 +1,13 @@
#!/bin/bash
+set -o xtrace
+set -o nounset
+set -o pipefail
+
INSTALLER_IP=10.20.0.2
usage() {
- echo "usage: $0 -a <installer_ip>" >&2
+ echo "usage: $0 -a <installer_ip>" >&2
}
@@ -42,7 +46,10 @@ sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \
sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \
"ssh $ssh_options ${controller_ip} \"cd /root/ && chmod +x install_kingbird.sh\"" &> /dev/null
sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \
-"ssh $ssh_options ${controller_ip} \"cd /root/ && nohup /root/install_kingbird.sh \"" &> /dev/null
+"ssh $ssh_options ${controller_ip} \"cd /root/ && nohup /root/install_kingbird.sh > install.log 2> /dev/null\"" &> /dev/null
+# Output here
+sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \
+"ssh $ssh_options ${controller_ip} \"cd /root/ && cat install.log\""
engine_pid=$(sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} "ssh $ssh_options ${controller_ip} \"pgrep kingbird-engine || echo dead\"") &> /dev/null
api_pid=$(sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} "ssh $ssh_options ${controller_ip} \"pgrep kingbird-api || echo dead\"") &> /dev/null
@@ -53,4 +60,4 @@ fi
if [ "$api_pid" == "dead" ]; then
error "Kingbird API is not running."
-fi \ No newline at end of file
+fi