Giter Club home page Giter Club logo

vagrant-devstack's Introduction

Automate Your Devstack!

This project will allow you automate the creation of a VM with devstack installed and running. It uses vagrant to create the VM and puppet to configure the VM so all required software is installed and running.

Prereqs

Install

  • Clone this repository! :-)
  • cd vagrant-devstack
  • git submodule init
  • git submodule update
  • vagrant up

The initial install takes time so go do something useful or have a coffee! :-) When it's done, you should be able to reach the OpenStack dashboard from http://10.1.2.44. If you use the hostmaster plugin then access via http://devstack.local. If you wish to ssh to the OpenStack virtual box execute vagrant ssh.

Notes

  1. If you wish to enable Heat then add to the $localrc_cnt variable (in manifests/site.pp) the following:

    ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng

For more information about this see the OpenStack wiki.

  1. If you wish to enable Ceilometer then add to the $localrc_cnt variable (in manifests/site.pp) the following:

    enable_service ceilometer-acompute,ceilometer-acentral,ceilometer-collector,ceilometer-api
    EXTRA_OPTS=(notification_driver=nova.openstack.common.notifier.rabbit_notifier,ceilometer.compute.nova_notifier)

For information about this see the OpenStack wiki.

  1. Currently the VM is allocated 1024MB of RAM. You will only be able to create 1 VM. Suggestion is to either increase the RAM allocation (edit Vagrantfile) or create some new OpenStack flavors with less RAM (the smallest default is 512MB) e.g.:

    nova-manage flavor create --name=itsy --cpu=1 --memory=128 --flavor=98 --root_gb=1 --ephemeral_gb=1
    nova-manage flavor create --name=bitsy --cpu=1 --memory=256 --flavor=99 --root_gb=1 --ephemeral_gb=1

  2. To experiment with the various APIs via python:

    • vagrant ssh
    • sudo pip install bpython - optional but a nice interactive interpreter. IPython does a great job too.
    • Try some code!
      >>> from cinderclient.v1 import client
      >>> USER="admin"
      >>> PASS="admin"
      >>> TENANT="admin"
      >>> AUTH_URL="http://localhost:5000/v2.0/"
      >>> c_client = client.Client(USER, PASS, TENANT, AUTH_URL, service_type="volume") >>> c_client.volumes.create(size=1, display_name="my volume :)")
      <Volume: 1e6213e3-89fb-45f2-b904-b7f5ce5cdd65>

vagrant-devstack's People

Contributors

dizz avatar jtatman avatar wesseldr avatar

Watchers

 avatar  avatar

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.