Version 52 (modified by chase, 9 years ago)

--

Prerequisites

Software prerequisites

Build ORCA from source

Understanding ORCA_HOME, ORCA_LOCAL, and all that

Deploying GENI-ORCA

Install Tomcat and create the initial database

1. Download the Tomcat tar file. ORCA uses a customized Tomcat, so using standard Tomcat is not recommended

2. Create a directory for the install. We install into /opt/orca/tomcat, and put the orca-related configuration files into /opt/orca. Since the configuration files are there, /opt/orca is ORCA_HOME. Note: the ORCA source may be somewhere else.

3. Untar the contents of the tomcat tar file into its install directory (e.g., $ORCA_HOME).

4. Edit tomcat/start.sh and stop.sh to set CATALINA_HOME to point to the tomcat directory. Also in start.sh and stop.sh: set ORCA_HOME to the directory with the container configuration files (e.g., /opt/orca).

export ORCA_HOME=/opt/orca

5. Edit tomcat/conf/server.xml and tomcat/server/classes/webauth.xml to change references to '/shirako' to the new location of the directory you created (e.g., /opt/orca). Only do this step if you are using webauth authentication. If you are not sure, then you are not. Webauth authentication requires significant setup from your identity provider.

6. Execute tomcat/start.sh

7. Make sure MySQL is running on your system.

NOTE 2: For Mac OS X you can use fink to install mysqld and then

$ cd /sw/bin
$ sudo ./mysqld_safe

This will make sure mysqld is running as long as you don't exit this shell

8. Create a mysql database and populate it These instructions help set up a local Tomcat container with an example inventory of substrate that allows ORCA to run in emulation mode. This step is highly recommended before running with real resources to make sure your setup is correct.

9. Give ANT more heap space. This can be added to ~/.profile

$ export ANT_OPTS="-XX:MaxPermSize=512m -Xms40m -Xmx1024m"

Generating the GENI-ORCA container configuration files

The configuration files for the container reside in ORCA_HOME. The config files include a security configuration, with certificates and a keystore.

1.2 (Bella) and following releases

Starting from release 1.2 ORCA no longer packages config/ or runtime/ directories into the webapp.

$ cd tools/config
$ ant security.create.admin.config

Define $ORCA_HOME (e.g. export ORCA_HOME=/opt/orca)

$ cp -r runtime $ORCA_HOME
$ cp -r scripts $ORCA_HOME

Edit the configuration files (container.properties etc.) under webapp/ and similarly copy it under the $ORCA_HOME

$ cd ../../webapp
$ vi config/container.properties
$ cp -r config $ORCA_HOME

1.1-alpha and previous releases

If your filesystem supports symbolic links, simply use the provided ant task:

$ ant prepare.use

This task will generate the admin security configuration and place links to it in the relevant directories. It will also initialize and link other directories needed to build/test drivers.

If your file system does not support symbolic links or you want more control over the process you can try the following steps:

1. Create the security configuration by going to tools/config and running

$ cd tools/config
$ ant security.create.admin.config

NOTE: Make sure there is no existing runtime directory before you run this command unless you know what you are doing.

2. Copy or softlink the resulting runtime/ directory to the orca/webapp directory.

Generating the GENI-ORCA web application

1. Create the webapp with this command:

$ mvn package

in orca/webapp.

2. Deploy into an already running tomcat instance on the local machine by typing

$ cd <orca>/webapp
$ ant deploy

3. Wait until the actors start ticking before you log into the portal. Check in the log file (tomcat/logs/log) or just wait 30-45 seconds. Tomcat has an annoying race condition during webapp initialization. If you try to log in too early, ORCA will fail to start up correctly.

4. Log into the portal at http://localhost:8080/orca with username "admin" and no password, unless you changed the defaults.

NOTE: as of Bella 2.0 container administrator credentials are located in container.properties.

Attachments