Statistics
| Branch: | Tag: | Revision:

root / api / handlers.py @ b65b1281

History | View | Annotate | Download (17.9 kB)

# Date Author Comment
b65b1281 02/24/2011 09:56 pm Markos Gogoulos

List available images corrections based on the RS Api

37a57502 02/24/2011 08:33 pm Markos Gogoulos

list details for a specified server, following the rackspace api

1cea389e 02/24/2011 08:20 pm Markos Gogoulos

improved virtual servers filtering . also made a small change regarding /servers

the first change adds field deleted as the filter, while the second one is related with the address tag

e336bde6 02/24/2011 01:47 pm Markos Gogoulos

addresses and metadata fields on GET /servers/detail

f5ea24a9 02/21/2011 07:19 pm Markos Gogoulos

documentation added on api/handlers.py

71008c92 02/21/2011 07:02 pm Markos Gogoulos

error message change on ServerHandler

b7a61b3a 02/21/2011 05:31 pm Markos Gogoulos

added better error handling on ImageHandler

c18611c8 02/21/2011 04:04 pm Markos Gogoulos

improvements regarding error handling.

  • added exceptions checking for Ganeti Api Errors and Django ORM
  • vm.start_action(action) is called before any action (reboot, shutdown, start, destroy)
  • code cleanout for the ServerActionHandler
9eef701d 02/21/2011 12:31 am Markos Gogoulos

destroy action sets VM._operstate as 'DESTROYED' and does not call rapi.DeleteInstance to destroy the machine

debeeec9 02/20/2011 01:16 pm Markos Gogoulos

create machine wizzard pass foo data to the serverhandler

e98852ba 02/19/2011 08:11 pm Markos Gogoulos

start Machine action, for the standard view - initial commit

8b78d1a5 02/19/2011 07:40 pm Markos Gogoulos

fixed problem with copyright string

9071888e 02/18/2011 02:24 pm Constantinos Venetsanopoulos

Initial Disk Management API (DM API) implementation

The DM API is accessible under api/v1.0grnet1/ and
it extends the Rackspace Cloud Servers v1.0 API
for the use of Disks. Notable changes:

  • Added the "Disk" model in db/models.py
  • Added the "DiskHandler" in api/handlers.py...
dc8b976e 02/18/2011 12:22 pm Markos Gogoulos

removed ganeti rapi reference from serverhandlers

c21a0a84 02/14/2011 03:57 pm Markos Gogoulos

action_start() function added. actions are executed from there and success/failure messages are returned for the gui

abf90954 02/11/2011 07:59 pm Markos Gogoulos

added TIMEOUT variable on settings.py.dist. You'll have to cp to your settings.py

initial value is 10 seconds. after this time passes, if the ui hasn't received any data, the user is informed (with js alert window at the moment) that there
are network issues (a better message might ask the user to refresh)

c5e38339 02/11/2011 06:55 pm Markos Gogoulos

added error handling when rapi can't login to the backend. the ui user gets informed

00d83c42 02/11/2011 04:45 pm Markos Gogoulos

added get_vmid on Image model to return the first VMs id, if any. This was the serverid variable

c6959a35 02/10/2011 04:45 pm Dimitris Moraitis

use rsapi_state instead of operstate

12827073 02/09/2011 07:20 pm Markos Gogoulos

a few changes on the handlers/machines.html in order for the servers to appear

d08a5f6f 02/08/2011 11:32 pm Vangelis Koukis

What commit b4141604 should have contained.

The proper contents of commit b4141604 are included here.


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