Git Product home page Git Product logo

d2c's Introduction

trophy

d2c's People

Contributors

ddre54 avatar sinakoca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

d2c's Issues

Image -> AMI transformation

Write method that takes a FS file and:

  1. Adds EC2-suitable virtual kernel
  2. Modifies /etc/fstab to conform with EC2 instance format

Properly cleanup for failure to allocate instances

When creating instances, EC2 can reject requests for various reasons. For example: not enough spare instances available.
Capture this exception and properly stop the deployment, de-allocating any active instances.

Example trace:
File "44_py_run.py", line 87, in main
deployment.run()
File "/usr/local/lib/python2.6/dist-packages/d2c-1.0-py2.6.egg/d2c/model/Deployment.py", line 170, in run
transition()
File "/usr/local/lib/python2.6/dist-packages/d2c-1.0-py2.6.egg/d2c/model/Deployment.py", line 185, in __launchInstances
role.launch()
File "/usr/local/lib/python2.6/dist-packages/d2c-1.0-py2.6.egg/d2c/model/Role.py", line 76, in launch
instance_type=self.instanceType.name)
File "/usr/local/lib/python2.6/dist-packages/boto-2.0b4-py2.6.egg/boto/ec2/connection.py", line 575, in run_instances
return self.get_object('RunInstances', params, Reservation, verb='POST')
File "/usr/local/lib/python2.6/dist-packages/boto-2.0b4-py2.6.egg/boto/connection.py", line 611, in get_object
raise self.ResponseError(response.status, response.reason, body)
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request

InstanceLimitExceededYour quota allows for 5 more running instance(s). You requested at least 7d502e550-ea35-4a70-bffe-f720343e3196

Boto timeout too long

When creating an AMI, connection to EC2 with boto library when network is down takes too long to timeout. Try reduce this to 3sec and produce meaningful exception.

Shutdown instances after exception

If exception occurs while running, allow user to either:

  1. Terminate
  2. Restart from current state (after they have maybe fixed something manually)

Ensure image has sshd installed

VMs must have sshd installed to be usefull. Detect this during the AMI creation phase. If not installed - report exception and abort.

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.