Statistics
| Branch: | Tag: | Revision:

root / db / models.py @ 41303ed0

History | View | Annotate | Download (19.2 kB)

# Date Author Comment
41303ed0 10/13/2011 12:03 pm Vangelis Koukis

Ignore unknown Ganeti opcodes, refs #1492

ff327b86 10/05/2011 12:27 pm Vangelis Koukis

Merge branch 'api-current'

Conflicts:
README.upgrade

7cc3c7d9 10/03/2011 05:11 pm Giorgos Verigakis

Change Update Metadata to create non-existing keys

Update Metadata methods for servers and images
used to ignore keys that did not exist. This patch
will create them instead.

Refs #1403
Refs #1399

1bd24df6 09/26/2011 12:57 pm Giorgos Verigakis

Add uniqueness constraints to metadata models

Database migration needed.

Refs #1255

3ca7ac27 09/15/2011 01:52 pm Vangelis Koukis

Merge branch 'admin'

21d8adbf 09/14/2011 06:01 pm Vangelis Koukis

Fix handling of unknown Ganeti opcodes

Fix handling of unknown Ganeti opcodes, make sure the corresponding
messages are ACKed by the dispatcher and not left in the MQ.

Refs #1035, #1111

2c60cbef 09/14/2011 12:13 pm Giorgos Verigakis

Add deleted states in Flavor and SynnefoUser

A database migration is needed.

Refs #1055

e113fa0b 09/07/2011 05:33 pm Vangelis Koukis

Merge branch 'images'

a570aa16 09/07/2011 05:31 pm Giorgos Verigakis

Add Admin account type

Make testbed user Admin by default.

8490bf84 08/31/2011 03:32 pm Giorgos Gousios

Add forgoten Ganeti op-status opcodes

Refs: #1031

38126ea5 08/30/2011 06:33 pm Nikos Skalkotos

Add support for extdump Images

704263b4 08/03/2011 11:33 am Nikos Skalkotos

Add support for ntfsdump images

19da4325 07/25/2011 02:21 pm Vangelis Koukis

Extend API to report build progress

Extend the API layer to report server build progress,
make the buildpercentage field a mandatory field with default value,
in the relevant South migration.

c25cc9ec 07/25/2011 01:23 pm Vangelis Koukis

Update handling of 'ganeti-create-progress' notifs

Update handling of 'ganeti-create-progress' notification messages: * update format of 'ganeti-create-progress' notifications * update relevant unit test accordingly * numerous PEP8 fixes in logic and api test code

9068cd85 07/21/2011 06:08 pm Giorgos Gousios

Process build progress update notifications

Catch build progress update messages from AMQP, process and store them in the database. Test to store the processing operations

Refs: #885

bd3318fb 07/17/2011 01:20 pm Giorgos Verigakis

Fix copy-paste error

844ff4db 07/13/2011 04:40 pm Giorgos Gousios

Small changes in invitation code

-Autoredirect invited user to application root
-Print debug message with invitation URL
-Fix error in Invitations.__unicode__

9f8ad4c5 07/06/2011 04:06 pm Giorgos Gousios

Configurable number of invitations per invitation level

Refs: #439

3d9ae008 07/01/2011 05:31 pm Vangelis Koukis

Merge branch 'images'

Conflicts:
README.deploy
db/fixtures/images.json

85c6267a 07/01/2011 10:32 am Giorgos Gousios

Merge branch 'api-current' into helpdesk-gui

Conflicts:
aai/shibboleth.py

77184fa1 06/30/2011 04:19 pm Giorgos Gousios

Merge branch 'logging' into api-current

Conflicts:
logic/backend.py

33e00f02 06/28/2011 03:42 pm Giorgos Gousios

Per user invitation limits

refs: #705

2987cd8a 06/28/2011 12:30 pm Giorgos Verigakis

Minor refactoring

0bc9e367 06/28/2011 10:27 am Giorgos Gousios

Merge branch 'api-current' into helpdesk-gui

Conflicts:
settings.py.dist

26563957 06/24/2011 06:10 pm Giorgos Verigakis

Add a PROTECTED firewall profile

Refs #659

32c20e24 06/21/2011 02:46 pm Giorgos Gousios

Merge branch 'api-current' into helpdesk-gui

a191bd4d 06/21/2011 01:07 pm Giorgos Verigakis

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

Conflicts:
api/images.py
api/networks.py
contrib/ganeti-hooks/kvm-vif-bridge
db/fixtures/images.json
db/models.py
logic/backend.py
logic/tests.py
settings.py.dist
tools/cloud

