| Branch: | Tag: | Revision:

root / db / @ ef39e7ee

History | View | Annotate | Download (11.7 kB)

# Date Author Comment
ef39e7ee 04/01/2011 04:52 pm Georgios Gousios

Some coding before enlighting discussion w/ faidon

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)
6bffabbd 03/28/2011 10:06 pm Vassilios Karakoidas works with the refacctored code

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), moved miscellaneous functions there
  • has now minimal functionality (ui->logic->db)
183149e6 03/28/2011 02:27 pm Vassilios Karakoidas

Merge branch 'master' into logic-refactoring


d8b7ab6d 03/24/2011 09:12 pm Dimitris Moraitis

return DELETED in _get_rsapi_state - Fixes #293

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

adb39f22 03/23/2011 04:10 pm Vassilios Karakoidas

Removed unused import

c8926262 03/22/2011 08:54 pm Vassilios Karakoidas

Test are now working for db, logic modules

  • Moved methods from -> to avoid
    circular dependency
1f0fe1d8 03/22/2011 07:58 pm Vassilios Karakoidas

Minor fix in FlavorCost model

111b2cda 03/22/2011 07:57 pm Vassilios Karakoidas

Move _get_costs (internal method) to

22e52ede 03/22/2011 07:39 pm Vassilios Karakoidas

Internal method calculate_cost moved to

02feca11 03/22/2011 07:21 pm Vassilios Karakoidas

Move process_backend_msg to

e3a99a08 03/22/2011 06:57 pm Vassilios Karakoidas

Moved id_from_instance_name static method to

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

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

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
7afe1874 03/05/2011 05:12 pm Christos Psaltis

set self.suspended to false when starting vm

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
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__()...

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

39d236e9 02/27/2011 10:19 pm Dimitris Moraitis

allow the destruction of suspended vms

d174b105 02/27/2011 01:09 pm Vassilios Karakoidas

Changed models to match current specification

  • Rename AccountingLog -> Debit
  • FlavorCostHistory -> FlavorCost
  • Tests are broken (work in progress)
  • CreditAllocator is broken
7b4b06a2 02/25/2011 08:50 pm Markos Gogoulos

removed get_vmid and vm_id from Image

since sourcevm field has been added

d6094a56 02/25/2011 04:24 pm Constantinos Venetsanopoulos

Add the 'size' field in the Image model

The 'size' field was added in the Image model.
It shows the Image's size in MBs

e171c0be 02/25/2011 12:26 pm Vangelis Koukis

Fix bug in VirtualMachine.start_action().

Modify start_action() to set self.deleted/suspended.

48223290 02/24/2011 10:08 pm Markos Gogoulos

fixed bug on start_action (needed self.deleted instead of deleted)

c750d1d6 02/24/2011 02:44 pm Vangelis Koukis

Add deleted field VirtualMachine model.

Add a 'deleted' field in VirtualMachine model. Remove 'inactive' field.
Update the start_action() method to manage deleted/suspended fields for
the DESTROY and SUSPEND action respectively.

4daac449 02/23/2011 09:01 pm Vassilios Karakoidas
  • Fixed an syntax error in Flavor (added a comma)
  • Added field inactive in VirtualMachine model
13b3c5ff 02/23/2011 08:10 pm Vassilios Karakoidas
  • Add desccription (verbose_name) to many models in the db/; no need for translation with _()
  • Removed unique=False from Flavor.cpu|ram|disk
bf48028e 02/22/2011 08:14 pm Vassilios Karakoidas
  • SynnefoUser.monthly_rate deleted
  • Introduced three limits (MONTHLY_RATE, QUOTA_CREDIT, MAX_VIOLATIONS)
  • Added three test limits in db_test_data.json
  • mothly_rate, credit_quota, max_violations properties are now introduced in SynnefoUser class
b4808d2b 02/22/2011 07:33 pm Vassilios Karakoidas
  • Image now includes Foreign Key relationship with VirtualMachine (sourcevm)
  • Fixed primary key ranges in db/db_test_data.json
60bf38e1 02/22/2011 06:22 pm Vangelis Koukis

Split initial_data.json, minor fixes in

Split initial_data.json into different fixtures, one for each model.
Fixtures can be loaded as needed using the loaddata command.
See the README for all the details.

Add a complete set of instances for the Flavor model....

c92af313 02/22/2011 03:41 pm Vangelis Koukis

Minor fixes in VM model and

Added comments for VirtualMachine attributes pertaining
to internal operating state (ACTIONS, OPER_STATES, etc.).

Minor fixes in

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

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

Corrected a comment in Flavor.find_cost()

