summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhangyuanyou <zhangyuanyou@huawei.com>2016-03-22 14:31:33 +0800
committerzhangyuanyou <zhangyuanyou@huawei.com>2016-03-22 14:34:48 +0800
commitd0fe28175fb1436f4e1f0ab3d7d896fced11f45e (patch)
tree29ad3e5b3be97b632587cfc116daed7cb91370d9
parent9c7132fb872eeeca440014444bc45e1fc0c46114 (diff)
modify script to get admin passwd and revise cidr.
Change-Id: Ia0cfafc6c95bdb477e1912f5e19402b838a8d562
-rw-r--r--ci/onos/juju_test_prepare.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/ci/onos/juju_test_prepare.sh b/ci/onos/juju_test_prepare.sh
index 96976ca9..1e3201f5 100644
--- a/ci/onos/juju_test_prepare.sh
+++ b/ci/onos/juju_test_prepare.sh
@@ -8,7 +8,7 @@
case "$1" in
'orangepod2' )
GW_IP=192.168.2.1
- CIDR=161.105.231.0/24
+ CIDR=161.105.231.0/26
COMPUTE_ETH=eth1
;;
'intelpod6' )
@@ -51,7 +51,8 @@ launch_eth() {
# create external network and subnet in openstack
create_ext_network() {
keystoneIp=$(juju status --format short | grep keystone/0 | grep -v ha | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}')
- configOpenrc admin openstack admin http://$keystoneIp:5000/v2.0 Canonical
+ adminPasswd=$(juju get keystone | grep admin-password -A 5 | grep value | awk '{print $2}')
+ configOpenrc admin $adminPasswd admin http://$keystoneIp:5000/v2.0 Canonical
juju scp ./admin-openrc nova-cloud-controller/0:
juju ssh nova-cloud-controller/0 "source admin-openrc;neutron net-create ext-net --shared --router:external=True;neutron subnet-create ext-net --name ext-subnet $CIDR"
}