| Branch: | Tag: | Revision:

root @ 92c53da1

# Date Author Comment
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
7b7f9205 03/22/2011 05:49 pm Vassilios Karakoidas

Moved SynnefoUser methods to logic.credits

  • debit_account moved to
  • credit_account moved to
09c936a7 03/22/2011 05:30 pm Vassilios Karakoidas

Add logic app in django configuration

  • Added that will contain the business logic for
    credit transactions and the charging
66099657 03/22/2011 01:54 pm Vassilios Karakoidas

Initialise logic-refactoring branch

  • Add logic package
c36934a7 03/21/2011 06:09 pm Giorgos Verigakis

Add image and flavor support to REDUX API

Refs #301

d725fb12 03/19/2011 08:16 pm Christos Psaltis

Add and style confirmation box in list & standard view.

This refers to the confirmation box for multiple machine actions
in standard view and all machine actions in list view. The box
appears at the bottom of the page. You can only view it
by removing display: none from div.confirmation....

c2464ef2 03/19/2011 07:04 pm Christos Psaltis

Add and style confirmation box in standard view

This refers to the confirmation box for single machine actions.
At this point you can only view it by removing display: none
from div.confirmation.

Refs #209

2e2bd2a6 03/18/2011 08:05 pm Giorgos Verigakis

Add some command line tools.

Simple command line tools to help the development.

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

31343277 03/18/2011 07:46 pm Christos Psaltis

Add initial html for new style confirmations

5b147126 03/18/2011 07:02 pm Christos Psaltis

#machines.separator appears in standard and list view

984af1e1 03/18/2011 05:11 pm Christos Psaltis

On hover actions turn to orange.

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

ec425eb2 03/17/2011 09:38 pm Markos Gogoulos

Merge branch 'master' of

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

01864f44 03/17/2011 08:43 pm Dimitris Moraitis

comment out jquery tools source includes

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

update serveraddress handler

return badRequest if networkId is not public/private

146b6003 03/17/2011 03:51 am Dimitris Moraitis

improve auto-refresh and error handling

a5c17ad3 03/17/2011 03:49 am Dimitris Moraitis

fix settings import

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
a5093da5 03/15/2011 09:06 pm Markos Gogoulos

fix previous broken commit

