This is an old revision of the document!
Work Items for Copper
Getting Copper sandbox ("Academy") up and running (Bryan)
This will setup a basic functional assessment platform ala Sandbox prior to getting a BGS environment that we can use. As compared to Sandbox, the goal of this activity is rather to install the actual OPNFV components as listed for BGS, under a single node (e.g. a laptop with lots of memory) or multi-node environment.
Here is a graphic of the concept. This is very draft and leaves many things unclear partly because I'm not sure how to do them yet.
Following are notes on setting it up. This will be updated as bugs in the process are found.
Restart process for For sandbox based upon host OS: Unbuntu 14.04 Server LTS
devstack/rejoin-stack.sh
from Horizon, launch mininet-vm created earlier
ssh to mininet VM and enter
back in ubuntu terminal
cd distribution-karaf-0.2.1-Helium-SR1.1
./bin/karaf clean
(currently here in the debug process) install enough ODL features to get ODL UX working (ports 8080 and 8181)
feature:install odl-restconf odl-l2switch-switch odl-mdsal-apidocs odl-dlux-core
Restart process for sandbox based upon host OS: Unbuntu 14.04 Server LTS
Ensure you have enable virtualization support in your BIOS
Install Ubuntu. I selected options for SSH, LAMP, VM host.
install updates
sudo apt-get update
sudo apt-get upgrade
install ubuntu desktop: sudo apt-get install ubuntu-desktop
install Java 7
-
-
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java7-set-default
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
sudo vi /etc/environment
install git: sudo apt-get install git -y
Install OpenStack (DevStack)
-
cd devstack
Create local.conf: cp samples/local.conf .
Add/replace these lines: vi local.conf
FLAT_INTERFACE=(your ethernet interface)
ADMIN_PASSWORD=(something you will remember - you will use this to login to the Horizon UI)
MYSQL_PASSWORD=(mysql root password)
RABBIT_PASSWORD=(something you will remember)
SERVICE_PASSWORD=(something you will remember)
Start the devstack install: ./stack.sh
If all goes well, you will get an output of key items at the end of the script
If you hit an error related to the mysql root password, you can reset it and try again
At this point you should be able to login to Horizon at your installed server e.g.
http://192.168.1.132/ using the account "admin" and the ADMIN_PASSWORD you set above.
install and configure mininet
-
convert to QCOW2 format
unzip mininet.zip
qemu-img convert -O qcow2 mn-2.2.0-trusty64server-150106-01-30-00/mininet-vm-x86_64.vmdk mn-2.2.0-trusty64server-150106-01-30-00/mininet-vm-x86_64.qcow2
In Horizon, create image for mininet-vm
Install openvswitch: sudo apt-get install openvswitch-switch
-
-
unzip Helium-SR1.1.zip
cd distribution-karaf-0.2.1-Helium-SR1.1
./bin/karaf
You should get the OpenDaylight prompt "opendaylight-user@root>"
verify it's working with: feature:list
install the ODL components
-
In Horizon, launch mininet-vm created earlier
ssh to mininet VM and enter
Bring up a VM and validate basic functionality: this will be initially a manual sequence and eventually scripted using OpenStack APIs
Failed attempts to install
Tried CentOS 7 but continually getting errors:
-
When installing, select the "Server with
GUI" profile, leaving all options blank (it's unclear whether any are needed at this point)
As su, add your username to /etc/sudoers via "visudo"
Log out of root!
Install git: sudo yum install git
-
Create devstack/local.conf, adding/replacing these lines
FLAT_INTERFACE=(your ethernet interface)
ADMIN_PASSWORD=(random string)
MYSQL_PASSWORD=(random string)
RABBIT_PASSWORD=(random string)
SERVICE_PASSWORD=(random string)
Start the devstack install: cd devstack; ./stack.sh
A variety of errors received - no reason why, not time to debug