Statistics
| Branch: | Tag: | Revision:

root / api @ f4fe8796

# Date Author Comment
f4fe8796 07/13/2011 04:34 pm Giorgos Verigakis

Network id can be non-numeric

20ed268d 07/13/2011 04:33 pm Giorgos Verigakis

Add missing XML template

f08150b3 07/11/2011 01:29 pm Giorgos Gousios

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

f2bdb9ab 07/11/2011 01:29 pm Giorgos Gousios

Use log.exception to report exceptions

55b7ee4f 07/11/2011 11:17 am Giorgos Gousios

Logging configuration

71099804 07/11/2011 11:03 am Vangelis Koukis

Remove RAPI GetInstanceConsole() call

Remove RAPI GetInstanceConsole() call, because it returns a
potentially unusable endpoint based on cluster-wide vnc_bind_address,
usually 0.0.0.0 or 127.0.0.1. Until this is fixed on the Ganeti side,
we construct a console info reply based on the primary node and network...

f90c3d8c 07/07/2011 04:54 pm Vangelis Koukis

Make server deletion complete asynchronously

Make server deletion complete asynchronously, by only setting
the deleted flag for an instance of the VirtualMachine model when
an OP_INSTANCE_REMOVE operation completes successfully at the backend.

This means that DELETE /servers/id returns HTTP 204, the server...

62b8fa6b 07/01/2011 06:16 pm Vangelis Koukis

Merge branch 'api-current'

Conflicts:
api/middleware.py

bf21d1c6 07/01/2011 05:54 pm Giorgos Verigakis

Don't check for expiration if we have no user

bd0a9536 07/01/2011 04:17 pm Vangelis Koukis

Merge branch 'ui-0.5'

6a0e1a00 07/01/2011 12:11 pm Giorgos Gousios

Add exclude for API calls in AAI middlware

Fixes 3 failed tests

85c6267a 07/01/2011 10:32 am Giorgos Gousios

Merge branch 'api-current' into helpdesk-gui

Conflicts:
aai/shibboleth.py

d1387ed7 06/30/2011 06:36 pm Christos Psaltis

Merge remote-tracking branch 'origin/api-current' into ui-0.5

Conflicts:
api/util.py
logic/backend.py

75518958 06/30/2011 06:24 pm Giorgos Gousios

Log request URL and user for all API calls

bc923fb7 06/30/2011 06:11 pm Giorgos Verigakis

Bugfix

Always initialize `u`

b9b28a61 06/30/2011 04:57 pm Giorgos Gousios

Log request URL and user for all API calls

334c1b75 06/30/2011 03:41 pm Giorgos Verigakis

Add a Get Server Stats API method

ebc913dc 06/30/2011 03:41 pm Giorgos Verigakis

Update API to return 4 kinds of graphs

Also temporarily disable encryption of backend id.

Refs #527

5391d6b5 06/30/2011 01:49 pm Giorgos Verigakis

Update API to return 4 kinds of graphs

Also temporarily disable encryption of backend id.

Refs #527

c738c935 06/29/2011 01:15 pm Giorgos Verigakis

Add a Get Server Stats API method

ccd0d474 06/28/2011 01:07 pm Giorgos Verigakis

Limit the number of VMs a user can create

Controlled by the MAX_VMS_PER_USER setting.

Fixes #703

93677203 06/28/2011 12:31 pm Giorgos Verigakis

Deleting an image now just changes its state

list_images with changes-since is now able to show deleted images.

2987cd8a 06/28/2011 12:30 pm Giorgos Verigakis

Minor refactoring

4733c1b0 06/28/2011 12:28 pm Giorgos Gousios

Mostly cosmetic changes to the auth middlewares

0bc9e367 06/28/2011 10:27 am Giorgos Gousios

Merge branch 'api-current' into helpdesk-gui

Conflicts:
settings.py.dist

26563957 06/24/2011 06:10 pm Giorgos Verigakis

Add a PROTECTED firewall profile

Refs #659

27f0e60e 06/23/2011 10:53 am Giorgos Gousios

Forbid destructive actions from the helpdesk GUI

Mark requests with impersonated users as readonly and check access on all API method invocations

aad68ee6 06/23/2011 10:49 am Giorgos Gousios

PEP-8 compliance

23f2683f 06/21/2011 06:33 pm Giorgos Verigakis

Do not randomize the owners used for the tests

a191bd4d 06/21/2011 01:07 pm Giorgos Verigakis

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

Conflicts:
api/images.py
api/networks.py
contrib/ganeti-hooks/kvm-vif-bridge
db/fixtures/images.json
db/models.py
logic/backend.py
logic/tests.py
settings.py.dist
tools/cloud

91826390 06/20/2011 03:32 pm Giorgos Verigakis

Add initial support for firewall profiles

Refs #659

75768d0e 06/20/2011 02:54 pm Giorgos Verigakis

Add a public attribute to Images

list_images now returns images that either match the owner, or
that are marked as public.

Fixes #555

Database migration needed.

adee02b8 06/17/2011 12:48 am Giorgos Verigakis

Add proper license headers

f533f224 06/03/2011 04:35 pm Vangelis Koukis

Merge branches api-current and ui-0.4, minor fixes

Merge branches api-current and ui-0.4: * Fix merge conflicts * Fix minor bug in reconciliation mgmt command * Add comments in settings.py.dist * minor PEP8 fixes

e1cb42fe 06/03/2011 02:51 pm Vangelis Koukis

Merge branch 'images-0.4'

a3992827 05/31/2011 07:23 pm Giorgos Verigakis

Make Network and NetworkLink relation explicit

