From cd0feb45a414980fdd7249c9cc4fc28a1213c769 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Mon, 13 Mar 2017 18:10:12 +0800 Subject: independent network for opera 1. launch open-o dockers directly on jump host instead of a vm 2. launch only one juju vm has both client and metadata function 3. add clearwater csar packages into opera repo 4. automatically deploy clearwater when key application in conf/application.yml has value clearwater 5. support keystone v3 Change-Id: Ic59f66d2cededf661aa7f6de2a40836ea40d8887 Signed-off-by: Harry Huang --- command.sh | 65 -------------------------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100755 command.sh (limited to 'command.sh') diff --git a/command.sh b/command.sh deleted file mode 100755 index 513bc94..0000000 --- a/command.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -############################################################################## -# Copyright (c) 2016-2017 HUAWEI TECHNOLOGIES CO.,LTD and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## - -function exec_cmd_on_openo() -{ - local rsa_file=${OPENO_VM_DIR}/boot.rsa - local ssh_args="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i $rsa_file" - - if [ ! -f $rsa_file ]; then - log_error "open-o vm boot.rsa not found" - exit 1 - fi - - if [ ! $OPENO_VM_IP ]; then - log_error "open-o vm ip not found" - exit 1 - fi - ssh $ssh_args root@$OPENO_VM_IP "$@" -} - -function scp_to_openo() -{ - local rsa_file=${OPENO_VM_DIR}/boot.rsa - local ssh_args="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i $rsa_file" - - if [ ! -f $rsa_file ]; then - log_error "open-o vm boot.rsa not found" - exit 1 - fi - - if [ ! $OPENO_VM_IP ]; then - log_error "open-o vm ip not found" - exit 1 - fi - scp $ssh_args $1 root@$OPENO_VM_IP:$2 -} - -function exec_cmd_on_client() -{ - local ssh_args="-o StrictHostKeyChecking=no" - - if [ ! $floating_ip_client ]; then - log_error "juju-client ip not found" - exit 1 - fi - ssh $ssh_args ubuntu@$floating_ip_client "$@" -} - -function exec_cmd_on_metadata() -{ - local ssh_args="-o StrictHostKeyChecking=no" - - if [ ! $floating_ip_metadata ]; then - log_error "juju-metadata ip not found" - exit 1 - fi - ssh $ssh_args ubuntu@$floating_ip_metadata "$@" -} -- cgit 1.2.3-korg