there was an error on home.html of the ui introduced with the
previous commit :(

7d311ba1 03/15/2011 09:00 pm Markos Gogoulos

fix create wizzard error handling

show 2 different translatable messages, when no images or flavors
are found

a3ef9d23 03/15/2011 12:35 pm Giorgos Verigakis

Improve instructions.

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.

e5b0ba20 03/12/2011 03:06 am Vangelis Koukis

Remove unneeded GUI refreshes, fix spelling

Now that partial refreshes are working, there is no need to refresh
whole page after submitting an AJAX request. This eliminates unecessary

Make the GUI page update every 5s instead of 60s.

Modify spelling of "seperator" to read "separator".

5f99a59d 03/11/2011 08:39 pm Markos Gogoulos

change error message on the ui

change translatable error message (default case) on home.html

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

b175c950 03/11/2011 07:00 pm Vangelis Koukis

Add ability to report REBOOT state

Extend the rsapi_state property of the VirtualMachine model
to report the machine is in REBOOT when there is a pending
OP_INSTANCE_REBOOT request to the Ganeti backend.

7b7e768e 03/11/2011 04:41 pm Christos Psaltis

Change the order of includes for more clarity

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

Minor fixes in Image/Server Metadata Handler

48ce8b68 03/10/2011 07:54 pm Christos Psaltis

Initial support for auto updating list view

150eb972 03/10/2011 07:54 pm Christos Psaltis

Fix minor readability issues

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

748139ba 03/10/2011 01:55 pm Christos Psaltis

Do not pass serverID in ajax_error()

f15025bc 03/10/2011 11:35 am Christos Psaltis

Destroy action has an empty request body

583932c4 03/10/2011 11:29 am Christos Psaltis

Similar error handling for all actions

38b1f387 03/10/2011 11:24 am Christos Psaltis

fix destroy action for multiple machines

a0f83bd2 03/09/2011 08:42 pm Vassilios Karakoidas

Implement unit tests for all charge() related methods

  • Modify the db_test_data.json to assist unit testing.
  • Introduced various refactorings to simplify code
5e5683f1 03/09/2011 07:30 pm Christos Psaltis

Upgrade DataTables version to 1.7.6

81d48bff 03/09/2011 07:29 pm Christos Psaltis

Improve code readability in standard view template

a739ce48 03/09/2011 05:43 pm Christos Psaltis

Do not reload view after no in confirmation dialog

9b1b6f3a 03/09/2011 05:28 pm Christos Psaltis

improve code readability

c58db69b 03/09/2011 05:28 pm Christos Psaltis

Fix mini seperator fadeIn rule.

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

2d405b6a 03/09/2011 05:07 pm Constantinos Venetsanopoulos

Added Image Metadata in fixtures (images.json)

4c846a95 03/09/2011 05:04 pm Markos Gogoulos

fix wrong 'delete action' URL

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.

a3e418b1 03/08/2011 09:02 pm Markos Gogoulos

not launch create machine wizard on some cases

When there are no images, or no flavors, don't launch the create
machine wizzard, but show an error popup instead

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

2ed4ced5 03/08/2011 05:12 pm Markos Gogoulos

do not ask confirmation on start server(s) action

51ee8969 03/08/2011 04:25 am Dimitris Moraitis

Merge branch 'master' of

eae0a59a 03/08/2011 04:25 am Dimitris Moraitis

partial auto-refresh

0ad5737e 03/08/2011 04:19 am Dimitris Moraitis

update functional tests

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

fix STOP command name

b1699441 03/08/2011 01:12 am Vassilios Karakoidas

Several model function now use transactions

  • Fixed various minor bugs
  • Now two functions use @transation.commit_on_success
  • Removed unused import statement
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
e32c2a5d 03/06/2011 08:39 pm Dimitris Moraitis

improve look and browser compatibitily of list table scroll

aa819ce8 03/06/2011 06:46 pm Dimitris Moraitis

add try-catch for js console logging, fixes breakage when firebug is not present

d36493ce 03/06/2011 06:45 pm Dimitris Moraitis

move timeout to home template to fix breakage

520430b7 03/06/2011 06:43 pm Dimitris Moraitis

add listing table scrollbar, at least for Gecko browsers

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

f974b570 03/06/2011 07:58 am Dimitris Moraitis

remove extra comma

42f67a2a 03/06/2011 07:40 am Dimitris Moraitis

major js restructuring & refactoring

Most javascript functions have been moved to a seperate file.
The standard view is also now seperate from the machines view. This solves a
couple of issues with Webkit browsers and the code becomes cleaner.
All actions from both the list and the standard view now have unified...

eb8deaef 03/06/2011 07:38 am Dimitris Moraitis

minor css rewrite

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

minor test optimization

12d7e95e 03/05/2011 06:05 pm Dimitris Moraitis

update rangeinput values directly when moving the sliders

12818baf 03/05/2011 06:03 pm Dimitris Moraitis

add instructions on using the test coverage runner

a86dff1b 03/05/2011 05:17 pm Christos Psaltis

ignore selenium server

20fae095 03/05/2011 05:16 pm Christos Psaltis

post imageId on create

7afe1874 03/05/2011 05:12 pm Christos Psaltis

set self.suspended to false when starting vm

7cf432f4 03/04/2011 01:36 pm Dimitris Moraitis

update README on running funtional tests

757e87f2 03/04/2011 01:31 pm Dimitris Moraitis

add instructions on running funtional tests

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

4ffb82dc 03/03/2011 08:24 pm Vassilios Karakoidas

Fixed a minor bug in

  • Fixed a minor bug in model VirtualMachine
  • Added two notes in README
c58091a6 03/03/2011 06:49 pm Vangelis Koukis

Fix db/ bug triggering 0mq bug

Fix db/ bug triggering 0mq assertion failure
in ganeti-0mqd, by forcing unique ZMQ_IDENTITY strings for each
db_controller instance.

The identity string is built using the hostname where db_controller...

f53a9423 03/03/2011 05:49 pm Vangelis Koukis

Add independent fixtures for the Image model

Add independent fixtures for the Image model in db/fixtures/images.json,
no dependencies from VirtualMachine instances.

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"

8707738f 03/03/2011 03:15 pm Vangelis Koukis

Add README.DB, minor fixes to fixtures

Add new file README.DB with instructions for PostgreSQL and MySQL setups.
Modify fixtures to include definition of Images in definition of VMs
(vms.json), ensuring referential integrity.

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

bc9c872b 03/03/2011 12:20 pm Vangelis Koukis

Revert breakage caused by _update_state() commits

Try to revert the breakage caused by commits * dac4356407c446943ff029d1fe931516f3ba4c07 * 27816aaeab44c059466834a556a78931e5b0a9ee * 3ca38a07a0d23fd9bec0c4bc423df863dcf6509c

which caused to be called in VirtualMachine.__init__()...

d62113a0 03/02/2011 10:59 pm Markos Gogoulos

add translatable strings

on machines.html

dddb9274 03/02/2011 09:49 pm Markos Gogoulos

make errors translatable

error messages (404, 400, 503, 501 or others) are translatable
The greek translation has been added

3ca38a07 03/02/2011 06:03 pm Vassilios Karakoidas

Many fixes and refactoring in models

  • Simplified code in VirtualMachine._update_state()
  • Added comments in Flavor._get_costs() and other model methods
b772da83 03/02/2011 06:03 pm Vassilios Karakoidas

Merge branch 'master' of

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

add attribute description for the machines

on machine's response, as it is with images

27816aae 03/02/2011 04:17 pm Vassilios Karakoidas

Added update_state() method (fixes)

  • Rename update_state to new _update_state() method, used by the
    VirtualMachine model internally to update its state. Not to be
    called by external entities.
dac43564 03/02/2011 03:18 pm Vassilios Karakoidas

Added update_state() method

  • VirtualMachine model now has the update_state() method
    to set the _operstate field
  • Modified the other models to user update_state() method
ffffd5fe 03/02/2011 01:08 pm Markos Gogoulos

improve exception handling on api/handlers

add missing try except blocks on FlavorHandler, ImageHandler, ServerHandler

452d2391 03/02/2011 02:29 am Vassilios Karakoidas

Implemented Charger Functionality

  • Re-implemented the tests
  • Added functionality to all charger-related functions
  • Added functionality to the charger itself

The code needs still lots of testing

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