diff options
author | chenshuai@huawei.com <chenshuai@huawei.com> | 2015-10-16 18:59:06 +0800 |
---|---|---|
committer | chenshuai@huawei.com <chenshuai@huawei.com> | 2015-10-16 19:15:44 +0800 |
commit | 9037b62da8598f9cb73c9203c3a01d8afbfd6173 (patch) | |
tree | 7d5892eff5c922c198655ca9bad300414fc94c92 /deploy | |
parent | aeea3d6f04e2ff94e73135acdc8a6632cea6212a (diff) |
bugfix:modify COMPASS_SERVER as MGMT_IP in deploy_host.sh
JIRA: COMPASS-106
Change-Id: Ibcc0b5dc23c9c5c5e18faf99f40ff4652b10c3af
Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy')
-rw-r--r-- | deploy/conf/compass.conf | 1 | ||||
-rw-r--r-- | deploy/deploy_host.sh | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/deploy/conf/compass.conf b/deploy/conf/compass.conf index eee23e9f..65f97a93 100644 --- a/deploy/conf/compass.conf +++ b/deploy/conf/compass.conf @@ -2,6 +2,7 @@ export COMPASS_VIRT_CPUS=4 export COMPASS_VIRT_MEM=4096 export COMPASS_SERVER=$INSTALL_IP export COMPASS_SERVER_URL="http://$COMPASS_SERVER/api" +export HTTP_SERVER_URL="http://$MGMT_IP/api" export COMPASS_USER_EMAIL="admin@huawei.com" export COMPASS_USER_PASSWORD="admin" export COMPASS_DNS1=${COMPASS_DNS1:-'8.8.8.8'} diff --git a/deploy/deploy_host.sh b/deploy/deploy_host.sh index 2ec7b8c8..a055702e 100644 --- a/deploy/deploy_host.sh +++ b/deploy/deploy_host.sh @@ -3,12 +3,12 @@ function deploy_host(){ NEUTRON_FILE=${COMPASS_DIR}/deploy/conf/neutron_cfg.yaml pip install oslo.config - ssh $ssh_args root@${COMPASS_SERVER} mkdir -p /opt/compass/bin/ansible_callbacks - scp $ssh_args -r ${COMPASS_DIR}/deploy/status_callback.py root@${COMPASS_SERVER}:/opt/compass/bin/ansible_callbacks/status_callback.py + ssh $ssh_args root@${MGMT_IP} mkdir -p /opt/compass/bin/ansible_callbacks + scp $ssh_args -r ${COMPASS_DIR}/deploy/status_callback.py root@${MGMT_IP}:/opt/compass/bin/ansible_callbacks/status_callback.py reboot_hosts - python ${COMPASS_DIR}/deploy/client.py --compass_server="${COMPASS_SERVER_URL}" \ + python ${COMPASS_DIR}/deploy/client.py --compass_server="${HTTP_SERVER_URL}" \ --compass_user_email="${COMPASS_USER_EMAIL}" --compass_user_password="${COMPASS_USER_PASSWORD}" \ --cluster_name="${CLUSTER_NAME}" --language="${LANGUAGE}" --timezone="${TIMEZONE}" \ --hostnames="${HOSTNAMES}" --partitions="${PARTITIONS}" --subnets="${SUBNETS}" \ |