History | View | Annotate | Download (13 kB)
Ignore uknown Ganeti opcodes in dispatcher
Have the backend notification handler ignore unknown Ganeti opcodes,such as OP_INSTANCE_QUERY_DATA and OP_INSTANCE_SET_PARAMS.
Add initial networks support
Refs #409
Merge branch 'auth-mechanism' of https://code.grnet.gr/git/synnefo into api-current
Migration, default values for fields in SynnefoUser
Raise if vm is deleted or being built
Fixes #351
Merge branch 'master' into auth-mechanism
Clarify the units of ram and disk
Conflicts: api/fixtures/api_test_data.json api/tests.py
Make most tests pass
Conflicts: settings.py.dist
Fixes to pass some shibboleth related tests
Fix bugs in api/server.py:create_server()
Fix bugs in server creation, in api/server.py:create_server().More specifically: * Make sure to save() the vm object before calling vm.backend_id * Delete the vm instance if the RAPI call fails for any reason * Use different variable names for the server name at the API level...
Authentication token duration settings and autogeneration
Make tests fail gracefully with assertions.
Also correct spelling of the word shibboleth
Add metadata support in Images
Removed description and size from Image model.
Fix create user test case
Some code and fixture data for authentication
Added comment regarding VirtualMachine model
Some coding before enlighting discussion w/ faidon
All VirtualMachine fields are now pubic
charger.py works with the refacctored code
Still refactoring, separating the logic and the ORM layer
Merge branch 'master' into logic-refactoring
Conflicts: db/models.py
return DELETED in _get_rsapi_state - Fixes #293
remove description fields for VM, Image
Ref #185
Removed unused import
Test are now working for db, logic modules
Minor fix in FlavorCost model
Move _get_costs (internal method) to credits.py
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