5ac53b64 06/20/2011 03:35 pm Giorgos Gousios

Add helpdesk user group

Helpdesk users are registered statically using the HELPDESK user type.
The middleware will only allow impersonation requests from helpdesk
users.

75768d0e 06/20/2011 02:54 pm Giorgos Verigakis

Add a public attribute to Images

list_images now returns images that either match the owner, or
that are marked as public.

Fixes #555

Database migration needed.

48130e66 06/17/2011 01:10 pm Giorgos Gousios

License headers for various files

refs #581

badc49b3 06/14/2011 03:59 pm Giorgos Gousios

Adds fields tmp_auth_token and tmp_auth_token_expires to SynnefoUser

dd0e2b2d 06/14/2011 03:08 pm Giorgos Gousios

Support for creating one-off user tokens

27ccb60f 06/09/2011 04:37 pm Constantinos Venetsanopoulos

Add the 'ntfsclone' Image format in models.py

f533f224 06/03/2011 04:35 pm Vangelis Koukis

Merge branches api-current and ui-0.4, minor fixes

Merge branches api-current and ui-0.4: * Fix merge conflicts * Fix minor bug in reconciliation mgmt command * Add comments in settings.py.dist * minor PEP8 fixes

e1cb42fe 06/03/2011 02:51 pm Vangelis Koukis

Merge branch 'images-0.4'

a3992827 05/31/2011 07:23 pm Giorgos Verigakis

Make Network and NetworkLink relation explicit

DB migration needed.

797e88b3 05/29/2011 05:59 pm Giorgos Verigakis

Bugfixes

  • Switch from IPAddressField to CharField to make Postgres happy.
  • Do not return addresses if they are empty.

Database migration needed.

64938cb0 05/29/2011 04:37 pm Giorgos Verigakis

Connect networks API with the Ganeti

  • Create Ganeti network link when creating a network.
  • Delete the link when deleting the network.
  • Use a pool of GANETI_MAX_LINK_NUMBER network links.
  • Adding or removing a server from a network requires reboot.

A database migration is needed....

d6fad4ae 05/25/2011 07:12 pm Giorgos Verigakis

Allow owner in networks to be null

Database migration is needed.

d44c236b 05/25/2011 06:23 pm Giorgos Verigakis

Refactor networks

  • VirtualMachines can have a number of nics that are attached to networks.
  • Networks can also be public
  • VirtualMachines can be attached to public networks that they don't own.
  • There is a special public network (id 1) that can't be deleted....
b7d29d41 05/25/2011 02:40 pm Constantinos Venetsanopoulos

Add initial support for different Image formats

Initial support for choosing between different Image formats:

  • New field in Image model (migration needed)
  • New lvm Image in fixtures
  • Minor fixes
c9fdfa27 05/20/2011 11:22 am Giorgos Gousios

Add expires field for auth token

Refs: #483

1ef58e5b 05/13/2011 07:09 pm Constantinos Venetsanopoulos

Initial commit for Image Support in Synnefo

Add Image Support in Synnefo, more specifically: * Add fixtures for 4 actual images * Add two more fields in Image model (backend_id, format) * Commit South migration for Image model * Modify create_instance() in logic/backend.py to pass OS parameters...

84ae2c4c 05/12/2011 11:17 pm Giorgos Gousios

Construct a username from a real name

4f8b91cd 05/11/2011 02:27 pm Giorgos Gousios

Skeleton invitations app code and model

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.

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

Add initial networks support

Refs #409

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

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

Raise if vm is deleted or being built

Fixes #351

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

Merge branch 'master' into auth-mechanism

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

Clarify the units of ram and disk

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

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

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.

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

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

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)
6bffabbd 03/28/2011 10:06 pm Vassilios Karakoidas

charger.py works with the refacctored code

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

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

allow the destruction of suspended vms

d174b105 02/27/2011 01:09 pm Vassilios Karakoidas

Changed models to match current specification

  • Rename AccountingLog -> Debit
  • FlavorCostHistory -> FlavorCost
  • Tests are broken (work in progress)
  • CreditAllocator is broken
7b4b06a2 02/25/2011 08:50 pm Markos Gogoulos

removed get_vmid and vm_id from Image

since sourcevm field has been added

d6094a56 02/25/2011 04:24 pm Constantinos Venetsanopoulos

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

e171c0be 02/25/2011 12:26 pm Vangelis Koukis

Fix bug in VirtualMachine.start_action().

Modify start_action() to set self.deleted/suspended.