summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-06-02 23:49:13 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-06-03 08:32:08 -0500
commit4c3af4a05172d22de01f5b57cc589db05af3cda5 (patch)
treec4049d4727826b50292cd8ccf2c3370d2a0d6655 /ci
parent6c8cf50ca56d236a8d4dd5b3f730eeaaf67ee44c (diff)
modified to supprt default virtual install.
Change-Id: I5064114849b126d8fed8840a22e10573a847708d Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/01-deploybundle.sh21
-rwxr-xr-xci/02-maasdeploy.sh5
-rwxr-xr-xci/nosdn/juju-deployer/scripts/cloud-setup.sh3
-rwxr-xr-xci/odl/juju-deployer/scripts/cloud-setup.sh3
-rw-r--r--ci/onos/juju-deployer/scripts/cloud-setup.sh4
-rwxr-xr-xci/opencontrail/juju-deployer/scripts/cloud-setup.sh4
6 files changed, 30 insertions, 10 deletions
diff --git a/ci/01-deploybundle.sh b/ci/01-deploybundle.sh
index 5ab56eb6..a889b06f 100755
--- a/ci/01-deploybundle.sh
+++ b/ci/01-deploybundle.sh
@@ -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
diff --git a/ci/02-maasdeploy.sh b/ci/02-maasdeploy.sh
index 4d3fdb03..e7f9e8dc 100755
--- a/ci/02-maasdeploy.sh
+++ b/ci/02-maasdeploy.sh
@@ -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
diff --git a/ci/nosdn/juju-deployer/scripts/cloud-setup.sh b/ci/nosdn/juju-deployer/scripts/cloud-setup.sh
index de0dd764..8e82ef7d 100755
--- a/ci/nosdn/juju-deployer/scripts/cloud-setup.sh
+++ b/ci/nosdn/juju-deployer/scripts/cloud-setup.sh
@@ -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
diff --git a/ci/odl/juju-deployer/scripts/cloud-setup.sh b/ci/odl/juju-deployer/scripts/cloud-setup.sh
index 184cecc6..a997d3de 100755
--- a/ci/odl/juju-deployer/scripts/cloud-setup.sh
+++ b/ci/odl/juju-deployer/scripts/cloud-setup.sh
@@ -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
diff --git a/ci/onos/juju-deployer/scripts/cloud-setup.sh b/ci/onos/juju-deployer/scripts/cloud-setup.sh
index 184cecc6..8a912883 100644
--- a/ci/onos/juju-deployer/scripts/cloud-setup.sh
+++ b/ci/onos/juju-deployer/scripts/cloud-setup.sh
@@ -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
+
diff --git a/ci/opencontrail/juju-deployer/scripts/cloud-setup.sh b/ci/opencontrail/juju-deployer/scripts/cloud-setup.sh
index 47e625c9..fab347cf 100755
--- a/ci/opencontrail/juju-deployer/scripts/cloud-setup.sh
+++ b/ci/opencontrail/juju-deployer/scripts/cloud-setup.sh
@@ -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