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
Merge branch 'master' of https://code.grnet.gr/git/synnefo
fix bug in CreditAllocatorTestCase (bad data initialisation)
documentation
AccountingLog test is finished; most charger-related operations are ready and tested
Setup/TearDown AccountingLogTestCase is finished
VM owner is derived from the Image
FlavorCostHistoryTestCase is complete
Flavor.get_price_list() should query with filter, not get
FlavorTestCase works as intended; Add FlavorCostHistoryTestCase (in progress)
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
Make ZMQ thread in db_controller stoppable.
Make db_controller run all 0mq operations in a separate StoppableThreadwith a stop() method. The main thread calls it, then publishes on an in-procPUB socket to interrupt any zmq_recv() call and join the thread when cleaning...
creation of ImageMetadata model
added get_vmid on Image model to return the first VMs id, if any. This was the serverid variable
unit testing now works for CreditAllocator
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.
Use zmq_recv() in dedicated thread in db_controller.
It seems Python can only do signal processing in the main thread.If the main thread calls zmq_recv(), no exceptions get raisedwhen a SIGINT is received for example.
WIP:This moves the zmq_recv() to a separate thread, while the main...
Fix: fixtures now works correctly
Fix path issue.
What commit b4141604 should have contained.
The proper contents of commit b4141604 are included here.
Major fixes trying to integrate everything.
added User ForeignKey on Image
initialization of VirtualMachineGroup and VirtualMachineGroupHandler that lists/creates/deletes VirtualMachineGroups
these are groups of virtual machines for a User
Add all custom commands
Add charge_users command
rename creditalloc -> credit_alloc
Added command to invoke credit allocation for users
tests should work now
rename dbcontrol and charger into proper python name
rename to proper python names
Add test case about the virtual machine model (only data are generated so far).
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
Implement init_publisher method
Experimenting with REQ/REP sockets
Work on DBController
Added is almost complete
Fix CreditAllocator
Refactored CreditAllocator and Introduced main
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.
changed the names on the admin.py, since the models have changed
added Image model and updated admin.py to include it as well
Remove testbigeye.py
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/.