| Branch: | Tag: | Revision:

root / api @ 838c404d

# Date Author Comment
838c404d 04/05/2011 05:39 pm Giorgos Verigakis

size has been removed from Image

2627cd84 04/05/2011 04:27 pm Giorgos Verigakis

Add missing import

c4c07cab 04/05/2011 02:38 pm Giorgos Verigakis

Add describedby links in version details

432fc8c3 04/05/2011 01:21 pm Giorgos Verigakis

Add metadata support in Images

Removed description and size from Image model.

7e45ddef 04/04/2011 03:58 pm Dimitris Moraitis

api 1.1 compatibility improvements - Refs #311

22afb635 04/04/2011 02:37 pm Vangelis Koukis

Fix atom metadata, make GUI use API_URL everywhere

20a51b1e 04/04/2011 02:21 pm Giorgos Verigakis

Merge branch 'master' into api-redux


f0656db1 04/04/2011 02:00 pm Giorgos Verigakis

Return correct content-type on faults

d8e50a39 04/04/2011 12:21 am Giorgos Verigakis

Move to OpenStack API v1.1

  • Removes piston dependency.
  • Adds dateutil dependency.

Fixes #183 - Implement /servers
Fixes #185 - Implement /images
Fixes #245 - Details in exception handlers
Fixes #249 - Metadata handling
Fixes #253 - Transition to OpenStack API v1.1...

09471611 04/03/2011 03:19 am Vangelis Koukis

Extend api/v1.1redux to support VNC OOB consoles

Add support in api/v1.1redux for OOB consoles using VNC, refs #349.
More specifically: * Implement a new action ("console") for POST to /servers/id/action. * Extend api/ to pass the Django request object to actions....

038383b1 04/02/2011 07:45 pm Dimitris Moraitis

detailed error handling & iso8601 compatibility - Refs #213 #363

89f86fd3 04/01/2011 01:50 pm Georgios Gousios

Custom middleware to support authentication

5fb55fba 04/01/2011 11:46 am Georgios Gousios

Restructure authentication mechanism.

Move authentication mechanism to the correct place, implement a dummy
decorator, some test data etc

f1641e4d 03/31/2011 06:14 pm Markos Gogoulos

fix flavors to use api 1.1redux

  • add cpu attribute returned on flavor(s) listing
  • use api 1.1redux on gui for flavors
0971fa71 03/31/2011 04:47 pm Markos Gogoulos

