Compute driver that uses BOTO API to utilize EC2.
Go to file
asparikh 8ec6280889 Aparna & Cameron | brought back wait_for_status_check() 2014-09-23 13:17:49 -05:00
tests Cameron|Aparna fixed delete issue after restarting nova.compute 2014-09-18 14:55:20 -05:00
.gitignore Asif | Modified the Vagrantfile to simplify creation of dev environment, and reflected changes in README 2014-08-25 13:39:50 -05:00
README.md Kashyap | Updated readme for pause and un-pause 2014-09-15 11:09:21 +05:30
Vagrantfile Kashyap | Changed the provider box name to point to the new dev box which has Cinder 2014-09-23 17:42:50 +05:30
__init__.py Kashyap | Corrected import to be just ec2 2014-08-12 10:13:45 +00:00
credentials.py Kashyap & Venu | Power-On and Power-off added and working 2014-08-27 17:19:44 +05:30
ec2driver.py Aparna & Cameron | brought back wait_for_status_check() 2014-09-23 13:17:49 -05:00
ec2driver_config.py Kashyap & Venu | user data or config drive fn. added and working 2014-09-18 16:37:46 +05:30

README.md

ThoughtWorks OpenStack to EC2 Driver

Enjoy the benefits of the private cloud without being limited by it. Just like the present drivers let you leverage the various bankends like VMWare and Xen, this driver will let you use the public cloud to burst your cloud to. For now we are focusing on being able to burst to Amazon EC2.

Using the native OpenStack Dashboard or APIs you would be able to manage the EC2 cloud.

Getting Started

  • OpenStack Icehouse
  • Python 2.7 and above
  • Amazon Web Service (AWS) SDK for Python -- Boto 2.31.1

##Dev Environment Setup

###Requirements

  • Git
  • VirtualBox
  • Vagrant

###Instructions

  1. Clone this repository: git clone https://github.com/ThoughtWorksInc/OpenStack-EC2-Driver.git
  2. Runvagrant up from within the repository to create an Ubuntu virtualbox that will install devstack. This will take a couple minutes.
  3. vagrant ssh to ssh into the new machine
  4. Use vim /etc/nova/nova.conf to edit the nova configuration so that the compute_driver is set to ec2.EC2Driver
  5. Restart nova
  • ~/devstack/rejoin-stack.sh
  • go to the nova-cpu screen (ctrl+a, 6)
  • restart the process with ctrl+c, press up, and then enter
  • go to nova-api (screen 5), and repeat

The driver should now be loaded. The contents of the repository is mapped to /opt/stack/nova/nova/virt/ec2/, and you can edit it directly from your host computer with an IDE of your choice.

###Important notes In Amazons EC2 there is no concept of suspend and resume on instances. Therefore, we simply stop EC2 instances when suspended and start the instances when resumed, we do the same on pause and un-pause.

##To Be Continued