Statistics
| Branch: | Tag: | Revision:

root / db @ 5509b599

# Date Author Comment
26fef2b9 05/10/2011 02:08 pm Vangelis Koukis

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.

f891db99 05/10/2011 01:45 pm Vangelis Koukis

Merge branch 'synnefo-rabbit' into ui-0.3

97e56881 05/10/2011 01:17 pm Vangelis Koukis

Fix test token duration, minor bug in API

Modify db/fixtures/initial_data.json and settings.py.dist to
fix the duration of the test token.

Fix minor bug in api/util.py when no valid SynnefoUser
could be found or the provided X-Auth-Token was invalid.

6e8c2217 05/03/2011 01:28 pm Georgios Gousios

More appropriate location and naming

23c84263 05/03/2011 01:27 pm Georgios Gousios

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

0269afd6 05/03/2011 12:29 pm Giorgos Verigakis

Add initial networks support

Refs #409

a9543e4c 05/02/2011 05:54 pm Giorgos Verigakis

Add an owner to the image fixtures

5d081749 05/02/2011 05:03 pm Georgios Gousios

Dynamic configuration of queues from settings.py

This commit enables test users to bind arbitrary functions in response
to queued messages, using the topic queue pattern

http://www.rabbitmq.com/tutorials/tutorial-five-python.html

refs: #393

f30730c0 05/02/2011 02:22 pm Georgios Gousios

Support for deleting existing queues

78e2d194 05/02/2011 01:14 pm Georgios Gousios

Refactored to a class, prepare for multiprocessing

fde763c3 05/02/2011 10:13 am Georgios Gousios

Init more queues

8d8ea051 04/28/2011 04:15 pm Georgios Gousios

Convert db_controller to a generic event consumer

Will also rename the program, as it will act as system's generic event
dispatcher. Event and event handler bindings are static for now, but
this will problably change.

da102335 04/28/2011 02:12 pm Georgios Gousios

Remove 0mq based code

939bcaf2 04/27/2011 02:52 pm Georgios Gousios

Use plain amqplib instead of carrot

2b3c320b 04/27/2011 10:55 am Georgios Gousios

Sloppy rewrite of db_controller for RabbitMQ

84523ab8 04/19/2011 05:49 pm Giorgos Verigakis

Merge branch 'master' of https://code.grnet.gr/git/synnefo into api-current

4e8566e4 04/19/2011 04:04 pm Vangelis Koukis

Merge branch 'network-api'

2370eef6 04/19/2011 03:54 pm Vangelis Koukis

Merge branch 'api-current'

6bf213b8 04/19/2011 12:21 pm Giorgos Verigakis

Merge branch 'auth-mechanism' of https://code.grnet.gr/git/synnefo into api-current

cfe9f88c 04/19/2011 12:18 pm Georgios Gousios

Migration, default values for fields in SynnefoUser

175ffa73 04/19/2011 11:49 am Giorgos Verigakis

Merge branch 'auth-mechanism' of https://code.grnet.gr/git/synnefo into api-current

dac67c0a 04/18/2011 10:45 pm Vangelis Koukis

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:...

bc5f2964 04/18/2011 04:06 pm Georgios Gousios

Merge branch 'master' into auth-mechanism

5231a38a 04/15/2011 07:08 pm Giorgos Verigakis

Raise if vm is deleted or being built

Fixes #351

c5dc59f3 04/15/2011 05:33 pm Markos Gogoulos

Merge branch 'master' into ui-0.2

610d6c8b 04/15/2011 03:54 pm Georgios Gousios

Merge branch 'master' into south-integration

3d1cb728 04/15/2011 03:48 pm Georgios Gousios

Missing file

733ab79b 04/15/2011 11:14 am Georgios Gousios

Merge branch 'master' into auth-mechanism

fe3d222b 04/15/2011 11:11 am Georgios Gousios

Merge branch 'master' of https://code.grnet.gr/git/synnefo

0801edcf 04/14/2011 09:10 pm Christos Psaltis

Merge master to ui-0.2

80da6543 04/13/2011 12:37 pm Giorgos Verigakis

Clarify the units of ram and disk

e2664ada 04/13/2011 11:51 am Vassilios Karakoidas

Wallet renamed to credits in fixtures (db)

602ebb17 04/12/2011 04:41 pm Vassilios Karakoidas

Add initial migration with south

cc2d9e9c 04/12/2011 04:23 pm Vassilios Karakoidas

Clean-up branch from migrations new_south_test_field = models.IntegerField(default=1) new_south_test_field = models.IntegerField(default=1)

52ddd0e7 04/12/2011 01:31 pm Georgios Gousios

Merge branch 'master' into auth-mechanism

Conflicts:
api/fixtures/api_test_data.json
api/tests.py

10532027 04/12/2011 10:33 am Constantinos Venetsanopoulos

Added Image Metadata (OS, kernel) in fixtures

664a3878 04/11/2011 04:54 pm Vassilios Karakoidas

Added example that renames a field in SynnefoUser model

9ad94f0a 04/11/2011 03:50 pm Vassilios Karakoidas

