| Branch: | Tag: | Revision:

root @ 52194743

# Date Author Comment
52194743 02/22/2011 01:57 pm Vangelis Koukis

Update fixtures, introduce created/updated fields.

Introduce auto-generated created/updated fields in all models,
use two different fixtures, one for db initialization, one for testing. * All models have created/updated fields. * VirtualMachine model has an owner field....

b8bbd09f 02/22/2011 01:51 pm Christos Psaltis

fix reloading after confirmation

dc7c6742 02/22/2011 01:46 pm Christos Psaltis

reload standard view after confirmation

74bb9785 02/22/2011 01:39 pm Christos Psaltis

Correct apearance of actions in standard view

The actions shown for running machines are:

  • reboot
  • shut down
  • more

The actions shown for terminated machines are:

  • start
  • more
5d13042c 02/22/2011 01:32 pm Christos Psaltis

removed focus for actions in standard view

3d6e97af 02/22/2011 01:21 pm Christos Psaltis

change mini seperator order of appearance

e764ccfd 02/22/2011 01:16 pm Christos Psaltis

change color and margin in list view actions

29833195 02/22/2011 01:09 pm Christos Psaltis

moved fixtures to proper folder db/fixtures

6a94c3c4 02/22/2011 01:05 pm Christos Psaltis

renamed fixtures file so it can be called automatically

f5ea24a9 02/21/2011 07:19 pm Markos Gogoulos

documentation added on api/

71008c92 02/21/2011 07:02 pm Markos Gogoulos

error message change on ServerHandler

b7a61b3a 02/21/2011 05:31 pm Markos Gogoulos

added better error handling on ImageHandler

43d8f0e4 02/21/2011 04:53 pm Vassilios Karakoidas

Corrected a comment in Flavor.find_cost()

1d5c0637 02/21/2011 04:51 pm Vassilios Karakoidas

Merge branch 'master' of

8bda0440 02/21/2011 04:49 pm Vassilios Karakoidas
  • Removed FlavorCostHistoryTestCase
  • Migrated find_cost test in FlavorTestCase
  • Moved FlavorCostHistory.find_cost() -> Flavor.find_cost()
c18611c8 02/21/2011 04:04 pm Markos Gogoulos

improvements regarding error handling.

  • added exceptions checking for Ganeti Api Errors and Django ORM
  • vm.start_action(action) is called before any action (reboot, shutdown, start, destroy)
  • code cleanout for the ServerActionHandler
1583f11a 02/21/2011 04:01 pm Vassilios Karakoidas
  • Moved Limit.get_limit_from_user() to SynnefoUser.get_limit()
  • CreditAllocatorTestCase is modified accordingly to check the new method
104c3c5f 02/21/2011 12:50 pm Markos Gogoulos

fixed previous commit problems. removed UserLimit from, since no UserLimit model is on the

c1562706 02/21/2011 01:55 am Vassilios Karakoidas

Merge branch 'master' of

