summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-06-09 11:07:20 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-06-09 11:39:41 -0500
commit8d92025d7d812708d800e982f4310674d5c445df (patch)
tree48990bd14be0916dc77f51af42a8ac1e9389bc12 /ci
parent3445cf6b9610aca5ea94e786735ee482151194a3 (diff)
modified cengn pod1 as per details provided.
Change-Id: Ic92d99a237cd82d0d3429d952b5a561a1c1efc8b Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/02-maasdeploy.sh5
-rw-r--r--ci/README27
-rwxr-xr-xci/deploy.yaml13
-rwxr-xr-xci/openstack.sh22
4 files changed, 28 insertions, 39 deletions
diff --git a/ci/02-maasdeploy.sh b/ci/02-maasdeploy.sh
index 4634b4db..08bdc98f 100755
--- a/ci/02-maasdeploy.sh
+++ b/ci/02-maasdeploy.sh
@@ -87,6 +87,7 @@ else
labname="default"
./cleanvm.sh
cp ../labconfig/default/deployment.yaml ./
+ cp ../labconfig/default/deployconfig.yaml ./
;;
esac
fi
@@ -298,10 +299,6 @@ case "$labname" in
enableautomode eth1.1201 AUTO "172.16.121.3/24" compute || true
enableautomode eth1.1201 AUTO "172.16.121.3/24" control || true
;;
- 'cengnpod1' )
- maas refresh
- enableautomode eth2 AUTO "172.16.20.0/24" || true
- ;;
esac
enable_if
diff --git a/ci/README b/ci/README
index 47856fbd..35d27ac8 100644
--- a/ci/README
+++ b/ci/README
@@ -1,22 +1,22 @@
MAAS pre requisite before deploying the solution:
=================================================
-MAAS version 1.8.0 or latest should be installed and configure
+MAAS version 1.9.3 or latest should be installed and configure
from ppa:maas/stable
Please do the following once you have configure the MAAS cluster and regional
controller.
-1. Create two KVM virtual machine and have it named as bootstrap.maas and
+1. Create two KVM virtual machine and have it named as bootstrap.maas and
node1.maas
-2. Maually add chassis in MAAS with virsh as option and have both nodes listed
+2. Maually add chassis in MAAS with virsh as option and have both nodes listed
and commionined in MAAS.
-3. Have all other physical nodes added into maas by PXE boot the nodes and
- make sure node gets pxe booted theroug MAAS.
+3. Have all other physical nodes added into maas by PXE boot the nodes and
+ make sure node gets pxe booted through MAAS.
4. Tag all physical nodes as physical.
-5. Tag bootstrap.maas as bootstrap and nodea.maas as neutron and gateway.
+5. Tag bootstrap.maas as bootstrap and node1.maas as neutron and gateway.
-install juju
+install juju
============
add juju stable ppa by running command sudo apt-add-repository ppa:juju/stable
@@ -34,12 +34,15 @@ deploy the bundle
run the following commands to clone a git repository and run the bundle.
-git clone https://narindergupta@gerrit.opnfv.org/gerrit/joid
-# to depploy odl with kilo in nonha mode
-./deploy.sh -s odl -o kilo -t nonha
+git clone https://gerrit.opnfv.org/gerrit/joid.git
-# to deploy openstail with kilo in nonha mode
-./deply.sh -s opencontrail -o kilo -t nonha
+copy the environments.yaml file from ~/.juju/ to joid/ci/
+
+# to deploy odl with mitaka in nonha mode
+./deploy.sh -s odl -o mitaka -t nonha
+
+# to deploy opencontail with liberty in nonha mode
+./deply.sh -s opencontrail -o liberty -t nonha
NOTE: Wait for approximately 30-45 minutes and your openstack will be ready to use.
diff --git a/ci/deploy.yaml b/ci/deploy.yaml
deleted file mode 100755
index cfa45999..00000000
--- a/ci/deploy.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-# This file defines the deployment for the MAAS environment which is to be
-# deployed and automated.
-opnfv:
- # Defines the openstack release needs to be get installed.
- release:B
- # Defines the openstack release needs to be get installed.
- openstack:liberty
- # Defines the sdn plugin to be get installed.
- sdn:odl
- # Defines the ha type to be get installed.
- type:ha
- # Defines the lab where release to be get installed.
- lab:default
diff --git a/ci/openstack.sh b/ci/openstack.sh
index 89194ded..07687e7e 100755
--- a/ci/openstack.sh
+++ b/ci/openstack.sh
@@ -69,20 +69,22 @@ neutron net-create ext-net --shared --router:external --provider:physical_networ
## Parse Network config
##
-EXTERNAL_NETWORK=`grep floating-ip-range deployconfig.yaml | cut -d ' ' -f 4 `
+if [ -f ./deployconfig.yaml ];then
+ EXTERNAL_NETWORK=`grep floating-ip-range deployconfig.yaml | cut -d ' ' -f 4 `
-# split EXTERNAL_NETWORK=first ip;last ip; gateway;network
+ # split EXTERNAL_NETWORK=first ip;last ip; gateway;network
-EXTNET=(${EXTERNAL_NETWORK//,/ })
+ EXTNET=(${EXTERNAL_NETWORK//,/ })
-EXTNET_FIP=${EXTNET[0]}
-EXTNET_LIP=${EXTNET[1]}
-EXTNET_GW=${EXTNET[2]}
-EXTNET_NET=${EXTNET[3]}
+ EXTNET_FIP=${EXTNET[0]}
+ EXTNET_LIP=${EXTNET[1]}
+ EXTNET_GW=${EXTNET[2]}
+ EXTNET_NET=${EXTNET[3]}
-neutron subnet-create ext-net --name ext-subnet \
- --allocation-pool start=$EXTNET_FIP,end=$EXTNET_LIP \
- --disable-dhcp --gateway $EXTNET_GW $EXTNET_NET
+ neutron subnet-create ext-net --name ext-subnet \
+ --allocation-pool start=$EXTNET_FIP,end=$EXTNET_LIP \
+ --disable-dhcp --gateway $EXTNET_GW $EXTNET_NET
+fi
# create vm network
neutron net-create demo-net