Writing some introductory south examples based on synnefo models.

  • Update README.develop to contain a small guide regarding database
    migration policy
a25243b5 04/11/2011 11:34 am Vassilios Karakoidas

Integration with south

  • Loading south app in settings.py
  • Performed initial migration ./manage.py schemamigration db
44e6ec18 04/07/2011 09:45 pm Vangelis Koukis

Fix broken db_test_data.json wrt to Image model

Removing the description field from the Image model
and moving it to ImageMetadata broke the fixtures in
db_test_data.json and the associated tests of the db app.

Tests for api, db, logic run properly.

faa26af8 04/07/2011 01:36 pm Georgios Gousios

Make most tests pass

df50f56f 04/06/2011 06:12 pm Georgios Gousios

Merge branch 'master' into auth-mechanism

Conflicts:
settings.py.dist

1896d262 04/06/2011 06:08 pm Georgios Gousios

Fixes to pass some shibboleth related tests

76ba77c1 04/05/2011 08:54 pm Vangelis Koukis

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...

498728a8 04/05/2011 08:02 pm Vangelis Koukis

Fix Image fixtures, remove size attribute

Fix the fixtures for the Image model, removing references
to the size attribute, which no longer exists in the Image model
since commit 838c404d4.

Also fix unloadable fixtures, by removing stray comma chars
in JSON.

938e89ab 04/05/2011 04:28 pm Georgios Gousios

Authentication token duration settings and autogeneration

dd53338a 04/05/2011 02:16 pm Georgios Gousios

Make tests fail gracefully with assertions.

Also correct spelling of the word shibboleth

432fc8c3 04/05/2011 01:21 pm Giorgos Verigakis

Add metadata support in Images

Removed description and size from Image model.

808351b9 04/05/2011 10:55 am Georgios Gousios

Merge branch 'master' of https://code.grnet.gr/git/synnefo into auth-mechanism

f7cac984 04/04/2011 11:52 pm Markos Gogoulos

add description and size as metadata on db/fixtures/images

76cc889c 04/04/2011 02:11 pm Georgios Gousios

Fix create user test case

de53d31c 04/04/2011 01:03 pm Georgios Gousios

Merge branch 'master' into auth-mechanism

85bb192a 04/04/2011 12:55 pm Georgios Gousios

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 is
referenced from it.

420f2c20 04/04/2011 12:16 pm Georgios Gousios

Some code and fixture data for authentication

73b2b65e 04/01/2011 07:36 pm Vassilios Karakoidas

Added comment regarding VirtualMachine model

ef39e7ee 04/01/2011 04:52 pm Georgios Gousios

Some coding before enlighting discussion w/ faidon

b46e0e43 03/31/2011 02:40 pm Georgios Gousios

Fix typo, spotted by vkoukis

234f8b07 03/31/2011 01:43 pm Vangelis Koukis

Fix breakage caused by the logic-refactoring merge

This commit fixes some breakage caused by the recent merge of
the logic-refactoring branch, mainly related to db/db_controller.py.

The main reason was the different value of import path, fixed by
making sure all imports are rooted in synnefo....

dfd19c2d 03/30/2011 09:47 pm Vassilios Karakoidas

All VirtualMachine fields are now pubic

  • Update VirtualMachine reference in all modules
  • Updated fixtures accordingly (and tests)
a9b86546 03/30/2011 04:10 pm Vassilios Karakoidas

Merge branch 'master' into logic-refactoring

Conflicts:
README

738c4d47 03/29/2011 03:23 pm Georgios Gousios

Fix yet more relative imports

9cedbaf2 03/29/2011 02:33 pm Georgios Gousios

Use non-relative import statements, as per Python's style guide.

d972c81f 03/29/2011 02:10 pm Georgios Gousios

Remove non-existent description field

6bffabbd 03/28/2011 10:06 pm Vassilios Karakoidas

charger.py works with the refacctored code

c63e332f 03/28/2011 06:41 pm Vassilios Karakoidas

Merge branch 'master' into logic-refactoring

Conflicts:
db/db_controller.py

c7b808db 03/28/2011 04:21 pm Dimitris Moraitis

move GANETI_ZMQ_PUBLISHER option to settings

8d97deff 03/28/2011 03:53 pm Vassilios Karakoidas

Still refactoring, separating the logic and the ORM layer

  • Moved all tests (except one) into the logic app
  • Introduced (again) utils.py, moved miscellaneous functions there
  • models.py has now minimal functionality (ui->logic->db)
183149e6 03/28/2011 02:27 pm Vassilios Karakoidas

Merge branch 'master' into logic-refactoring

Conflicts:
db/models.py

d8b7ab6d 03/24/2011 09:12 pm Dimitris Moraitis

return DELETED in _get_rsapi_state - Fixes #293

4e6f9904 03/23/2011 06:25 pm Markos Gogoulos

remove description fields for VM, Image

  • remove description from VirtualMachine model, handlers and tests
  • return images metadata (as on servers). for now return image.description as image.metadata.meta.key.description

Ref #185

adb39f22 03/23/2011 04:10 pm Vassilios Karakoidas

Removed unused import

