summaryrefslogtreecommitdiffstats
path: root/ci/onos/README
diff options
context:
space:
mode:
authorzhangyuanyou <zhangyuanyou@huawei.com>2015-12-31 12:02:15 +0800
committerzhangyuanyou <zhangyuanyou@huawei.com>2016-01-02 16:55:55 +0800
commit9d5ca8b6a6c9e33a5f8318483ad940eb9918819d (patch)
treee0b626560f05fcc354dcf5704a8d121de39975b1 /ci/onos/README
parent5a6b66ee8cb3522d3858249f090448cf6d47c326 (diff)
JOID-18 Juju integration with ONOSFW.
Change-Id: Iaffdb78ceb5a4c1a57fce3459289c65d6b6a4f42
Diffstat (limited to 'ci/onos/README')
-rw-r--r--ci/onos/README85
1 files changed, 85 insertions, 0 deletions
diff --git a/ci/onos/README b/ci/onos/README
new file mode 100644
index 00000000..cd03022f
--- /dev/null
+++ b/ci/onos/README
@@ -0,0 +1,85 @@
+ONOS Deployment with Juju
+=================================
+
+This readme contains instructions for checking out and deploying Juju charms for
+ONOS.
+
+The charms are targetted at Trusty.
+
+Checkout charms
+---------------
+
+Charms are hosted on Launchpad.
+You need to 'sudo apt-get install bzr' first.
+
+Follow these steps to checkout code:
+
+cd <deployer dir>
+./fetch-charms.sh
+
+This will checkout the relevant charms into 'src' and create any Juju symlinks
+in 'charms'.
+
+Deploy with cloud-sh-onos
+------------------------
+
+cloud-sh-onos is a collection of development shell scripts to deploy
+and setup OpenStack with ONOS using Juju's local provider. This will
+create 3 KVMs as follows:
+
+*KVM #1 - Keystone, Glance, Neutron Server, Nova Cloud Controller, Horizon,
+ MySQL, RabbitMQ, ONOS Controller
+
+*KVM #2 - Neutron agents
+
+*KVM #3 - Nova Compute
+
+You'll require approx. 13Gb RAM with 40Gb+ disk space.
+Deployment can take anywhere between 20 mins to 1 hour.
+
+You need to 'sudo apt-get install juju juju-local uvtool', and
+logout/login in order to pick up libvirt group permissions before
+proceeding. See https://bugs.launchpad.net/juju-core/+bug/1308088.
+
+Follow these steps:
+
+ssh-keygen
+ (if you don't already have a key at ~/.ssh/id_rsa).
+
+cp cloud-sh-onos/environments.yaml ~/.juju
+ (or create your own default local environment in your existing
+ environments.yaml file)
+
+cd cloud-sh-onos
+
+./deploy.sh
+
+This will log to 'out.log'.
+
+This will deploy OpenStack and import Trusty's daily image into Glance.
+
+Horizon will be located on the machine 'juju status openstack-dashboard' -
+http://<ip>/horizon.
+Admin credentials will be written to cloud/admin-openrc.
+
+The deployment can be destroyed with:
+
+juju destroy-environment local
+
+
+Deploy with Juju Deployer
+-------------------------
+
+Juju Deployer can deploy a preset configuration of charms given a yaml
+configuration file. There is a configuration file in
+'juju-deployer/onos.yaml'.
+
+You need to 'sudo apt-get install juju-deployer' first.
+
+Then:
+
+cd juju-deployer
+
+juju-deployer -c onos.yaml -d trusty-icehouse-onos
+
+Juju Deployer will branch its own copy of the remote charms.