User Tools

Site Tools


get_started_juju_deploy

This is an old revision of the document!


Integrate you lab with Joid

Enable MAAS

  • Create a directory in maas/<company name>/<pod number>/ for example

mkdir maas/intel/pod7/

  • copy files from pod5 to pod7

cp maas/intel/pod5/* maas/intel/pod7/*

4 files will get copied: deployment.yaml environments.yaml interfaces.host lxc-add-more-interfaces

modify deployment.yaml file

This file has been used to configure your maas and bootstrap node in a VM. Comments in the file are self explanatory and we expect fill up the information according to match lab infrastructure information.

modify interfaces.host file

This file will be used to configure your network interfaces on the rest of the nodes deployed through MAAS. I would suggest to list interface you want to bring up after the deployment of the Operating System. JUJU will do that using this file.

modify lxc-add-more-interfaces file

This File will be used as network template to create the network in containers.\

MAAS Deployment

This section will guide you how to deploy maas and bootstrap node in a VM on a bare metal host.

Make sure you have ubuntu 14.04 install and all bridges configured on bare metal host server as mentioned in deployment.yaml file above. Then follow the section below.

modify 02-maasdeploy,sh

  • In case "$2" please add another section:

'intelpod7' )

      cp maas/intel/pod7/deployment.yaml ./deployment.yaml
      ;;

install MAAS and add nodes in MAAS

  • run the following command from ~/joid/ci directory

.02-maasdeploy.sh intelpod7

   
   Above command will take around 30-45 minutes depends upon your network connection to install MAAS on VM as per name mentioned in the deployment.yaml and configure the interfaces accordingly.  
* Above maas installation will crate the environments.yaml file in ~/joid/ci folder

Configure juju integration

This section will guide you how to configure joid to your environment to deploy OPNFV platform.

  • Make sure you have environments.yaml in ~/joid/ci directory. If it does not exist then most likely you have not used the above method to deploy MAAS. In that case please copy the file manually.
  • make sure all changes in bundle file ./odl/juju-deployer/ovs-odl-ha.yaml has the correct information. If no then i would request you to modify the ~/joid/ci/01-deploybundle.sh file to modify fot your lab.
'' 
  'intelpod7' )
      cp maas/intel/pod7/interfaces.host trusty/ubuntu-nodes-controller/network/interfaces.host
      cp maas/intel/pod7/lxc-add-more-interfaces trusty/ubuntu-nodes-controller/lxc/add-more-interfaces
      cp maas/intel/pod7/interfaces.host trusty/ubuntu-nodes-compute/network/interfaces.host
      cp maas/intel/pod7/lxc-add-more-interfaces trusty/ubuntu-nodes-compute/lxc/add-more-interfaces
      # As per your lab vip address list be deafult uses 10.4.1.11 - 10.4.1.20
      sed -i -- 's/10.4.1.1/10.4.1.2/g' ./bundles.yaml
      # choose the correct interface to use for data network
      sed -i -- 's/#os-data-network: 10.4.8.0\/21/os-data-network: 10.4.9.0\/24/g' ./bundles.yaml
      sed -i -- 's/#        "ext-port": "eth1"/#        "ext-port": "brPublic"/g' ./bundles.yaml
      ;;
''

Juju Build and Install instructions

Juju Release

Single node


Hardware Requirement:

OS: Ubuntu Trusty 14.04 LTS

Memory: 16 GB

CPU: 4 cores

Hard disk: 250 GB

download the code


Scripts are hosted in Bazar branch

$ sudo apt-get install bzr

$ bzr branch lp:~sdn-charmers/+junk/odl-deployer

Checkout charms


Charms are hosted on Launchpad. Follow these steps to checkout code:

$ cd odl-deployer

$ ./fetch-charms.sh

This will checkout the relevant charms into 'src' and create any Juju symlinks in 'charms'.

Deploy with cloud-sh-odl on single node


cloud-sh-odl is a collection of development shell scripts to deploy and setup OpenStack with OpenDaylight using Juju's local provider. This will create 3 KVMs as follows:

*KVM #1 - Keystone, Glance, Neutron Server, Nova Cloud Controller, Horizon,

        MySQL, RabbitMQ, OpenDaylight Controller

*KVM #2 - Neutron agents

*KVM #3 - Nova Compute

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:

$ sudo apt-get install juju juju-local uvtool

(if you don't already have a key at ~/.ssh/id_rsa).

$ ssh-keygen

$ cp cloud-sh-odl/environments.yaml ~/.juju

$ cd cloud-sh-odl

$ ./deploy.sh

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. ODL will be located on the machine 'juju status old-controller' http:<ip>:8181/dlux/index.html

credentials will be admin/admin

The deployment can be destroyed with:

$ juju destroy-environment local

Deploy with Juju Deployer for multiple node with MAAS


download the code:

Scripts are hosted in Bazar branch

$ sudo apt-get install bzr

$ bzr branch lp:~sdn-charmers/+junk/odl-deployer

Pre Requisite:

1. have a single node install with MAAS and configure the MAAS environment.

2. Have a JUJU environment connect to MAAS as per MAAS/JUJU documentation.

3. Run JUJU bootstrap either on a physical node or on a VM.

4. Run juju deployer as below with old bundle.

Juju Deployer can deploy a preset configuration of charms given a yaml configuration file. There is a configuration file in 'juju-deployer/odl.yaml'.

$ sudo apt-get install juju-deployer

$ cd juju-deployer

$ juju-deployer -c odl.yaml -d trusty-icehouse-odl

Juju Deployer will branch its own copy of the remote charms.

Horizon will be located on the machine 'juju status openstack-dashboard' -

http:<ip>/horizon. Admin credentials will be written to cloud/admin-openrc. ODL will be located on the machine 'juju status old-controller' http:<ip>:8181/dlux/index.html credentials will be admin/admin

get_started_juju_deploy.1447263468.txt.gz · Last modified: 2015/11/11 17:37 by Narinder Gupta