Statistics
| Branch: | Tag: | Revision:

root @ 4ffb82dc

# Date Author Comment
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.

63597809 03/03/2011 03:57 pm Markos Gogoulos

return progress attribute on servers/images

on images return progress="100" if image.state == ACTIVE, otherwise progress="0"
on servers return progress="100" if server.rsapi_state == ACTIVE, otherwise progress="0"

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

d62113a0 03/02/2011 10:59 pm Markos Gogoulos

add translatable strings

on machines.html

dddb9274 03/02/2011 09:49 pm Markos Gogoulos

make errors translatable

error messages (404, 400, 503, 501 or others) are translatable
The greek translation has been added

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
b772da83 03/02/2011 06:03 pm Vassilios Karakoidas

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

966899d3 03/02/2011 05:45 pm Markos Gogoulos

add attribute description for the machines

on machine's response, as it is with images

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
ffffd5fe 03/02/2011 01:08 pm Markos Gogoulos

improve exception handling on api/handlers

add missing try except blocks on FlavorHandler, ImageHandler, ServerHandler

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

f0858246 03/01/2011 10:16 pm Markos Gogoulos

improve error handling on api/handlers

changed "raise fault.itemNotFound" to "return noContent" on the few cases that it was still in use

01199e0b 03/01/2011 09:44 pm Markos Gogoulos

update api handlers

  • remove power nap code that polls the ganeti job
  • introduce def random_password() that returns a random 8-digit password
    password comprises of upper and lower case ascii chars and numbers
8714499d 03/01/2011 08:48 pm Markos Gogoulos

fix server's name on the create machine wizzard

  • set as vm.name the user requested name
  • send vm.backend_id to Ganeti
54c30633 03/01/2011 08:37 pm Markos Gogoulos

update tests

  • update/extend tests: testServerList, testAPIVersion, testFlavorsDetails, testImagesDetails
ac7188e6 03/01/2011 08:34 pm Markos Gogoulos

remove legacy code, update RS API spec doc link

d2e5f1d1 03/01/2011 05:53 pm Markos Gogoulos

use variables on api tests.py

use variables instead of strings, for server/image/flavor ids

9a6600f3 02/28/2011 02:12 pm Vangelis Koukis

Fix handling of flavor disk size in POST /servers

Make the POST /servers handler convert disk size to MB
before passing it to the RAPI call. The disk field of the Flavor
model is in GB.

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

add functional test for the wizard

3a150bbe 02/28/2011 10:41 am Dimitris Moraitis

restore slider progress

217b2431 02/27/2011 10:27 pm Dimitris Moraitis

fix list view actions, add javascript console logging

2a41dcb0 02/27/2011 10:26 pm Dimitris Moraitis

log unexpected errors

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

allow the destruction of suspended vms

68a49035 02/27/2011 08:35 pm Dimitris Moraitis

consolidate jquery event handlers for rangeinputs in the wizard

3c53cf3a 02/27/2011 08:09 pm Dimitris Moraitis

complete the rename of AccountingLog to Debid - fix breakage

The changes in d174b105e0fb3038bcf69623f3624f99f437ea3f broke the
app and the tests. The AccountingLog class had been renamed but
several references were left using the old name.

Also removed the violation attribute from fixtures since it was...

a050bcf9 02/27/2011 05:16 pm Markos Gogoulos

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

a37690bd 02/27/2011 05:15 pm Markos Gogoulos

fix list machines view

  • use JSON.stringify, as in standard view
  • add start action
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
71642965 02/26/2011 09:29 pm Dimitris Moraitis

create vm action selects requested flavor

and display the right values in the wizard confirmation step

685ab2b6 02/26/2011 06:25 pm Markos Gogoulos

add more unit tests

For example:

  • testServersDetails that tests if the correct servers details are returned by the API
  • testWrongServer that tests if a wrong server is asked if a 404 is returned
  • testActions (reboot, shutdown, start, delete) that test if each action is run as expected
15e11c78 02/26/2011 06:22 pm Markos Gogoulos

fix ServerHandler

update list of acceptable statuses of a job with 'queued' and 'waiting'

8083c77c 02/26/2011 05:28 pm Markos Gogoulos

fixes previous commit

aa6f51fd 02/26/2011 05:24 pm Markos Gogoulos

updated ServerActionHandler

Use json.loads(request.raw_post_data) instead of request.post for actions
Also create VM with name test-server if we are running unit tests
(request.META['SERVER_NAME'] == 'testserver')

