History | View | Annotate | Download (15 kB)
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
Merge branch 'master' of https://code.grnet.gr/git/synnefo
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/.