Giter Site home page Giter Site logo

vagrant-devstack's Introduction

Vagrant Devstack

This repo contains a Vagrantfile and a chef recipe to setup a devstack VM. It uses Berkshelf to manage chef cookbooks.

In order to use it:

  • Install vagrant and Virtual Box
  • Install berkshelf: gem install berkshelf
  • Install the berkshelf plugin for Vagrant: vagrant plugin install vagrant-berkshelf
  • Clone this repo, cd to it, and vagrant up

The devstack chef recipe runs stack.sh > /var/log/devstack.log, so you can vagrant ssh and tail -f /var/log/devstack.log to check progress of the devstack installation.

CloudCAFE Tests

It's recommended to make a virtualenv to install CloudCAFE and it's dependencies in. After you create and activate the virtualenv, you need to install some dependencies:

pip install IPy decorator paramiko pymongo requests unittest2

Then you need to clone the following projects:

On each project directory, run

pip install . -U

You can use the provided devstack.json.config.example file to run your tests. The only thing you need to set is your primary image id, that you can easily find on the file searching for PUT_YOUR_IMAGE_ID_HERE. Replace the placeholder by a valid image id for you devstack.

Getting an image id

  • With your vagrant box up, visit http://192.168.11.22 in your browser. You should see the login page for the OpenStack Dashboard.
  • Login as admin using admin and password as your username and password.
  • Go to the Images link on the left navbar.
  • Click on the cirros-0.3.1-x86_64-uec image.
  • Copy the value under ID. It should look similar to 66bf4aaf-67cf-4d43-964b-a5cd3dabeab1

Running tests

Save the config file with the right image value to ~/.cloudcafe/configs/compute/devstack.json.config and you should be able to run tests, e.g.:

cafe-runner compute devstack.json.config -m test_create_images

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.