Jump to: navigation, search

Reddwarf-dev-env

Revision as of 18:47, 1 February 2013 by Dan (talk)

Reddwarf API and Redstack Dev Environment Set Up on Mac OS X

Intro

This article describes how to point a local running Reddwarf instance to a Devstack/Redstack deployment in a VM or Cloud instance. You should be able to debug and test your changes without having to deploy.

Prerequisites

Installing and VMWare Fusion and Reddwarf services

=== VM ===
  1. Installing Ubuntu Precise on VMWare Fusion http://wiki.openstack.org/vmware-fusion-precise
  2. VMWare Tweaks https://github.com/stackforge/reddwarf-integration/blob/master/README.md
  3. Installing Devstack or Redstack on VMWare Fusion https://github.com/stackforge/reddwarf-integration
=== Local Dev ===
  1. Install Reddwarf API on your local Mac https://github.com/stackforge/reddwarf
  2. Install python-reddwarfclient (pip install python-reddwarfclient)
  3. Install python-keystoneclient (pip install python-keystoneclient)
  4. Install
  5. Installing openssl on Mac OS X with cms enabled http://stackoverflow.com/questions/9275786/updating-openssl-version-on-osx

Configuring local reddwarf files

  1. Update the host entries in reddwarf.conf.sample & reddwarf-taskmanager.conf.sample to point to the Devstack/Redstack host (i.e. mysql, rabbitMQ)
  2. Update the host entries in api.paste.ini to point to the Devstack/Redstack host (i.e. keystone)

Configure python virtualenv for reddwarf project

  1. $ cd reddwarf/tools
  2. $ ./install_venv
  3. In your IDE set up the reddwarf project to use the projects .venv as the interpreter

Running the reddwarf services locally

Reddwarf scripts currently expect to be run from the project root folder. Configure your IDE to do this.

  1. $ bin/reddwarf-api --config-file=etc/reddwarf.conf.sample (web service)
  2. $ bin/reddwarf-taskmanager --config-file=etc/reddwarf-taskmanager.conf.sample (task manager)

Notes

If the services are not run in the project root the reddwarf/extensions will not be loaded.