62c6d260 02/21/2011 01:52 am Vassilios Karakoidas
  • Implemented VirtualMachine.get_accounting_logs()
  • Added VirtualMachineTestCase unit test
  • Now the db_test_data adds AccountingLog entries for 1003 VM (also introduced some corrections in Disk models data
  • Working on the charger which is still completelly broken (along with the related test case)
9eef701d 02/21/2011 12:31 am Markos Gogoulos

destroy action sets VM._operstate as 'DESTROYED' and does not call rapi.DeleteInstance to destroy the machine

df9dc46b 02/20/2011 11:43 pm Vassilios Karakoidas
  • Minor comment corrections
e3bc2088 02/20/2011 11:30 pm Vassilios Karakoidas
  • Unit tests are greatly simplified
  • All unit tests are using fixtures
e4c395b7 02/20/2011 11:26 pm Vassilios Karakoidas
  • Added AccountingLog entries to db_test_data.json
  • AccountingLogTestCase is corrected and works as intended
ec08e9ce 02/20/2011 11:18 pm Vassilios Karakoidas
  • Add db/fixtures/db_test_data.json fixture (data for testing)
da46c52a 02/20/2011 11:17 pm Vassilios Karakoidas
  • Fixed a bug in FlavorTestCase
8922a5a9 02/20/2011 11:15 pm Vassilios Karakoidas
  • FlavorTestCase now works correctly with the fixtures
e48404ca 02/20/2011 11:12 pm Vassilios Karakoidas
  • FlavorCostHistoryTestCase now loads the fixtures and works correctly
d39ea372 02/20/2011 10:59 pm Vassilios Karakoidas
  • Removed initial_data JSON fixture
  • Fixtures are now loaded on unittesting as intended
  • Modified CreditAllocatorTestCase to load fixtures
90b28517 02/20/2011 10:26 pm Vassilios Karakoidas

CreditAllocator now uses Limit according to the changes to the model

  • CreditAllocatorTestCase has been modified to match the new requirements
  • CreditAllocatorTestCase also test Limit.get_limit_for_user() method
f51e7b50 02/20/2011 09:53 pm Vassilios Karakoidas

Added comment in FlavorCostHistory.find_cost(), also made a minor optimisation

2d45374d 02/20/2011 09:39 pm Vassilios Karakoidas

Models are modified to use limit through the model

  • Removed models Limit, UserLimit and replaced them with Limit (new) that use choices instead from many-to many relationship
  • Removed max_violations, quota from SynnefoUser
debeeec9 02/20/2011 01:16 pm Markos Gogoulos

create machine wizzard pass foo data to the serverhandler

e98852ba 02/19/2011 08:11 pm Markos Gogoulos

start Machine action, for the standard view - initial commit

8b78d1a5 02/19/2011 07:40 pm Markos Gogoulos

fixed problem with copyright string

ad5909f6 02/18/2011 04:09 pm Vangelis Koukis

Removed unused

Removed as it is not used anymore.
Any mock objects are defined in db/fixtures.

9071888e 02/18/2011 02:24 pm Constantinos Venetsanopoulos

Initial Disk Management API (DM API) implementation

The DM API is accessible under api/v1.0grnet1/ and
it extends the Rackspace Cloud Servers v1.0 API
for the use of Disks. Notable changes:

  • Added the "Disk" model in db/
  • Added the "DiskHandler" in api/
619b1c87 02/18/2011 01:41 pm Markos Gogoulos

dynamic sqlite3 database path

3286a038 02/18/2011 01:20 pm Vangelis Koukis

Merge branch 'master' of

dd8d34ae 02/18/2011 01:18 pm Vangelis Koukis

Use absolute path to db in

Fixed to reference the absolute file path
when using an sqlite3 db, see:

5216e8af 02/18/2011 12:51 pm Vassilios Karakoidas

Merge branch 'master' of

f0f4edac 02/18/2011 12:51 pm Vassilios Karakoidas

Adding/Correcting comments

0e1fbceb 02/18/2011 12:37 pm Vassilios Karakoidas

now Flavor._update_costs uses hasattr

dc8b976e 02/18/2011 12:22 pm Markos Gogoulos

removed ganeti rapi reference from serverhandlers

e2b0ffec 02/18/2011 12:54 am Vassilios Karakoidas

Merge branch 'master' of

9e9db964 02/18/2011 12:53 am Vassilios Karakoidas

fix bug in CreditAllocatorTestCase (bad data initialisation)

f1220c03 02/17/2011 07:16 pm Markos Gogoulos


b86e97ed 02/16/2011 11:58 pm Vassilios Karakoidas

AccountingLog test is finished; most charger-related operations are ready and tested

dddb0035 02/16/2011 10:53 pm Vassilios Karakoidas

Setup/TearDown AccountingLogTestCase is finished

9373e677 02/16/2011 10:21 pm Vassilios Karakoidas

VM owner is derived from the Image

a34d0602 02/16/2011 09:08 pm Vassilios Karakoidas

FlavorCostHistoryTestCase is complete

5cb8d769 02/16/2011 08:58 pm Vassilios Karakoidas

Flavor.get_price_list() should query with filter, not get

6d6b83a3 02/16/2011 08:50 pm Vassilios Karakoidas

FlavorTestCase works as intended; Add FlavorCostHistoryTestCase (in progress)

3846dfd0 02/16/2011 08:26 pm Vassilios Karakoidas

remove obsolete tests; introduce various corrections/additions in models

f81c2077 02/16/2011 07:29 pm Vassilios Karakoidas is a function, so use

37c42c95 02/16/2011 07:10 pm Vassilios Karakoidas

added violations concept

91509aed 02/16/2011 07:00 pm Vassilios Karakoidas

remove rcredit local variable; credits can have negative value

c5fb1b95 02/16/2011 06:59 pm Vassilios Karakoidas

simplified SynnefoUser a little; remove _total_hours

55f1006f 02/15/2011 06:01 pm Vassilios Karakoidas

user can now have negative amount of credits

5db87ed5 02/15/2011 01:21 am Vangelis Koukis

Make ZMQ thread in db_controller stoppable.

Make db_controller run all 0mq operations in a separate StoppableThread
with a stop() method. The main thread calls it, then publishes on an in-proc
PUB socket to interrupt any zmq_recv() call and join the thread when cleaning...

bd96a56b 02/14/2011 06:08 pm Christos Psaltis

tables working as before, but with datatables plugin

c21a0a84 02/14/2011 03:57 pm Markos Gogoulos

action_start() function added. actions are executed from there and success/failure messages are returned for the gui

a30a43a7 02/14/2011 12:44 pm Markos Gogoulos

added switch to ajax_error, for custom messaging

53827f6d 02/14/2011 10:36 am Markos Gogoulos

creation of ImageMetadata model

f58ec963 02/13/2011 06:56 pm Christos Psaltis

replace all alerts in standard view with themed pop ups

b6270d15 02/13/2011 05:04 pm Christos Psaltis

minor code formatting and comment editing

facad27f 02/13/2011 04:57 pm Christos Psaltis

working generic confirmation actions in standard view

ba4c763b 02/13/2011 02:53 pm Christos Psaltis

less arguments for ajax_error, ajax_success

4b90b177 02/13/2011 02:51 pm Christos Psaltis

get error and success codes from ajax calls

06e9bee7 02/13/2011 02:20 pm Christos Psaltis

remove redundant } breaking javascript execution

