Merge "Change the deployment mode from 'nonha' to 'noha'"
authorNarinder Gupta <narinder.gupta@canonical.com>
Thu, 10 Aug 2017 11:18:33 +0000 (11:18 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 10 Aug 2017 11:18:33 +0000 (11:18 +0000)
1  2 
ci/deploy.sh

diff --combined ci/deploy.sh
@@@ -2,11 -2,11 +2,11 @@@
  
  set -ex
  
 -#need to put mutiple cases here where decide this bundle to deploy by default use the odl bundle.
 +#need to put multiple cases here where decide this bundle to deploy by default use the odl bundle.
  # Below parameters are the default and we can according the release
  
  opnfvsdn=nosdn
- opnfvtype=nonha
+ opnfvtype=noha
  openstack=ocata
  opnfvlab=default
  opnfvrel=e
@@@ -14,7 -14,6 +14,7 @@@ opnfvfeature=non
  opnfvdistro=xenial
  opnfvarch=amd64
  opnfvmodel=openstack
 +virtinstall=0
  
  jujuver=`juju --version`
  
@@@ -27,17 -26,16 +27,17 @@@ read_config() 
  }
  
  usage() { echo "Usage: $0 [-s <nosdn|odl|opencontrail>]
-                          [-t <nonha|ha|tip>]
+                          [-t <noha|ha|tip>]
                           [-o <juno|liberty>]
                           [-l <default|intelpod5>]
                           [-f <ipv6,dpdk,lxd,dvr>]
                           [-d <trusty|xenial>]
                           [-a <amd64>]
                           [-m <openstack|kubernetes>]
 +                         [-i <0|1>]
                           [-r <a|b>]" 1>&2 exit 1; }
  
 -while getopts ":s:t:o:l:h:r:f:d:a:m:" opt; do
 +while getopts ":s:t:o:l:h:r:f:d:a:m:i:" opt; do
      case "${opt}" in
          s)
              opnfvsdn=${OPTARG}
@@@ -66,9 -64,6 +66,9 @@@
          m)
              opnfvmodel=${OPTARG}
              ;;
 +        i)
 +            virtinstall=${OPTARG}
 +            ;;
          h)
              usage
              ;;
@@@ -141,8 -136,8 +141,8 @@@ deploy() 
                  echo " MAAS not deployed please deploy MAAS first."
              fi
          fi
 -#create json file which is missing in case of new deployment after maas and git tree cloned freshly.
  
 +        #create json file which is missing in case of new deployment after maas and git tree cloned freshly.
          python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)' < labconfig.yaml > labconfig.json
          python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)' < deployconfig.yaml > deployconfig.json
  
@@@ -184,7 -179,7 +184,7 @@@ check_status() 
      retval=0
      timeoutiter=0
  
 -    echo -n "executing the reltionship within charms ."
 +    echo -n "executing the relationship within charms ."
      while [ $retval -eq 0 ]; do
          if juju status | grep -q $waitstatus; then
             echo -n '.'
      echo "...... deployment finishing ......."
   }
  
 +# In the case of a virtual deployment
 +if [ "$virtinstall" -eq 1 ]; then
 +    ./clean.sh || true
 +fi
 +
  echo "...... deployment started ......"
  deploy
  
@@@ -255,7 -245,7 +255,7 @@@ echo "...... configure  .......
  if ([ $opnfvmodel == "openstack" ]); then
      ./openstack.sh "$opnfvsdn" "$opnfvlab" "$opnfvdistro" "$openstack" || true
  
 -    # creating heat domain after puching the public API into /etc/hosts
 +    # creating heat domain after pushing the public API into /etc/hosts
      if [[ "$jujuver" > "2" ]]; then
          status=`juju run-action heat/0 domain-setup`
          echo $status