c8926262 03/22/2011 08:54 pm Vassilios Karakoidas

Test are now working for db, logic modules

  • Moved methods from utils.py -> credits.py to avoid
    circular dependency
1f0fe1d8 03/22/2011 07:58 pm Vassilios Karakoidas

Minor fix in FlavorCost model

111b2cda 03/22/2011 07:57 pm Vassilios Karakoidas

Move _get_costs (internal method) to credits.py

22e52ede 03/22/2011 07:39 pm Vassilios Karakoidas

Internal method calculate_cost moved to utils.py

02feca11 03/22/2011 07:21 pm Vassilios Karakoidas

Move process_backend_msg to beckend.py

e3a99a08 03/22/2011 06:57 pm Vassilios Karakoidas

Moved id_from_instance_name static method to utils.py

92c53da1 03/22/2011 06:23 pm Vassilios Karakoidas

Refactored charge (from VM model) and fixed unit tests

  • remove backend_id (now it is inline in the model code)
  • charge now resides in credits.py (logic)
  • logic is now a proper django app
  • remove unused backend_id from handlers.py
  • moved unit tests from db -> logic module
7b7f9205 03/22/2011 05:49 pm Vassilios Karakoidas

Moved SynnefoUser methods to logic.credits

  • debit_account moved to credits.py
  • credit_account moved to credits.py
a5c17ad3 03/17/2011 03:49 am Dimitris Moraitis

fix settings import

b175c950 03/11/2011 07:00 pm Vangelis Koukis

Add ability to report REBOOT state

Extend the rsapi_state property of the VirtualMachine model
to report the machine is in REBOOT when there is a pending
OP_INSTANCE_REBOOT request to the Ganeti backend.

a0f83bd2 03/09/2011 08:42 pm Vassilios Karakoidas

Implement unit tests for all charge() related methods

  • Modify the db_test_data.json to assist unit testing.
  • Introduced various refactorings to simplify code
2d405b6a 03/09/2011 05:07 pm Constantinos Venetsanopoulos

Added Image Metadata in fixtures (images.json)

51ee8969 03/08/2011 04:25 am Dimitris Moraitis

Merge branch 'master' of https://code.grnet.gr/git/synnefo

eae0a59a 03/08/2011 04:25 am Dimitris Moraitis

partial auto-refresh

b1699441 03/08/2011 01:12 am Vassilios Karakoidas

Several model function now use transactions

  • Fixed various minor bugs
  • Now two functions use @transation.commit_on_success
  • Removed unused import statement
7afe1874 03/05/2011 05:12 pm Christos Psaltis

set self.suspended to false when starting vm

34a619ae 03/04/2011 10:06 am Vangelis Koukis

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 include
a proper owner value (everything gets to be owned by the single SynnefoUser...

4ffb82dc 03/03/2011 08:24 pm Vassilios Karakoidas

Fixed a minor bug in models.py

  • Fixed a minor bug in model VirtualMachine
  • Added two notes in README
c58091a6 03/03/2011 06:49 pm Vangelis Koukis

Fix db/db_controller.py bug triggering 0mq bug

Fix db/db_controller.py bug triggering 0mq assertion failure
in ganeti-0mqd, by forcing unique ZMQ_IDENTITY strings for each
db_controller instance.

The identity string is built using the hostname where db_controller...

f53a9423 03/03/2011 05:49 pm Vangelis Koukis

Add independent fixtures for the Image model

Add independent fixtures for the Image model in db/fixtures/images.json,
no dependencies from VirtualMachine instances.

8707738f 03/03/2011 03:15 pm Vangelis Koukis

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.

a0d4498a 03/03/2011 01:09 pm Vangelis Koukis

Remove user field from SynnefoUser, minor fixes

Remove the "user" ForeignKey() field from the SynnefoUser model, since
we do not use Django's auth mechanism.
More specifically: * remove user ForeignKey() field * update fixtures for initial data, DB and API tests...

bc9c872b 03/03/2011 12:20 pm Vangelis Koukis

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__()...

3ca38a07 03/02/2011 06:03 pm Vassilios Karakoidas

Many fixes and refactoring in models

  • Simplified code in VirtualMachine._update_state()
  • Added comments in Flavor._get_costs() and other model methods
27816aae 03/02/2011 04:17 pm Vassilios Karakoidas

Added update_state() method (fixes)

  • Rename update_state to new _update_state() method, used by the
    VirtualMachine model internally to update its state. Not to be
    called by external entities.
dac43564 03/02/2011 03:18 pm Vassilios Karakoidas

Added update_state() method

  • VirtualMachine model now has the update_state() method
    to set the _operstate field
  • Modified the other models to user update_state() method
452d2391 03/02/2011 02:29 am Vassilios Karakoidas

Implemented Charger Functionality

  • Re-implemented the tests
  • Added functionality to all charger-related functions
  • Added functionality to the charger itself

The code needs still lots of testing

c0124a81 02/28/2011 10:42 am Dimitris Moraitis

add functional test for the wizard

39d236e9 02/27/2011 10:19 pm Dimitris Moraitis

allow the destruction of suspended vms