213fdf95 02/13/2011 02:17 pm Christos Psaltis

testing version of global ajax error-success functions

9c8bae13 02/13/2011 01:53 pm Christos Psaltis

smaller serach bars in list view

962733ad 02/13/2011 01:39 pm Christos Psaltis

initial version of notification function

4e5d5e70 02/13/2011 01:23 pm Christos Psaltis

initial version of confirmation function

bd528b3b 02/13/2011 12:21 pm Christos Psaltis

Apply DRY in machines template

This includes:

  • initial code for reusable ajax error and success functions
  • more descriptive names for confirmation and notification overlays
  • break update() in update_vms() and update_images() for less calls
a4531705 02/13/2011 12:12 am Christos Psaltis

replace tablesorter with datatables, work in progress

941b00d4 02/12/2011 10:08 pm Markos Gogoulos

added error codes for reboot action.

if the action can't happen, the user gets informed. There are three cases:

  • user sends the reboot request but timeout happens. He gets informed to check his network connection
  • the request can't be made. The user gets informed that the reboot action couldn't happen. We can further parse the error message to discover why this...
9295c9bb 02/12/2011 09:04 pm Markos Gogoulos

typo on the documentation

39e80daa 02/12/2011 09:03 pm Markos Gogoulos

typo on the documentation

fcb969cc 02/12/2011 07:01 pm Christos Psaltis

experiment with verification of reboot action in standard view

95ac62ec 02/11/2011 08:02 pm Christos Psaltis

remove transparency from selection menu in list view and add hover color

abf90954 02/11/2011 07:59 pm Markos Gogoulos

added TIMEOUT variable on You'll have to cp to your

initial value is 10 seconds. after this time passes, if the ui hasn't received any data, the user is informed (with js alert window at the moment) that there
are network issues (a better message might ask the user to refresh)

a9d8ed3a 02/11/2011 07:50 pm Christos Psaltis

correct delete state and transitions in list view

9ea8125a 02/11/2011 07:35 pm Christos Psaltis

update status for machines according to rsapi

c5e38339 02/11/2011 06:55 pm Markos Gogoulos

added error handling when rapi can't login to the backend. the ui user gets informed

6d278d9b 02/11/2011 05:58 pm Christos Psaltis

delete old json for database population

a26faa27 02/11/2011 05:54 pm Christos Psaltis

update .gitignore to not include sqlite

19b09607 02/11/2011 05:36 pm Christos Psaltis

update README to include dbcontroller setup

b037553e 02/11/2011 05:01 pm Markos Gogoulos

Merge branch 'master' of

ab9f1a89 02/11/2011 05:00 pm Markos Gogoulos

type on documentation

d165dbb4 02/11/2011 04:49 pm Christos Psaltis

prepare action notifications

00d83c42 02/11/2011 04:45 pm Markos Gogoulos

added get_vmid on Image model to return the first VMs id, if any. This was the serverid variable

58cac9ab 02/11/2011 02:34 pm Vassilios Karakoidas

unit testing now works for CreditAllocator

3f53219b 02/11/2011 02:23 pm Vassilios Karakoidas

updated initial data to test credit allocator testcase

98002f2b 02/11/2011 01:37 pm Markos Gogoulos

dependencies added on documentation

7dc44117 02/11/2011 01:13 pm Vassilios Karakoidas

Merge branch 'master' of

6496c622 02/11/2011 01:12 pm Vassilios Karakoidas
  • minor changes in models and tests (db)
0a2964a1 02/10/2011 06:45 pm Vangelis Koukis

Merge branch 'master' of

78d9b6b7 02/10/2011 06:42 pm Vangelis Koukis

Private fields in VM model, updated fixtures

Updated names of fields pertaining to VM state in VirtualMachine model,
updated fixtures.

database.sqlite can be removed, use:

rm database.sqlite; python syncdb

to recreate it from fixtures.

5db7630e 02/10/2011 05:51 pm Vassilios Karakoidas

Merge branch 'master' of