Statistics
| Branch: | Tag: | Revision:

root / api / servers.py @ f4fe8796

History | View | Annotate | Download (17.2 kB)

# Date Author Comment
55b7ee4f 07/11/2011 11:17 am Giorgos Gousios

Logging configuration

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

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

Minor refactoring

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

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

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

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

Change networks to use numeric ids

Fixes #457

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

Previous commit was incomplete

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

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

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

Only return the updated metadata

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

Query for greater since or equal

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

Use more specific exceptions

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

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

Allow create_server to set initial metadata

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

Add metadata support in Images

Removed description and size from Image model.

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

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

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...
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
29a59bc1 03/24/2011 04:08 pm Giorgos Verigakis

Use the json module bundled by Django

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

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

Use imageRef/flavorRef

Instead of imageId/flavorId.

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

Fix addresses JSON output in servers.

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