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.
Merge branch 'synnefo-rabbit' into ui-0.3
Fix test token duration, minor bug in API
Modify db/fixtures/initial_data.json and settings.py.dist tofix the duration of the test token.
Fix minor bug in api/util.py when no valid SynnefoUsercould be found or the provided X-Auth-Token was invalid.
More appropriate location and naming
End to end message delivery working
-Move dispatcher methods to seperate file-configure, load and register them dynamically-fix bug in cmd-line parameter parsing
Add initial networks support
Refs #409
Add an owner to the image fixtures
Dynamic configuration of queues from settings.py
This commit enables test users to bind arbitrary functions in responseto queued messages, using the topic queue pattern
http://www.rabbitmq.com/tutorials/tutorial-five-python.html
refs: #393
Support for deleting existing queues
Refactored to a class, prepare for multiprocessing
Init more queues
Convert db_controller to a generic event consumer
Will also rename the program, as it will act as system's generic eventdispatcher. Event and event handler bindings are static for now, butthis will problably change.
Remove 0mq based code
Use plain amqplib instead of carrot
Sloppy rewrite of db_controller for RabbitMQ
Merge branch 'master' of https://code.grnet.gr/git/synnefo into api-current
Merge branch 'network-api'
Merge branch 'api-current'
Merge branch 'auth-mechanism' of https://code.grnet.gr/git/synnefo into api-current
Migration, default values for fields in SynnefoUser
Refactor ganeti-0mqd as daemon, message broker
Refactor ganeti-0mqd to run as a UNIX daemon: * Log under /var/log/synnefo by default * Maintain PID file under /var/run/synnefo * Handle signals gracefully
Refactor ganeti-0mqd to be a 0mq message broker:...
Merge branch 'master' into auth-mechanism
Raise if vm is deleted or being built
Fixes #351
Merge branch 'master' into ui-0.2
Merge branch 'master' into south-integration
Missing file
Merge branch 'master' of https://code.grnet.gr/git/synnefo
Merge master to ui-0.2
Clarify the units of ram and disk
Wallet renamed to credits in fixtures (db)
Add initial migration with south
Clean-up branch from migrations new_south_test_field = models.IntegerField(default=1) new_south_test_field = models.IntegerField(default=1)
Conflicts: api/fixtures/api_test_data.json api/tests.py
Added Image Metadata (OS, kernel) in fixtures
Added example that renames a field in SynnefoUser model
Writing some introductory south examples based on synnefo models.
Integration with south
Fix broken db_test_data.json wrt to Image model
Removing the description field from the Image modeland moving it to ImageMetadata broke the fixtures indb_test_data.json and the associated tests of the db app.
Tests for api, db, logic run properly.
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...
Fix Image fixtures, remove size attribute
Fix the fixtures for the Image model, removing referencesto the size attribute, which no longer exists in the Image modelsince commit 838c404d4.
Also fix unloadable fixtures, by removing stray comma charsin JSON.
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.
Merge branch 'master' of https://code.grnet.gr/git/synnefo into auth-mechanism
add description and size as metadata on db/fixtures/images
Fix create user test case
Fix order of test data to ensure proper insertion
This fixes an issue with DBs with proper referential integrity (e.g.MySQL) where a VM cannot be inserted prior to an Image that isreferenced from it.
Some code and fixture data for authentication
Added comment regarding VirtualMachine model
Some coding before enlighting discussion w/ faidon
Fix typo, spotted by vkoukis
Fix breakage caused by the logic-refactoring merge
This commit fixes some breakage caused by the recent merge ofthe logic-refactoring branch, mainly related to db/db_controller.py.
The main reason was the different value of import path, fixed bymaking sure all imports are rooted in synnefo....
All VirtualMachine fields are now pubic
Merge branch 'master' into logic-refactoring
Conflicts: README
Fix yet more relative imports
Use non-relative import statements, as per Python's style guide.
Remove non-existent description field
charger.py works with the refacctored code
Conflicts: db/db_controller.py
move GANETI_ZMQ_PUBLISHER option to settings
Still refactoring, separating the logic and the ORM layer
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
fix settings import
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
Added Image Metadata in fixtures (images.json)
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
Fix db/db_controller.py bug triggering 0mq bug
Fix db/db_controller.py bug triggering 0mq assertion failurein ganeti-0mqd, by forcing unique ZMQ_IDENTITY strings for eachdb_controller instance.
The identity string is built using the hostname where db_controller...
Add independent fixtures for the Image model
Add independent fixtures for the Image model in db/fixtures/images.json,no dependencies from VirtualMachine instances.
Add README.DB, minor fixes to fixtures
Add new file README.DB with instructions for PostgreSQL and MySQL setups.Modify fixtures to include definition of Images in definition of VMs(vms.json), ensuring referential integrity.
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
add functional test for the wizard
allow the destruction of suspended vms