52bc1c74 02/26/2011 05:22 pm Markos Gogoulos

update ajax calls for actions

Use JSON.stringify for actions (reboot,shutdown,start,destroy)

5ad45fcc 02/26/2011 12:52 am Dimitris Moraitis

rewrite create handler docstring

a43b7f70 02/26/2011 12:45 am Dimitris Moraitis

improve error handling when creating instance

285a1fa8 02/26/2011 12:20 am Dimitris Moraitis

improve API compliance of the create instance handler

668c1361 02/25/2011 09:00 pm Markos Gogoulos

add unit tests regarding the RS API

added 6 working tests and stubs for 12 more. Two examples:

  • testServerDetails, which checks if the details of a requested
    server returned by the API are the same as on the database.
    Also expects 200 or 203 as the response status code...
f1684357 02/25/2011 08:56 pm Markos Gogoulos

add size+description as image tags on emitter.py

on OSXMLEmitter

d235fdd2 02/25/2011 08:53 pm Markos Gogoulos

added size and fixed serverId on Images listing

7b4b06a2 02/25/2011 08:50 pm Markos Gogoulos

removed get_vmid and vm_id from Image

since sourcevm field has been added

93a10af1 02/25/2011 08:50 pm Markos Gogoulos

add size field to Images listing

c4ca4ac6 02/25/2011 06:35 pm Dimitris Moraitis

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

7de0c985 02/25/2011 06:34 pm Dimitris Moraitis

initial create server tests, still some way to go

49134b6c 02/25/2011 05:33 pm Constantinos Venetsanopoulos

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

0a92f190 02/25/2011 05:32 pm Constantinos Venetsanopoulos

Add VirtualMachineMetadata values in fixtures

6781c0d0 02/25/2011 05:21 pm Dimitris Moraitis

add api test fixtures and test if the API returns the expected number of servers

9d14233e 02/25/2011 04:58 pm Dimitris Moraitis

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

894f6b7e 02/25/2011 04:58 pm Dimitris Moraitis

initial api tests

739bd6e8 02/25/2011 04:37 pm Constantinos Venetsanopoulos

Add values for 'size' and 'sourcevm' in Image fixtures

f29184c6 02/25/2011 04:29 pm Constantinos Venetsanopoulos

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

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

9625c3b3 02/25/2011 04:08 pm Markos Gogoulos

extended Flavors listing to return cpu number as well

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

Fix bug in VirtualMachine.start_action().

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

48223290 02/24/2011 10:08 pm Markos Gogoulos

fixed bug on start_action (needed self.deleted instead of deleted)

b65b1281 02/24/2011 09:56 pm Markos Gogoulos

List available images corrections based on the RS Api

37a57502 02/24/2011 08:33 pm Markos Gogoulos

list details for a specified server, following the rackspace api

1cea389e 02/24/2011 08:20 pm Markos Gogoulos

improved virtual servers filtering . also made a small change regarding /servers

the first change adds field deleted as the filter, while the second one is related with the address tag

c750d1d6 02/24/2011 02:44 pm Vangelis Koukis

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 for
the DESTROY and SUSPEND action respectively.

e336bde6 02/24/2011 01:47 pm Markos Gogoulos

addresses and metadata fields on GET /servers/detail

4daac449 02/23/2011 09:01 pm Vassilios Karakoidas
  • Fixed an syntax error in Flavor (added a comma)
  • Added field inactive in VirtualMachine model
13b3c5ff 02/23/2011 08:10 pm Vassilios Karakoidas
  • Add desccription (verbose_name) to many models in the db/models.py; no need for translation with _()
  • Removed unique=False from Flavor.cpu|ram|disk
3a49d1da 02/23/2011 07:50 pm Christos Psaltis

add boilerplate code for GET flavors

008b3ae8 02/22/2011 08:18 pm Christos Psaltis

Remove table of terminated machines in list view

There is only one table in list view now, which
contains both running and terminated machines.

bf48028e 02/22/2011 08:14 pm Vassilios Karakoidas
  • SynnefoUser.monthly_rate deleted
  • Introduced three limits (MONTHLY_RATE, QUOTA_CREDIT, MAX_VIOLATIONS)
  • Added three test limits in db_test_data.json
  • mothly_rate, credit_quota, max_violations properties are now introduced in SynnefoUser class
b3b54e38 02/22/2011 07:54 pm Vassilios Karakoidas
  • AccountingLogTestCase & VirtualMachineTestCase are noow working properly
