modified to supprt default virtual install. 31/15131/2
authorNarinder Gupta <narinder.gupta@canonical.com>
Fri, 3 Jun 2016 04:49:13 +0000 (23:49 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 3 Jun 2016 13:32:08 +0000 (08:32 -0500)
Change-Id: I5064114849b126d8fed8840a22e10573a847708d
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/01-deploybundle.sh
ci/02-maasdeploy.sh
ci/nosdn/juju-deployer/scripts/cloud-setup.sh
ci/odl/juju-deployer/scripts/cloud-setup.sh
ci/onos/juju-deployer/scripts/cloud-setup.sh
ci/opencontrail/juju-deployer/scripts/cloud-setup.sh
labconfig/default/deployment.yaml

index 5ab56eb..a889b06 100755 (executable)
@@ -33,19 +33,22 @@ esac
 if [ -e ~/.juju/deployment.yaml ]; then
 
    cp ~/.juju/deployment.yaml ./deployment.yaml
-   cp ~/.juju/deployconfig.yaml ./deployconfig.yaml
 
-   extport=`grep "ext-port" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`
-   sed --i "s@#ext-port: \"eth1\"@ext-port: \"$extport\"@g" ./bundles.yaml
+   if [ -e ~/.juju/deployment.yaml ]; then
+      cp ~/.juju/deployconfig.yaml ./deployconfig.yaml
 
-   datanet=`grep "dataNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`
-   sed --i "s@#os-data-network: 10.4.8.0/21@os-data-network: $datanet@g" ./bundles.yaml
+      extport=`grep "ext-port" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`
+      sed --i "s@#ext-port: \"eth1\"@ext-port: \"$extport\"@g" ./bundles.yaml
 
-   admnet=`grep "admNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`
-   sed --i "s@10.4.1.1@$admnet@g" ./bundles.yaml
+      datanet=`grep "dataNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`
+      sed --i "s@#os-data-network: 10.4.8.0/21@os-data-network: $datanet@g" ./bundles.yaml
 
-   cephdisk=`grep "disk" deployconfig.yaml | cut -d ':' -f 2 | sed -e 's/ //'`
-   sed --i "s@osd-devices: /srv@osd-devices: $cephdisk@g" ./bundles.yaml
+      admnet=`grep "admNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`
+      sed --i "s@10.4.1.1@$admnet@g" ./bundles.yaml
+
+      cephdisk=`grep "disk" deployconfig.yaml | cut -d ':' -f 2 | sed -e 's/ //'`
+      sed --i "s@osd-devices: /srv@osd-devices: $cephdisk@g" ./bundles.yaml
+   fi
 fi
 
 case "$3" in
index 4d3fdb0..e7f9e8d 100755 (executable)
@@ -183,7 +183,10 @@ sed --i "s@/home/ubuntu@$HOME@g" ./deployment.yaml
 sed --i "s@qemu+ssh://ubuntu@qemu+ssh://$USER@g" ./deployment.yaml
 
 cp ./deployment.yaml ~/.juju/
-cp ./deployconfig.yaml ~/.juju/
+
+if [ -e ./deployconfig.yaml ]; then
+    cp ./deployconfig.yaml ~/.juju/
+fi
 
 sudo maas-deployer -c deployment.yaml -d --force
 
index de0dd76..8e82ef7 100755 (executable)
@@ -37,3 +37,6 @@ while [ $i -ne 10 ]; do
        i=$((i + 1))
 done
 
+#http://docs.openstack.org/juno/install-guide/install/apt/content/launch-instance-neutron.html
+# nova boot --flavor m1.small --image cirros-0.3.3-x86_64 --nic net-id=b65479a4-3638-4595-9245-6e41ccd8bfd8 --security-group default --key-name ubuntu-keypair demo-instance1
+# nova floating-ip-associate demo-instance1 10.5.8.35
index 184cecc..a997d3d 100755 (executable)
@@ -37,3 +37,6 @@ while [ $i -ne 10 ]; do
        i=$((i + 1))
 done
 
+#http://docs.openstack.org/juno/install-guide/install/apt/content/launch-instance-neutron.html
+# nova boot --flavor m1.small --image cirros-0.3.3-x86_64 --nic net-id=b65479a4-3638-4595-9245-6e41ccd8bfd8 --security-group default --key-name ubuntu-keypair demo-instance1
+# nova floating-ip-associate demo-instance1 10.5.8.35
index 184cecc..8a91288 100644 (file)
@@ -37,3 +37,7 @@ while [ $i -ne 10 ]; do
        i=$((i + 1))
 done
 
+#http://docs.openstack.org/juno/install-guide/install/apt/content/launch-instance-neutron.html
+# nova boot --flavor m1.small --image cirros-0.3.3-x86_64 --nic net-id=b65479a4-3638-4595-9245-6e41ccd8bfd8 --security-group default --key-name ubuntu-keypair demo-instance1
+# nova floating-ip-associate demo-instance1 10.5.8.35
+
index 47e625c..fab347c 100755 (executable)
@@ -27,3 +27,7 @@ neutron security-group-rule-create --direction ingress --ethertype IPv4 --protoc
 
 # import key pair
 nova keypair-add --pub-key id_rsa.pub ubuntu-keypair
+
+#http://docs.openstack.org/juno/install-guide/install/apt/content/launch-instance-neutron.html
+# nova boot --flavor m1.small --image cirros-0.3.3-x86_64 --nic net-id=b65479a4-3638-4595-9245-6e41ccd8bfd8 --security-group default --key-name ubuntu-keypair demo-instance1
+# nova floating-ip-associate demo-instance1 10.5.8.35
index dacd587..29e2d2a 100644 (file)
@@ -61,7 +61,7 @@ demo-maas:
 
         # Defines the IP Address that the configuration script will use to
         # to access the MAAS controller via SSH.
-        ip_address: 192.168.122.2
+        ip_address: 192.168.122.5
 
         # This section allows the user to set a series of options on the
         # MAAS server itself. The list of config options can be found in
@@ -91,7 +91,7 @@ demo-maas:
 
             auto eth0
             iface eth0 inet static
-              address 192.168.122.2
+              address 192.168.122.5
               netmask 255.255.255.0
               network 192.168.122.0
               broadcast 192.168.122.255
@@ -120,11 +120,11 @@ demo-maas:
               broadcast_ip: 192.168.122.255
               router_ip: 192.168.122.1
               static_range:
-                  low: 192.168.122.101
-                  high: 192.168.122.200
+                  low: 192.168.122.50
+                  high: 192.168.122.80
               dynamic_range:
-                  low: 192.168.122.25
-                  high: 192.168.122.100
+                  low: 192.168.122.81
+                  high: 192.168.122.250
 
         # Physical nodes to be added to the MAAS cluster. Nodes will be
         # configured, commissioned and put into the Ready state so