8bda0440 02/21/2011 04:49 pm Vassilios Karakoidas
  • Removed FlavorCostHistoryTestCase
  • Migrated find_cost test in FlavorTestCase
  • Moved FlavorCostHistory.find_cost() -> Flavor.find_cost()
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
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)
df9dc46b 02/20/2011 11:43 pm Vassilios Karakoidas
  • Minor comment corrections
e48404ca 02/20/2011 11:12 pm Vassilios Karakoidas
  • FlavorCostHistoryTestCase now loads the fixtures and works correctly
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
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/
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

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

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

VM owner is derived from the Image

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

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

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

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

creation of ImageMetadata model

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

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

updated initial data to test credit allocator testcase

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.

562549e3 02/10/2011 12:24 pm Vassilios Karakoidas

Fix: fixtures now works correctly

d08a5f6f 02/08/2011 11:32 pm Vangelis Koukis

What commit b4141604 should have contained.

The proper contents of commit b4141604 are included here.

6ce6dee1 02/07/2011 06:57 pm Markos Gogoulos

added User ForeignKey on Image

a31ff6cb 02/07/2011 05:46 pm Markos Gogoulos

initialization of VirtualMachineGroup and VirtualMachineGroupHandler that lists/creates/deletes VirtualMachineGroups

these are groups of virtual machines for a User

61b80d9a 02/06/2011 10:48 pm Vassilios Karakoidas
  • Charger now works properly
0b5a51f7 02/04/2011 01:37 pm Vassilios Karakoidas
  • Enforcing PEP-8 in
1d722015 02/04/2011 01:36 pm Vassilios Karakoidas
  • Enchance FlavorTest and fixed a bug in Flavor
e8fa4283 02/04/2011 12:30 pm Vassilios Karakoidas
  • Add tests for Flavor model
  • cost_active and cost_inactive are now returned correctly
cb2e4505 02/04/2011 11:51 am Vassilios Karakoidas
  • Added test for credit allocator
05a90a5b 02/03/2011 09:57 pm Vassilios Karakoidas
  • Messing with the Flavor and FlavorCostHistory; define two new properties to easily obtain active and inactive costs
e107ee57 02/03/2011 03:23 pm Markos Gogoulos

a few changes on the handlers in order to work with the rapi (since we now have access).

f5ad2956 02/03/2011 02:40 pm Markos Gogoulos

removed id_from_instance function from the VirtualMachine model and put it back since it will be needed as a global function
to be imported by handlers and not as a staticmethod of the VM model.

224b5e19 02/03/2011 02:25 pm Markos Gogoulos

changed name of ganeti_id and prefix to backend_id and backend_prefix_id

100a9bec 02/02/2011 07:26 pm Vassilios Karakoidas
  • Add staticmethod decorator/annotation in id_from_instance_name
6c9a62b5 02/02/2011 07:20 pm Vassilios Karakoidas
  • Move method id_from_instance_name to VirtualMachine as static method
  • Fix to include ganeti correctly
41b972e6 02/02/2011 07:12 pm Vassilios Karakoidas
  • Add FlavorCostHistory
  • Remove cost_active, cost_inactive from Flavor (Charger is broken)
b90da243 02/02/2011 05:04 pm Vassilios Karakoidas
  • Fix naming, comments in various methods
  • BillAllocator is properly renamed as BillCalculator
d8e682ed 02/01/2011 10:11 am Vassilios Karakoidas
  • VirtualMachine model now includes charging method (
  • CreditAllocator now performs the correct query (
  • Various minor fixes
dcfc6c2d 01/31/2011 02:51 pm Vangelis Koukis

Minor fixes to verbose_name fields.

verbose_name fields must be in singular, per
verbose_name_plural can be used if a plural form is needed.

378bf5b7 01/31/2011 02:39 pm Vangelis Koukis

Minor fixes per PEP 257 [please fix as desired],
minor fix to flavor names [CxxRyyDzz].

fcbc5bb3 01/31/2011 02:28 pm Vassilios Karakoidas

Playing with tabs and spaces

fa672379 01/31/2011 02:13 pm Vassilios Karakoidas

CreditAllocator is complete

5b32775a 01/31/2011 12:39 pm Vassilios Karakoidas

Minor corrections in CreditAllocator and Models

9dbe70f8 01/29/2011 01:43 pm Markos Gogoulos

a few changes regarding the VirtualMachines id and ganeti id.

  • on api/ : VirtualMachineName function removed (no need to be on the handlers)
  • db/ added id_from_instance_name function and property ganeti_id on VM models . These are needed to get the Django id...
38684389 01/26/2011 05:12 pm Markos Gogoulos

added Image model and updated to include it as well

be7b8d37 01/26/2011 12:25 pm Vassilios Karakoidas
  • Updated models for db
00318048 01/26/2011 11:28 am Vassilios Karakoidas
  • Model is a property now