Statistics
| Branch: | Tag: | Revision:

root / api @ 2cc9d3a5

# Date Author Comment
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

93efd593 11/27/2010 04:14 am Faidon Liambotis

Fix XML output

Breakage introduced with previous commit 5c812d1.

5c812d1b 11/27/2010 02:43 am Faidon Liambotis

Split some loosely related modules

c3e8f508 11/26/2010 11:53 pm Faidon Liambotis

Allow for .json/.xml suffixes in URLs as per spec

b9809f7c 11/26/2010 11:33 pm Faidon Liambotis

Add our own XML emitter

OpenStack's API XML isn't merely an XML representation of the data
structures and therefore Piston's XML Emitter can't be used as-is.

The XML generation code from OpenStack's Nova is guranteed(?) to be
compatible, so re-use their code and adapt it into an Emitter subclass....

0be1a55e 11/26/2010 10:54 pm Faidon Liambotis

Add a custom 404 catch-all in api/

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

Add error handling on /servers read()

14a6a08f 11/26/2010 10:44 pm Faidon Liambotis

Provide an empty "details" field in faults

To deal with broken clients that expect it to be there.

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()

547ae349 11/26/2010 10:02 pm Faidon Liambotis

Fix authentication handler challenge() for servers API

04accb0f 11/26/2010 09:22 pm Faidon Liambotis

Fix URL path for API version handler

81357279 11/26/2010 08:13 pm Faidon Liambotis

Fix some trailing-slash breakage, OS-API is explicit about that

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