RETIRED, OpenStack Database As A Service (Trove) Integration
Go to file
Mike Asthalter 9704781f70 added info on new call List All Active Accounts for Mgmt Wadl & Devguide 2012-10-04 11:18:07 -05:00
apidocs added info on new call List All Active Accounts for Mgmt Wadl & Devguide 2012-10-04 11:18:07 -05:00
report adding the report/logs/ directory 2012-03-27 11:42:29 -05:00
scripts Whitebox test mode now incorporates Nova code. 2012-09-24 16:56:19 -05:00
tests Make sure that not only are the instance fields present, but non-null, especially server_id and status. 2012-09-27 16:12:26 -05:00
xsd added info on new call List All Active Accounts for Mgmt Wadl & Devguide 2012-10-04 11:18:07 -05:00
.gitignore finalize DB Devguide and Getting Started for 6-20 release; readd xsd 2012-06-20 14:24:25 -05:00
README.md Made some changes suggested in the pull request. 2012-05-04 10:21:49 -05:00

README.md

Integration dev scripts, tests and docs for Reddwarf.


Steps to setup this environment:

Install a fresh Ubuntu 11.10 (Oneiric Ocelot) image ( We suggest to create a virtual machine )

Login to the machine as root

Make sure we have git installed:

$ apt-get update
$ apt-get install git-core -y

Add a user that is not root if you do not already have one:

$ adduser ubuntu
$ visudo

add this line to the file below the root user

ubuntu  ALL=(ALL:ALL) ALL

**OR use this if you dont want to type your password to sudo a command**

ubuntu  ALL=(ALL:NOPASSWD) ALL

if /dev/pts/0 does not have read/write for your user

$ chmod 660 /dev/pts/0

Note that this number can change and if you can not connect to the screen session then the /dev/pts/# needs modding like above.

Login with ubuntu:

$ su ubuntu
$ cd ~

Clone this repo:

$ git clone https://github.com/hub-cap/reddwarf_lite-integration.git

Go into the scripts directory:

$ cd reddwarf_lite-integration/scripts/

Running redstack is the core script:

Run this to get the command list with a short description of each

$ ./redstack

Install all the dependencies

$ ./redstack install

Connecting to the screen session

$ screen -x stack

If that command fails with the error

Cannot open your terminal '/dev/pts/1'

If that command fails with the error chmod the corresponding /dev/pts/#

$ chmod 660 /dev/pts/1

Detach from the screen session

Allows the services to continue running in the background

ctrl+a then d

Kick start the build/initialize/build-image commands

Add mysql as a parameter to set build and add the mysql guest image

$ ./redstack kick-start mysql

Start up the reddwarf services in a screen session

$ ./redstack start

or, to run outside of a screen:

$ ./redstack run

Optional commands if you did not run kick-start

Build the packages

$ ./redstack build

Initialize the database and setup everything

$ ./redstack initalize

Build the image and add it to glance

$ ./redstack build-image mysql

Running the reddwarf client (It's so easy!)

This sets of the authorization endpoint and gets a token for you

$ ./redstack rd-client

Running the nova client (It's so easy!)

This sets of the authorization endpoint and gets a token for you

$ ./redstack nova-client

Reset your environment

Stop all the services running in the screens and refresh the envirnoment:

$ killall -9 screen

$ RECLONE=yes ./redstack install
$ ./redstack kick-start mysql
$ ./redstack start

or

$ RECLONE=yes ./redstack install
$ ./redstack build
$ ./redstack initialize
$ ./redstack build-image mysql
$ ./redstack start