Statistics
| Branch: | Tag: | Revision:

root / api / handlers.py @ d7710a26

History | View | Annotate | Download (12.5 kB)

# Date Author Comment
a31ff6cb 02/07/2011 05:46 pm Markos Gogoulos

initialization of VirtualMachineGroup and VirtualMachineGroupHandler that lists/creates/deletes VirtualMachineGroups

these are groups of virtual machines for a User

e107ee57 02/03/2011 03:23 pm Markos Gogoulos

a few changes on the handlers in order to work with the rapi (since we now have access).

f5ad2956 02/03/2011 02:40 pm Markos Gogoulos

removed id_from_instance function from the VirtualMachine model and put it back since it will be needed as a global function
to be imported by handlers and not as a staticmethod of the VM model.

166bf271 02/01/2011 10:38 pm Markos Gogoulos

Image implementation of the Rackspace API

b8d16d68 02/01/2011 10:17 pm Markos Gogoulos

added flavors on the RS API and replaced MOCK Flavors

  • also added 2 flavors on the sqlite database
  • plus added Image.description on the Wizard (create new)
2cc9d3a5 02/01/2011 08:58 pm Markos Gogoulos

get rid of the MOCK objects and use a database with initial data loaded

  • added database.sqlite with objects and also oceandata.json that can be used in future to create the database. For now it is not necessary. Just git pull,
    cp settings.py.dist settings.py and you are done. You are using sqlite now! The usual procedure would be to run a manage.py syncdb, to create a database, and then load the data with ./bin/python manage.py loaddata oceandata.json, however this is not needed now...
8400e1a5 01/30/2011 09:29 pm Markos Gogoulos

added create machine .post-create class on the ui

this is a static link that once pressed sends a HTTP POST request to the ganeti cluster (through api.handlers.ServerHandler.create)
and creates a virtual server. This is sort of a mockup behavior, since

  • it has to be integrated with the wizard form...
d66446ce 01/30/2011 08:38 pm Markos Gogoulos

reboot and shutdown actions for a machine added on the list machines view

they are connected with the api.handlers.ServerActionHandler.create function that understands the data they send

9dbe70f8 01/29/2011 01:43 pm Markos Gogoulos

a few changes regarding the VirtualMachines id and ganeti id.

  • on api/handlers.py : VirtualMachineName function removed (no need to be on the handlers)
  • settings.py.dist: added GANETI_PREFIX_ID
  • db/models.py: added id_from_instance_name function and property ganeti_id on VM models . These are needed to get the Django id...
ccbd9f9b 01/28/2011 11:07 pm Markos Gogoulos

Initial attempt to implement the ui-->RS API-->rapi architecture

main changes are:

  • handlers.py: added function VirtualMachineName that returns the VirtualMachine, given it's id. added some ORM for the server list
    (commented at the moment, uncomment and add the db on settings.py to try it). added delete() on ServerHandler that calls rapi to destroy a machine...
6f6bd1a2 01/26/2011 07:42 pm Markos Gogoulos

removed reference to aquarium/models to db/models

2ed31bce 01/26/2011 04:48 pm Markos Gogoulos

a few minor changes regarding the naming of metadata, Server Label has become Server_Label (xml naming does not like spaces), also changed vocabs.py and machines.html according to the STATES tuple of vocabs.py

38e2c5ed 01/20/2011 02:56 pm Christos Psaltis

added spinner when loading machines and server sleep, to emulate a real life use case

ec06b07c 01/15/2011 07:50 am Dimitris Moraitis

js api calls

909f415b 11/26/2010 10:45 pm Faidon Liambotis

Add error handling on /servers read()

2c089b77 11/26/2010 10:34 pm Faidon Liambotis

Add a paginator decorator for limit/offset syntax

This addresses the “Paginated Collections” section of the specification
in a transparent and get-out-of-my-way way.

The functionality is absolutely needed to signal the stop of the list in
the CloudServers Python bindings (at least at the moment).

253f0c82 11/26/2010 10:05 pm Faidon Liambotis

Add an initial implementation of API's /servers read()

635cfd6e 11/26/2010 06:52 pm Faidon Liambotis

Convert faults to return an Exception subclass

Piston's rc from which fault is modeled doesn't do that; however, we
prefer doing things the Django (rather than the Piston) way and make
faults be an Exception subclass.

Piston may not do that but it actually gives us all the tools to do it,...

beb79c95 11/26/2010 06:08 pm Faidon Liambotis

Add Limit handler

fd4828ce 11/26/2010 05:57 pm Faidon Liambotis

Be more explicit about ServerHandler's allowed_methods

ed66d976 11/26/2010 05:38 pm Faidon Liambotis

Add Shared IP Groups handler

c99adc90 11/26/2010 05:32 pm Faidon Liambotis

Add backup schedule handler

dcc6a862 11/26/2010 05:26 pm Faidon Liambotis

Add Iimage handler

427a9220 11/26/2010 05:12 pm Faidon Liambotis

Add Flavor handler

00b4f1be 11/26/2010 04:39 pm Faidon Liambotis

Initial commit