Statistics
| Branch: | Tag: | Revision:

root / api @ 7d4f351b

# Date Author Comment
5231a38a 04/15/2011 07:08 pm Giorgos Verigakis

Raise if vm is deleted or being built

Fixes #351

529178b1 04/15/2011 02:13 pm Giorgos Verigakis

Code clean up

  • Moved rapi related stuff in logic
  • Added messages to all raised Faults
  • Updated console format
  • Removed unused fixture
  • Better imports
  • Docstring bugfixes
4cf8adf8 04/13/2011 11:22 pm Vangelis Koukis

Change console req/response format, add unit tests

Change the format of JSON requests and replies for getting
a server console over VNC. Fix the cloud command-line tool to
understand the new format.

Add unit tests for api/actions.py:get_console().

Add a quick-n-dirty method of detecting if we're running unit...

7317d130 04/13/2011 07:19 pm Giorgos Verigakis

Fix API calls that depend on specific server ids

Fixes #417

53b1eea6 04/13/2011 07:12 pm Giorgos Verigakis

Improve metadata tests

Refs: 417

80da6543 04/13/2011 12:37 pm Giorgos Verigakis

Clarify the units of ram and disk

5495cf1c 04/12/2011 07:10 pm Giorgos Verigakis

Merge branch 'api-current' of https://code.grnet.gr/git/synnefo into api-current

ba6ded2a 04/12/2011 07:08 pm Giorgos Verigakis

Improve metadata tests

1be508e9 04/12/2011 07:06 pm Vangelis Koukis

Support dynamic port allocation for VNC console

Add new version of vapclient.py from commit 48b1400eff
of vncauthproxy (dynamic port pool allocation, JSON control
requests and replies).

Modify api/actions.py to request dynamic port allocation
and handle error conditions gracefully.

968b3e04 04/12/2011 03:12 pm Giorgos Verigakis

Add tests for server metadata API methods

0a73c22f 04/12/2011 02:11 pm Giorgos Verigakis

User-defined exceptions should inherit Exception

d115929c 04/11/2011 02:53 pm Giorgos Verigakis

Only return the updated metadata

9a6eacb9 04/11/2011 03:01 am Vangelis Koukis

Handle errors in API action for VNC console

Handle errors in the get_console() server action and return
appropriate cloudFaults.

Remove the vncauthproxy/ directory, since vncauthproxy
has its own repository under https://code.grnet.gr.

Add new version of util/vapclient.py from commit 035424b630...

ba15eb15 04/08/2011 12:32 pm Vangelis Koukis

Fix one API test failing with PostgreSQL backend

One API test (test_servers_details) was too restrictive and failed
with the PostgreSQL backend. It assumed consistent, by-id ordering
between DB and API server list replies, and failed although there was
1-1 correspondence between the two replies....

fe2a6886 04/07/2011 01:50 pm Giorgos Verigakis

Query for greater since or equal

7f63ff66 04/07/2011 01:32 pm Giorgos Verigakis

Add a check for the return code

cdb65551 04/07/2011 01:31 pm Giorgos Verigakis

Date header is only required for the test-server

8b01f7f3 04/07/2011 01:09 pm Giorgos Verigakis

Add a Date header in responses

Make use of it in tests.

009d3bf2 04/07/2011 12:29 pm Giorgos Verigakis

Check for values inside servers

860412e0 04/07/2011 11:57 am Giorgos Verigakis

Merge branch 'api-current' into api-tests

8c796300 04/07/2011 11:54 am Giorgos Verigakis

Add empty models.py

Django requires it.

77f6bb0e 04/06/2011 12:41 pm Giorgos Verigakis

We import getfqdn, not socket

4f598167 04/06/2011 11:36 am Giorgos Verigakis

Use more specific exceptions

f7df1cef 04/06/2011 11:11 am Giorgos Verigakis

Merge branch 'api-current' of https://code.grnet.gr/git/synnefo into api-tests

aea3e7c6 04/06/2011 10:42 am Vangelis Koukis

Use server's FQDN in API reply for VNC console

bbbe2cfa 04/05/2011 10:42 pm Vangelis Koukis

Fix breakage in get_console() action

1c03e74e 04/05/2011 09:11 pm Vangelis Koukis

Really delete the VM if CreateInstance() fails

76ba77c1 04/05/2011 08:54 pm Vangelis Koukis

Fix bugs in api/server.py:create_server()

Fix bugs in server creation, in api/server.py:create_server().
More specifically: * Make sure to save() the vm object before calling vm.backend_id * Delete the vm instance if the RAPI call fails for any reason * Use different variable names for the server name at the API level...

0140e54b 04/05/2011 08:16 pm Vangelis Koukis

Have isoparse return naive datetimes, fixes #377

Have api/util.py:isoparse() return naive datetime objects, in UTC.
Fixes #377.

dc3ad42e 04/05/2011 06:39 pm Giorgos Verigakis

Add missing fixture file

4fd67656 04/05/2011 06:38 pm Giorgos Verigakis

Merge branch 'api-current' into api-tests

e87d30f3 04/05/2011 06:37 pm Giorgos Verigakis

Immediately convert dates to naive format

Please verify that it fixes #377

Refs: #377

883de713 04/05/2011 06:16 pm Giorgos Verigakis

Port tests to the new API

manage.py test api should work now

7584d408 04/05/2011 05:52 pm Giorgos Verigakis

description has been removed from image

bc855ce7 04/05/2011 05:39 pm Giorgos Verigakis

Allow create_server to set initial metadata

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

Conflicts:
api/actions.py
api/errors.py
api/handlers.py
api/helpers.py
api/servers.py

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/servers.py 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 (servers.py, actions.py)
  • actions.py: 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

Conflicts:
api/handlers.py
api/tests.py

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

Conflicts:
README

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/tests.py

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

Conflicts:
db/db_controller.py

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) utils.py, moved miscellaneous functions there
  • models.py 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

Conflicts:
db/models.py

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 settings.py 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 https://code.grnet.gr/git/synnefo

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 credits.py (logic)
  • logic is now a proper django app
  • remove unused backend_id from handlers.py
  • moved unit tests from db -> logic module
a7cd0952 03/22/2011 06:20 pm Giorgos Verigakis

Merge branch 'master' of https://code.grnet.gr/git/synnefo

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

Improve REDUX API

  • 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
(http://docs.openstack.org/openstack-compute/developer/content/ch04s02.html)

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

changes on ServerHandler and related urls

use attribute networkID, as specified on Openstack
(http://docs.openstack.org/openstack-compute/developer/content/ch04s02.html)

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/urls.py
  • ServerMetadataHandler in api/handlers.py
  • ImageMetadataHandler in api/hanlers.py

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