966be609 02/22/2011 07:53 pm Vassilios Karakoidas
  • Fixed FlavorTestCase
eb66f1fe 02/22/2011 07:46 pm Vassilios Karakoidas
  • CreditAllocatorTestCase is working now properly
b4808d2b 02/22/2011 07:33 pm Vassilios Karakoidas
  • Image now includes Foreign Key relationship with VirtualMachine (sourcevm)
  • Fixed primary key ranges in db/db_test_data.json
60bf38e1 02/22/2011 06:22 pm Vangelis Koukis

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

dfaa58f7 02/22/2011 03:48 pm Vangelis Koukis

Added share/ to .gitignore.

Added the share/ directory to .gitignore.
We need to migrate away from virtualenv and use native Debian packages.

c92af313 02/22/2011 03:41 pm Vangelis Koukis

Minor fixes in VM model and db_controller.py

Added comments for VirtualMachine attributes pertaining
to internal operating state (ACTIONS, OPER_STATES, etc.).

Minor fixes in db_controller.py.

52194743 02/22/2011 01:57 pm Vangelis Koukis

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

b8bbd09f 02/22/2011 01:51 pm Christos Psaltis

fix reloading after confirmation

dc7c6742 02/22/2011 01:46 pm Christos Psaltis

reload standard view after confirmation

74bb9785 02/22/2011 01:39 pm Christos Psaltis

Correct apearance of actions in standard view

The actions shown for running machines are:

  • reboot
  • shut down
  • more

The actions shown for terminated machines are:

  • start
  • more
5d13042c 02/22/2011 01:32 pm Christos Psaltis

removed focus for actions in standard view

3d6e97af 02/22/2011 01:21 pm Christos Psaltis

change mini seperator order of appearance

e764ccfd 02/22/2011 01:16 pm Christos Psaltis

change color and margin in list view actions

29833195 02/22/2011 01:09 pm Christos Psaltis

moved fixtures to proper folder db/fixtures

6a94c3c4 02/22/2011 01:05 pm Christos Psaltis

renamed fixtures file so it can be called automatically

f5ea24a9 02/21/2011 07:19 pm Markos Gogoulos

documentation added on api/handlers.py

71008c92 02/21/2011 07:02 pm Markos Gogoulos

error message change on ServerHandler

b7a61b3a 02/21/2011 05:31 pm Markos Gogoulos

added better error handling on ImageHandler

43d8f0e4 02/21/2011 04:53 pm Vassilios Karakoidas

Corrected a comment in Flavor.find_cost()

1d5c0637 02/21/2011 04:51 pm Vassilios Karakoidas

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

8bda0440 02/21/2011 04:49 pm Vassilios Karakoidas
  • Removed FlavorCostHistoryTestCase
  • Migrated find_cost test in FlavorTestCase
  • Moved FlavorCostHistory.find_cost() -> Flavor.find_cost()
c18611c8 02/21/2011 04:04 pm Markos Gogoulos

improvements regarding error handling.

  • added exceptions checking for Ganeti Api Errors and Django ORM
  • vm.start_action(action) is called before any action (reboot, shutdown, start, destroy)
  • code cleanout for the ServerActionHandler
1583f11a 02/21/2011 04:01 pm Vassilios Karakoidas
  • Moved Limit.get_limit_from_user() to SynnefoUser.get_limit()
  • CreditAllocatorTestCase is modified accordingly to check the new method
104c3c5f 02/21/2011 12:50 pm Markos Gogoulos

fixed previous commit problems. removed UserLimit from admin.py, since no UserLimit model is on the models.py

c1562706 02/21/2011 01:55 am Vassilios Karakoidas

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

62c6d260 02/21/2011 01:52 am Vassilios Karakoidas
  • Implemented VirtualMachine.get_accounting_logs()
  • Added VirtualMachineTestCase unit test
  • Now the db_test_data adds AccountingLog entries for 1003 VM (also introduced some corrections in Disk models data
  • Working on the charger which is still completelly broken (along with the related test case)
9eef701d 02/21/2011 12:31 am Markos Gogoulos

destroy action sets VM._operstate as 'DESTROYED' and does not call rapi.DeleteInstance to destroy the machine

df9dc46b 02/20/2011 11:43 pm Vassilios Karakoidas
  • Minor comment corrections
e3bc2088 02/20/2011 11:30 pm Vassilios Karakoidas
  • Unit tests are greatly simplified
  • All unit tests are using fixtures