implement server actions on gui for api/v1.1redux

  • implement server reboot/shutdown/start/destroy actions
  • fix ordering on imports (,
  • change type to reboot_type (reserverd word)
  • change vm.start_action to backend.start_action where needed...
8a88551c 03/31/2011 11:39 am Vassilios Karakoidas

Merge branch 'master' into logic-refactoring


e646ebe5 03/30/2011 11:38 pm Dimitris Moraitis

pep8 compliance

dfd19c2d 03/30/2011 09:47 pm Vassilios Karakoidas

All VirtualMachine fields are now pubic

  • Update VirtualMachine reference in all modules
  • Updated fixtures accordingly (and tests)
a9b86546 03/30/2011 04:10 pm Vassilios Karakoidas

Merge branch 'master' into logic-refactoring


1d4fb95b 03/30/2011 01:18 pm Georgios Gousios

Remove unused imports

dbccf323 03/29/2011 02:13 pm Vassilios Karakoidas

Fixed some issues in api/

5abebfaa 03/29/2011 01:53 pm Vassilios Karakoidas

All unit tests are executed in the refactored code

  • All functionality is achieved through the logic layer
c63e332f 03/28/2011 06:41 pm Vassilios Karakoidas

Merge branch 'master' into logic-refactoring


8d97deff 03/28/2011 03:53 pm Vassilios Karakoidas

Still refactoring, separating the logic and the ORM layer

  • Moved all tests (except one) into the logic app
  • Introduced (again), moved miscellaneous functions there
  • has now minimal functionality (ui->logic->db)
a237869d 03/28/2011 03:23 pm Faidon Liambotis

Be consistent about the use of simplejson

simplejson was merged into Python 2.6's stdlib as json. To help with
that and avoid external dependencies, Django provides a utils.simplejson
module that either imports Python's json module or imports an embedded...

183149e6 03/28/2011 02:27 pm Vassilios Karakoidas

Merge branch 'master' into logic-refactoring


d8b7ab6d 03/24/2011 09:12 pm Dimitris Moraitis

return DELETED in _get_rsapi_state - Fixes #293

54f8cd6d 03/24/2011 05:26 pm Markos Gogoulos

fix server and image polling

add variable POLL_LIMIT (initially 1h) on that
is the maximum time allowed to ask if there have been changes, using
the changes-since GET variables. Return badRequest if this limit is exceeded
on a query

29a59bc1 03/24/2011 04:08 pm Giorgos Verigakis

Use the json module bundled by Django

34244492 03/23/2011 09:44 pm Markos Gogoulos

add testServerPolling test

check if the polling works as expected

  • get the list of servers
  • get the list using changes_since. Expect no changes
  • create a server
  • get the list using changes_since. Expect the server to be there
c5a032c4 03/23/2011 08:26 pm Markos Gogoulos

fix server polling support

  • add function ISODateString that gets the jqXHR.getResponseHeader('Date') and returns changes_since GET variable on ISO 8601 format
  • add changes_since mechanism on GET images too

Ref #291

4e6f9904 03/23/2011 06:25 pm Markos Gogoulos

remove description fields for VM, Image

  • remove description from VirtualMachine model, handlers and tests
  • return images metadata (as on servers). for now return image.description as image.metadata.meta.key.description

Ref #185

b0bc0d35 03/23/2011 05:37 pm Giorgos Verigakis

More flexible Accept header handling

Fixes #313

90d90bd2 03/23/2011 05:03 pm Giorgos Verigakis

Use imageRef/flavorRef

Instead of imageId/flavorId.

47b0fd8d 03/23/2011 04:13 pm Vassilios Karakoidas

Merge branch 'master' into logic-refactoring

2873837d 03/23/2011 04:05 pm Giorgos Verigakis

Merge branch 'master' of

b9a77976 03/23/2011 04:05 pm Giorgos Verigakis

Fix addresses JSON output in servers.

8b800b6f 03/23/2011 04:04 pm Giorgos Verigakis

Add support for multiple accept args.

Fixes #313

0e1531b4 03/23/2011 03:51 pm Markos Gogoulos

fix GET /servers

check if server.status is "DELETED" rather than attribute server.deleted
Refs #293

a3808aa8 03/23/2011 02:32 pm Markos Gogoulos

fix GET /servers/detail error check

return badRequest if changes_since variable is problematic

92c53da1 03/22/2011 06:23 pm Vassilios Karakoidas

Refactored charge (from VM model) and fixed unit tests

  • remove backend_id (now it is inline in the model code)
  • charge now resides in (logic)
  • logic is now a proper django app
  • remove unused backend_id from
  • moved unit tests from db -> logic module
a7cd0952 03/22/2011 06:20 pm Giorgos Verigakis

Merge branch 'master' of

a62a4d20 03/22/2011 06:19 pm Giorgos Verigakis

Add metadata support for Images in Redux API

a788c7ab 03/22/2011 05:22 pm Markos Gogoulos

fix ServerHandler doc string

b016b476 03/22/2011 05:10 pm Giorgos Verigakis


  • Add server actions
  • Add address listing

API mostly complete now.

Refs #301

c36934a7 03/21/2011 06:09 pm Giorgos Verigakis

Add image and flavor support to REDUX API

Refs #301

7e2f9d4b 03/18/2011 08:04 pm Giorgos Verigakis

Initial commit for API 1.1 REDUX.

- Implemented servers section of the API
- Some new tests

Work in progress.

Refs #301

ab5282e4 03/18/2011 03:00 am Dimitris Moraitis

rename changes_since to changes-since & slider fix - Refs #291 #147

88854f35 03/18/2011 01:59 am Dimitris Moraitis

gt instead of gte condition, refs #291

1a49199e 03/18/2011 01:46 am Dimitris Moraitis

auto-update vm list using changes_since

d19719cd 03/17/2011 09:34 pm Markos Gogoulos

support partial GET data for the virtual machines

use changes_since GET variable to specify a datetime. If ServerHandler
sees a datetime, it will return virtual machines that were updated after
that datetime, and nothing more

964185dd 03/17/2011 01:41 pm Markos Gogoulos

update serveraddress handler

return badRequest if networkId is not public/private

d73d59e4 03/16/2011 02:43 pm Markos Gogoulos

implement ServerAddressHandler

ServerAddressHandler lists server addresses
(all or by Network ID). Functions update/create/delete have been
removed, since they are not implemented by Openstack

76c8e33d 03/16/2011 01:27 pm Markos Gogoulos

changes on ServerHandler and related urls

use attribute networkID, as specified on Openstack

b335768e 03/15/2011 09:33 pm Markos Gogoulos

changes related to Openstack naming

  • change imageId to imageRef
  • change flavorId to flavorRef
  • add updated+created attributes on serverhandlerss response for servers
13b4c540 03/14/2011 02:08 pm Constantinos Venetsanopoulos

Server/Image Metadata Handler additions

Implemented the method for POST requests,
added proper error handling for POST,PUT,DELETE in both
ServerMetadataHandler and ImageMetadataHandler

7abdaf78 03/13/2011 11:34 pm Constantinos Venetsanopoulos

Server/Image Metadata Handler additions

Implemented the method for PUT requests in both
ServerMetadataHandler and ImageMetadataHandler.

2baac7ca 03/11/2011 07:33 pm Markos Gogoulos

add two exceptions on the create server wizard

add DoesNotExist and MultipleObjectsReturned exception check for Flavor/Image,
on the POST data of the create server wizard

36d0df36 03/11/2011 11:00 am Constantinos Venetsanopoulos

Minor fixes in Image/Server Metadata Handler

e9134601 03/10/2011 05:29 pm Constantinos Venetsanopoulos

Server/Image Metadata Handler additions

Implemented the DELETE method in both
ServerMetadataHandler and ImageMetadataHandler.
Plus minor vocabulary fix

60023e66 03/09/2011 05:11 pm Constantinos Venetsanopoulos

Initial Server/Image Metadata handling

Server/Image Metadata handling according to
OpenStack Compute API v1.1. Added:

  • New namespace (api/v1.1/) in api/
  • ServerMetadataHandler in api/
  • ImageMetadataHandler in api/

Some calls return inconsistent data...

935bb83f 03/09/2011 01:38 am Markos Gogoulos

translatable message in case no machine exists

Show the following translatable message in div id emptymachineslist when the
api call returns no servers (user has not created any server, or all of their
servers are deleted)

{% trans "You have no virtual machines! Press Create New to create some!" %}</div>

6b83d46b 03/08/2011 09:57 pm Markos Gogoulos

improve error logging

use log.exception instead of log.error to log error messages
plus the full exception traceback.

72756a5e 03/08/2011 06:36 pm Markos Gogoulos

fix bug on OSXMLEmitter

there was a bug with the XML emitter, unicode strings were casted to str and
that would create problem for unicode with non ascii chars

6130effc 03/08/2011 04:18 am Dimitris Moraitis

fix STOP command name

a8acbbac 03/07/2011 12:32 pm Markos Gogoulos

add virtual machine group tests

added 4 tests regarding VirtualMachineGroups: * testVMgroupList, that tests if the expected list of groups is returned by the API * testVMgroupDetails, that tests if the expected virtual machine group is returned by the API...

59cee068 03/07/2011 12:05 pm Markos Gogoulos

update VirtualMachineGroupHandler

  • add doc string
  • improve exception handling
  • improve xml response
73469364 03/07/2011 11:06 am Markos Gogoulos

changes on update name (and metadata, in future)

  • move update from ServerActionHandler to ServerHandler
  • add testServerMetadata test that edits a server's name via a PUT call.
    At the moment it is not working, due to django-piston and PUT issues
18160782 03/06/2011 04:46 pm Markos Gogoulos

set server's name on ServerActionHandler

use ServerActionHandler.update for http PUT request to change name of a server
If the requested metadata_key is 'name' and the server exists, change the name.
Otherwise return itemNotFound

f3af8b40 03/06/2011 07:37 am Dimitris Moraitis

minor test optimization

34a619ae 03/04/2011 10:06 am Vangelis Koukis

Make owner a not null ForeignKey in VirtualMachine

Make owner a required, not null foreign key in VirtualMachine.
Also fix fixtures and the implementation of POST /servers to include
a proper owner value (everything gets to be owned by the single SynnefoUser...

63597809 03/03/2011 03:57 pm Markos Gogoulos

return progress attribute on servers/images

on images return progress="100" if image.state == ACTIVE, otherwise progress="0"
on servers return progress="100" if server.rsapi_state == ACTIVE, otherwise progress="0"

a0d4498a 03/03/2011 01:09 pm Vangelis Koukis

Remove user field from SynnefoUser, minor fixes

Remove the "user" ForeignKey() field from the SynnefoUser model, since
we do not use Django's auth mechanism.
More specifically: * remove user ForeignKey() field * update fixtures for initial data, DB and API tests...

966899d3 03/02/2011 05:45 pm Markos Gogoulos

add attribute description for the machines

on machine's response, as it is with images

ffffd5fe 03/02/2011 01:08 pm Markos Gogoulos

improve exception handling on api/handlers

add missing try except blocks on FlavorHandler, ImageHandler, ServerHandler

f0858246 03/01/2011 10:16 pm Markos Gogoulos

improve error handling on api/handlers

changed "raise fault.itemNotFound" to "return noContent" on the few cases that it was still in use

01199e0b 03/01/2011 09:44 pm Markos Gogoulos

update api handlers

  • remove power nap code that polls the ganeti job
  • introduce def random_password() that returns a random 8-digit password
    password comprises of upper and lower case ascii chars and numbers
8714499d 03/01/2011 08:48 pm Markos Gogoulos

fix server's name on the create machine wizzard

  • set as the user requested name
  • send vm.backend_id to Ganeti
54c30633 03/01/2011 08:37 pm Markos Gogoulos

update tests

  • update/extend tests: testServerList, testAPIVersion, testFlavorsDetails, testImagesDetails
ac7188e6 03/01/2011 08:34 pm Markos Gogoulos

remove legacy code, update RS API spec doc link

d2e5f1d1 03/01/2011 05:53 pm Markos Gogoulos

use variables on api

use variables instead of strings, for server/image/flavor ids

9a6600f3 02/28/2011 02:12 pm Vangelis Koukis

Fix handling of flavor disk size in POST /servers

Make the POST /servers handler convert disk size to MB
before passing it to the RAPI call. The disk field of the Flavor
model is in GB.

2a41dcb0 02/27/2011 10:26 pm Dimitris Moraitis

log unexpected errors

68a49035 02/27/2011 08:35 pm Dimitris Moraitis

consolidate jquery event handlers for rangeinputs in the wizard

71642965 02/26/2011 09:29 pm Dimitris Moraitis

create vm action selects requested flavor

and display the right values in the wizard confirmation step

685ab2b6 02/26/2011 06:25 pm Markos Gogoulos

add more unit tests

For example:

  • testServersDetails that tests if the correct servers details are returned by the API
  • testWrongServer that tests if a wrong server is asked if a 404 is returned
  • testActions (reboot, shutdown, start, delete) that test if each action is run as expected
15e11c78 02/26/2011 06:22 pm Markos Gogoulos

fix ServerHandler

update list of acceptable statuses of a job with 'queued' and 'waiting'

8083c77c 02/26/2011 05:28 pm Markos Gogoulos

fixes previous commit

aa6f51fd 02/26/2011 05:24 pm Markos Gogoulos

updated ServerActionHandler

Use json.loads(request.raw_post_data) instead of for actions
Also create VM with name test-server if we are running unit tests
(request.META['SERVER_NAME'] == 'testserver')

5ad45fcc 02/26/2011 12:52 am Dimitris Moraitis

rewrite create handler docstring

a43b7f70 02/26/2011 12:45 am Dimitris Moraitis

improve error handling when creating instance

285a1fa8 02/26/2011 12:20 am Dimitris Moraitis

improve API compliance of the create instance handler

668c1361 02/25/2011 09:00 pm Markos Gogoulos

add unit tests regarding the RS API

added 6 working tests and stubs for 12 more. Two examples:

  • testServerDetails, which checks if the details of a requested
    server returned by the API are the same as on the database.
    Also expects 200 or 203 as the response status code...
f1684357 02/25/2011 08:56 pm Markos Gogoulos

add size+description as image tags on

on OSXMLEmitter

d235fdd2 02/25/2011 08:53 pm Markos Gogoulos

added size and fixed serverId on Images listing

7de0c985 02/25/2011 06:34 pm Dimitris Moraitis

initial create server tests, still some way to go

6781c0d0 02/25/2011 05:21 pm Dimitris Moraitis

add api test fixtures and test if the API returns the expected number of servers

894f6b7e 02/25/2011 04:58 pm Dimitris Moraitis

initial api tests

9625c3b3 02/25/2011 04:08 pm Markos Gogoulos

extended Flavors listing to return cpu number as well

b65b1281 02/24/2011 09:56 pm Markos Gogoulos

List available images corrections based on the RS Api