Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note
titleWarning: Draft Content

This wiki is under construction

Update

20170802: onap-vagrant moved to /integration project under /integration/vagrant-onap

...

Definition

This vagrant project collects information about to setup tools for developing on ONAP project.  That includes cloning source code, installing dependencies and building and deploying artifacts.

Problem Being Solved

  • Reduce the barrier of entry to allow new ONAP developers to ramp up on to active development quickly
  • Reduce the cost to the community in responding to simple environment setup questions faced by new developers

Change log

DateDescription
2017-08-06

Created unit tests for A&AI component

2017-08-02:Migrated into Integration project under /integration/bootstrap/vagrant-onap

...

TODO: retest

Setup

Setup

Only two components are required for using this project, an automation building tool (Vagrant) and a provider platform (supported options: VirtualBox, Libvirt and OpenStack). This section explains how to install Vagrant and VirtualBox which are the most common configuration:

Ubuntu 14.04 ("Trusty")

$ wget -q https://

...

releases.hashicorp.com/

...

Going through Victor Morales' excellent port to Vagrant (which includes DCAE) - currently bringing up the 5th VM after 45 min (under full build/docker image load)

Progress

OSX - hanging on 4th (after dns, message_router, sdc) AAI vm trying to ssh into the box - tomcat is not up on 8181 - will verify that 1.1.0-SNAPSHOT is building properly on the box - or revert to 1.0.0 artifacts

Windows fails on init of message_router

Redhat 7.3 (VM under VMWare) - triple level - in progress

sudo vi /etc/yum.repos.d/virtualbox.repo
yum install VirtualBox-5.1

...

vagrant/1.9.7/vagrant_1.9.7_x86_64.deb
$ sudo dpkg -i vagrant_1.9.7_x86_64.deb
$ echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" >> /etc/apt/sources.list
$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
$
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
$ sudo apt-get update -y
$ sudo apt-get install -y virtualbox-5.1 dkms

CentOS

$ wget -q https://releases.hashicorp.com/vagrant/1.9.7/vagrant_1.9.

...

7_x86_64.rpm

...

Still failing on same AAI provisioning - looking into why the war is not up

==> aai: curl: (7) Failed to connect to 10.0.3.1 port 8181: Connection refused
==> aai: + RES=0
==> aai: + [[ 0 -lt 5 ]]
==> aai: ++ curl http://10.0.3.1:8181/sdc1/rest/healthCheck
==> aai: ++ grep -c OK
==> aai:
==> aai:
==> aai: %
==> aai:
==> aai: T
==> aai: otal % Received % Xferd Average Speed Time Time Time Current
==> aai: Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:20 --:--:-- 0
==> aai: curl: (7) Failed to connect to 10.0.3.1 port 8181: Connection refused

...


$ sudo yum install vagrant_1.9.7_x86_64.rpm
$
wget -q http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo -P /etc/yum.repos.d
$
sudo yum --enablerepo=epel install dkms
$
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | rpm --import -
$ sudo yum install VirtualBox-5.1

Mac OS

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew cask install vagrant
$ brew cask install virtualbox

Windows 7+ (PowerShell v2+)

PS C:\> Set-ExecutionPolicy AllSigned
PS C:\> iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
PS C:\> choco install vagrant
PS C:\> choco install virtualbox

Execution

This project provides an Ubuntu Virtual Image with all the dependencies and files required to develop in ONAP. Even when it's possible to use vagrant commands(up, destroy, suspend, provision, etc), it's highly recommend to use the scripts provided into the tools folder. Their usage is

*NIX

$ ./tools/run.sh app_name [test_suite] [test_case]

Windows 7+ (PowerShell v2+)

PS C:\> .\tools\Run.ps1 app_name [test_suite] [function]
app_nameDescription
aaiActive and Available Inventory
appcApplication Controller
dcaeData Collection Analytics & Events
mrMessage Router
policyPolicy
portalPortal
robotRobot
sdcService Design & Creation
sdncSoftware Defined Network Controller
vidVirtual Infrastructure Development
vfcVirtual Function Controller
all_in_oneAll ONAP services in a single VM
testingUnit Testing purposes VM


** Note: Most of the components and scripts are under development.