History | View | Annotate | Download (14.7 kB)
Internal method calculate_cost moved to utils.py
Move process_backend_msg to beckend.py
Moved id_from_instance_name static method to utils.py
Refactored charge (from VM model) and fixed unit tests
Moved SynnefoUser methods to logic.credits
Add ability to report REBOOT state
Extend the rsapi_state property of the VirtualMachine modelto report the machine is in REBOOT when there is a pendingOP_INSTANCE_REBOOT request to the Ganeti backend.
Implement unit tests for all charge() related methods
Merge branch 'master' of https://code.grnet.gr/git/synnefo
partial auto-refresh
Several model function now use transactions
set self.suspended to false when starting vm
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 includea proper owner value (everything gets to be owned by the single SynnefoUser...
Fixed a minor bug in models.py
Remove user field from SynnefoUser, minor fixes
Remove the "user" ForeignKey() field from the SynnefoUser model, sincewe do not use Django's auth mechanism.More specifically: * remove user ForeignKey() field * update fixtures for initial data, DB and API tests...
Revert breakage caused by _update_state() commits
Try to revert the breakage caused by commits * dac4356407c446943ff029d1fe931516f3ba4c07 * 27816aaeab44c059466834a556a78931e5b0a9ee * 3ca38a07a0d23fd9bec0c4bc423df863dcf6509c
which caused self.save() to be called in VirtualMachine.__init__()...
Many fixes and refactoring in models
Added update_state() method (fixes)
Added update_state() method
Implemented Charger Functionality
The code needs still lots of testing
allow the destruction of suspended vms
Changed models to match current specification
removed get_vmid and vm_id from Image
since sourcevm field has been added
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
Fix bug in VirtualMachine.start_action().
Modify start_action() to set self.deleted/suspended.
fixed bug on start_action (needed self.deleted instead of deleted)
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 forthe DESTROY and SUSPEND action respectively.
Split initial_data.json, minor fixes in models.py.
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....
Minor fixes in VM model and db_controller.py
Added comments for VirtualMachine attributes pertainingto internal operating state (ACTIONS, OPER_STATES, etc.).
Minor fixes in db_controller.py.
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....
Corrected a comment in Flavor.find_cost()
CreditAllocator now uses Limit according to the changes to the model
Added comment in FlavorCostHistory.find_cost(), also made a minor optimisation
Models are modified to use limit through the model
Initial Disk Management API (DM API) implementation
The DM API is accessible under api/v1.0grnet1/ andit extends the Rackspace Cloud Servers v1.0 APIfor the use of Disks. Notable changes:
Adding/Correcting comments
now Flavor._update_costs uses hasattr
documentation
AccountingLog test is finished; most charger-related operations are ready and tested
VM owner is derived from the Image
Flavor.get_price_list() should query with filter, not get
remove obsolete tests; introduce various corrections/additions in models
datetime.datetime.now is a function, so use datetime.datetime.now()
added violations concept
remove rcredit local variable; credits can have negative value
simplified SynnefoUser a little; remove _total_hours
user can now have negative amount of credits
creation of ImageMetadata model
added get_vmid on Image model to return the first VMs id, if any. This was the serverid variable
updated initial data to test credit allocator testcase
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 manage.py syncdb
to recreate it from fixtures.
Fix: fixtures now works correctly
What commit b4141604 should have contained.
The proper contents of commit b4141604 are included here.
added User ForeignKey on Image
initialization of VirtualMachineGroup and VirtualMachineGroupHandler that lists/creates/deletes VirtualMachineGroups
these are groups of virtual machines for a User
a few changes on the handlers in order to work with the rapi (since we now have access).
removed id_from_instance function from the VirtualMachine model and put it back since it will be needed as a global functionto be imported by handlers and not as a staticmethod of the VM model.
changed name of ganeti_id and prefix to backend_id and backend_prefix_id
Minor fixes to verbose_name fields.
verbose_name fields must be in singular, perhttp://docs.djangoproject.com/en/dev/ref/models/options/.verbose_name_plural can be used if a plural form is needed.
Minor fixes per PEP 257 [please fix as desired],minor fix to flavor names [CxxRyyDzz].
Playing with tabs and spaces
CreditAllocator is complete
Minor corrections in CreditAllocator and Models
a few changes regarding the VirtualMachines id and ganeti id.
added Image model and updated admin.py to include it as well
Add aquarium app to django base project; Modify configuration files appropriately
Renamed User -> OceanUser
Added monthly rate to User model
Fix several errors in db.models
Among other things: * PEP-8 styling conventions * Remove unnecessary primary keys (Django handles those) * Remove ugly column name prefixes * Use singular for class names * Replace the buggy double-PKs with a unique_together...
Definition of models for Django ORM, available under db/.