diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2017-03-02 16:11:35 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2017-03-02 20:21:33 +0800 |
commit | 73a71b794191019bfa83f6bd7194ef8316273780 (patch) | |
tree | 27098c28ff21f2582829272faf97a8ae502f56f7 /juju/juju_connect.sh | |
parent | df06f21dc792b1c17219d9d9d59e29184e1868bb (diff) |
adjust juju connect
1. delete existing VIM and VNFM when add
2. fix mysql grant not effective bug
3. remove know_hosts in juju env prepare
Change-Id: I2b6c470020b2a36d341f8313baaded15c0dfd2cd
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'juju/juju_connect.sh')
-rwxr-xr-x | juju/juju_connect.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/juju/juju_connect.sh b/juju/juju_connect.sh index 6d1b3e4..7ff803e 100755 --- a/juju/juju_connect.sh +++ b/juju/juju_connect.sh @@ -64,6 +64,7 @@ function start_tomcat() GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'rootpass' WITH GRANT OPTION; FLUSH PRIVILEGES; EOF" + exec_cmd_on_client $cmd1 local cmd2='sed -i s/port=\"8080\"/port=\"8483\"/g /home/ubuntu/tomcat8/conf/server.xml' exec_cmd_on_client $cmd2 @@ -80,9 +81,9 @@ function add_vim_and_vnfm() --juju_client_ip $floating_ip_client \ --auth_url $OS_AUTH_URL - local cmd3="docker stop nfvo-driver-vnfm-juju; \ + local cmd1="docker stop nfvo-driver-vnfm-juju; \ docker start nfvo-driver-vnfm-juju" - exec_cmd_on_openo $cmd3 + exec_cmd_on_openo $cmd1 } function connect_juju_and_openo() |