modified worker mutiplier from 1.0 to 1.1 as 1.0 is considered as 03/23903/3
authorNarinder Gupta <narinder.gupta@canonical.com>
Wed, 2 Nov 2016 18:42:22 +0000 (13:42 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Thu, 3 Nov 2016 04:02:48 +0000 (23:02 -0500)
integer rather than floating.

Change-Id: I463b7b3334d5c453caf5397baab9e4f36b7892df
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/01-bootstrap.sh
ci/02-deploybundle.sh
juju/configure-juju-on-openstack

index f09c867..6adc2cf 100755 (executable)
@@ -16,7 +16,7 @@ if [[ "$jujuver" < "2" ]]; then
   juju set-constraints tags=
 
 else
-  controllername=`awk 'NR==1{print $2}' environments.yaml`
-  cloudname=`awk 'NR==1{print $2}' environments.yaml`
+  controllername=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployment.yaml`
+  cloudname=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployment.yaml`
   juju bootstrap $controllername $cloudname --debug --to bootstrap.maas
 fi
index f51ebe2..c96e45f 100755 (executable)
@@ -64,7 +64,7 @@ if [ -e ./deployment.yaml ]; then
     echo $max
 
     if [ "$max" -lt 4 ];then
-        workmutiple=1.0
+        workmutiple=1.1
     elif [ "$max" -lt 33 ]; then
         workmutiple=0.25
     elif [ "$max" -lt 73 ]; then
index 8040e82..bf31514 100755 (executable)
@@ -36,7 +36,7 @@ then
     associated=1
     FLOAT_IP="$(openstack server list | grep jumpserver2 | awk '{ print $13 }')"
 else
-    FLOAT_IP="$(openstack ip floating create ext-net -c ip -f value)"
+    FLOAT_IP="$(openstack floating ip create ext-net -c floating_ip_address -f value)"
 fi
 
 #Launch an instance