DB migration needed.

b36f78fa 05/31/2011 05:33 pm Giorgos Verigakis

Style fixes to be more PEP8 compliant

207b70d5 05/31/2011 05:06 pm Giorgos Verigakis

Network improvements

  • Make backend functions transactional.
  • Only one network can be public and it has the id 'public'.
  • The public network can not be deleted or modified.
  • firewallProfile is optional
797e88b3 05/29/2011 05:59 pm Giorgos Verigakis

Bugfixes

  • Switch from IPAddressField to CharField to make Postgres happy.
  • Do not return addresses if they are empty.

Database migration needed.

64938cb0 05/29/2011 04:37 pm Giorgos Verigakis

Connect networks API with the Ganeti

  • Create Ganeti network link when creating a network.
  • Delete the link when deleting the network.
  • Use a pool of GANETI_MAX_LINK_NUMBER network links.
  • Adding or removing a server from a network requires reboot.

A database migration is needed....

d44c236b 05/25/2011 06:23 pm Giorgos Verigakis

Refactor networks

  • VirtualMachines can have a number of nics that are attached to networks.
  • Networks can also be public
  • VirtualMachines can be attached to public networks that they don't own.
  • There is a special public network (id 1) that can't be deleted....
c9fdfa27 05/20/2011 11:22 am Giorgos Gousios

Add expires field for auth token

Refs: #483

197398e2 05/16/2011 07:27 pm Giorgos Verigakis

Ignore updated field

API was changed to include an updated field in networks.

69d6d7dd 05/16/2011 07:02 pm Giorgos Verigakis

Add XML output for networks

Additionally:
- Return created and updated timestamps too.
- Bugfix in XML of image

Fixes #553

5509b599 05/16/2011 06:36 pm Giorgos Verigakis

Update timestamps when metadata/networks change

Applies to servers and images.

Fixes #525

1ef58e5b 05/13/2011 07:09 pm Constantinos Venetsanopoulos

Initial commit for Image Support in Synnefo

Add Image Support in Synnefo, more specifically: * Add fixtures for 4 actual images * Add two more fields in Image model (backend_id, format) * Commit South migration for Image model * Modify create_instance() in logic/backend.py to pass OS parameters...

aa197ee4 05/10/2011 01:35 pm Vangelis Koukis

Fix redundant whitespace at end of lines

Remove all unecessary whitespace at end of lines.
See
http://stackoverflow.com/questions/5257553/coloring-white-space-in-git-diffs-output

for a way to have git highlight redundant whitespace automatically.

865fd434 05/10/2011 01:25 pm Vangelis Koukis

Merge branch 'api-current' into ui-0.3

Conflicts:
api/tests.py

97e56881 05/10/2011 01:17 pm Vangelis Koukis

Fix test token duration, minor bug in API

Modify db/fixtures/initial_data.json and settings.py.dist to
fix the duration of the test token.

Fix minor bug in api/util.py when no valid SynnefoUser
could be found or the provided X-Auth-Token was invalid.

aa519091 05/09/2011 07:16 pm Giorgos Gousios

Simple test for requests with out X-Auth-Tokens

1428a464 05/09/2011 03:37 pm Giorgos Gousios

Move and fix test cases to the appropriate locations

22aee0fb 05/09/2011 02:20 pm Giorgos Gousios

Split aai middleware into two instances

One instance guards the API (and returns 401 if the user is unauthorized), one protects the other content and redirects to Sibboleth

b19653d1 05/06/2011 04:13 pm Giorgos Verigakis

Change networks to use numeric ids

Fixes #457

13b954b0 05/05/2011 01:49 pm Giorgos Verigakis

Add tests for networks and some bug fixes

Fixes #409

dca6520b 05/03/2011 06:30 pm Giorgos Verigakis

Rename server argument to serverRef

111f6d5b 05/03/2011 01:59 pm Giorgos Verigakis

Improved image tests

e2ee7808 05/03/2011 01:59 pm Giorgos Verigakis

Previous commit was incomplete

0269afd6 05/03/2011 12:29 pm Giorgos Verigakis

Add initial networks support

Refs #409

40777cc8 04/19/2011 03:56 pm Giorgos Verigakis

Add support for users

  • Tests use a hardcoded token
  • cloud tool uses a hardcoded token
  • Bugfixes

Fixes #423

175ffa73 04/19/2011 11:49 am Giorgos Verigakis

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

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
733ab79b 04/15/2011 11:14 am Georgios Gousios

Merge branch 'master' into auth-mechanism

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

52ddd0e7 04/12/2011 01:31 pm Georgios Gousios

Merge branch 'master' into auth-mechanism

Conflicts:
api/fixtures/api_test_data.json
api/tests.py

25380811 04/12/2011 01:20 pm Georgios Gousios

Rename auth to aai and put all aai related stuff in it

manage.py had trouble running tests from auth (confirmed with
[verigak]), and is also a good idea to have all aai stuff in
one reusable place ([vkoukis]'s idea)

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....

57e59589 04/07/2011 03:09 pm Georgios Gousios

All Shibboleth-based tests pass

Now, we need to test it against a real installation

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

Query for greater since or equal

faa26af8 04/07/2011 01:36 pm Georgios Gousios

Make most tests pass

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.

71a2be7d 04/06/2011 08:03 pm Georgios Gousios

New test

df50f56f 04/06/2011 06:12 pm Georgios Gousios

Merge branch 'master' into auth-mechanism

Conflicts:
settings.py.dist

1896d262 04/06/2011 06:08 pm Georgios Gousios

Fixes to pass some shibboleth related tests

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