- 17 Dec, 2013 1 commit
-
-
Dionysis Grigoropoulos authored
* Add a function logic/utils.py to check the length of a string and raise an API fault with the corresponding message. * Check the length of the name of servers/ports/networks/subnets
-
- 22 Nov, 2013 1 commit
-
-
Christos Stavrakakis authored
Add 'name' attribute to newly created NICs. Currently, the name of the NICs will not be used to refer to NICs, as it will be in Synnefo 0.15. Names are added only to ease the migration to version 0.15. Also, this commit updates snf-dispatcher to preserve the name of the NIC, if any, when updating instance NICs. Finally, the commit updates handling of firewall tags by adding a second tag that contains the name of the NIC. The tags with the name of the NICs will be kept in Synnefo 0.15, and the old tags with the index of the NIC will be removed.
-
- 09 Oct, 2013 2 commits
-
-
Christos Stavrakakis authored
Parse the fields of the Ganeti command, to distinquish between 'CONNECT' and 'DISCONNECT' in case of 'OP_INSTANCE_SET_PARAMS'.
-
Christos Stavrakakis authored
Callback functions of snf-dispatcher updated the NICs of a VM by deleting all NICs from DB, and creating the new NICs that were described in the message. However, since NICs have UUIDs, this is no longer required. This commit update callbacks to update the NICs based on their UUID.
-
- 02 Jul, 2013 1 commit
-
-
Christos Stavrakakis authored
Major refactor to cyclades api and logic apps that removes most code from the api views and moves it to logic app, so that the same logic code can be used by different apps (e.g. EC2 API). Code is moved into logic.servers. This commit also introduces the VirtualMachine.task attribute which contains the last issued action to a server. This attribute is set when the corresponding job is sent to Ganeti, and is cleared upon completion of the corresponding job (task_job_id attribute). Until the task is completed, no other action is allowed on the VM. The only exception is 'DESTROY' action which is always allowed. Actions on VMs with uncompleted tasks results in a bad request fault. Also, some actions are not allowed if the operating state of the VM is not correct. For example, it is not allowed to start or resize a running VM. The running task is also exposed to the API (SNF:task_state), and the available states are: * BUILDING * STARTING * STOPPING * REBOOTING * DESTROYING * RESIZING * CONNECTING * DISCONNECTING Also, this commit introduces two quotable resources, the 'active_ram' and 'active_cpu' representing the ram and cpu of running instances, specifically the instances in 'STARTED', 'BUILD' and 'ERROR' operstate. In order to count quotas for these resources, commissioning is needed when starting, stopping and rebooting instances. Also, the destroy commissioning is different if the vm is running or is stopped. Finally this commit changes the way commissioning is used in snf-dispatcher. Until now dispatcher only accepted or rejected commissions issued by the API. This commit introduces extra logic in dispatcher, to issue commissions for every quotable change, if a commission for this change has not already been issued by the API. This enables the administrator to do whatever action in the Ganeti backend without resulting in unsynced quotas. If a new commission is required, the previous commission for the VM by the API (if existing) will be rejected, since this commission will reflect a different change in the VM.
-
- 18 Feb, 2013 1 commit
-
-
Christos Stavrakakis authored
-
- 01 Feb, 2013 1 commit
-
-
Christos Stavrakakis authored
-
- 20 Dec, 2012 1 commit
-
-
Christos Stavrakakis authored
-
- 04 Oct, 2012 1 commit
-
-
Christos Stavrakakis authored
Use deepcopy instead of copy, since the dictionary is nested
-
- 03 Oct, 2012 1 commit
-
-
Christos Stavrakakis authored
-
- 23 Jul, 2012 5 commits
-
-
Christos Stavrakakis authored
Reconcile the contents of each networks IP pool by comparing it with combination of IP pools of all ganeti backends. Add extra option for detecting conflicting IPs.
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
-
- 06 Jun, 2012 1 commit
-
-
Christos Stavrakakis authored
-
- 30 Jan, 2012 1 commit
-
-
Kostas Papadimitriou authored
-
- 23 Jan, 2012 1 commit
-
-
Giorgos Verigakis authored
-
- 24 Nov, 2011 1 commit
-
-
Kostas Papadimitriou authored
since more than one packages exist in repository root
-
- 18 Nov, 2011 1 commit
-
-
Kostas Papadimitriou authored
-
- 13 Sep, 2011 1 commit
-
-
Kostas Papadimitriou authored
-
- 07 Jul, 2011 1 commit
-
-
Faidon Liambotis authored
Instead of importing synnefo.settings directly, import settings from django.conf as it should.
-
- 30 Jun, 2011 1 commit
-
-
Georgios Gousios authored
refs #581
-
- 17 Jun, 2011 1 commit
-
-
Georgios Gousios authored
refs #581
-
- 18 Apr, 2011 1 commit
-
-
Vangelis Koukis authored
Add a draft description of the various services that need to be running for a working Synnefo installation. Add documentation for ganeti-0mqd, db_controller and vncauthproxy. Fix language error in comment in logic/utils.py.
-
- 14 Apr, 2011 1 commit
-
-
Vangelis Koukis authored
Add improved documentation on how the API state is derived based on the internal state of the VirtualMachine instance.
-
- 02 Apr, 2011 1 commit
-
-
Vangelis Koukis authored
Improve handling of server deletions. * Have the API return a server's state as DELETED when the deleted flag has been set in the VirtualMachine model. This makes the server immediately invisible, instead of waiting for an indefinite amount of time for the Ganeti backend to remove the VM. * Set the deleted flag in the VirtualMachine model when Ganeti reports successful removal of an instance. This catches instance deletions initiated by the admin at the Ganeti backend.
-
- 31 Mar, 2011 2 commits
-
-
Markos Gogoulos authored
VirtualMachine models has attribute backendjobstatus instead of _backendjobstatus
-
Vangelis Koukis authored
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. All db and API tests run properly.
-
- 30 Mar, 2011 1 commit
-
-
Vassilios Karakoidas authored
* Update VirtualMachine reference in all modules * Updated fixtures accordingly (and tests)
-
- 28 Mar, 2011 1 commit
-
-
Vassilios Karakoidas authored
* 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)
-
- 22 Mar, 2011 5 commits
-
-
Vassilios Karakoidas authored
* Moved methods from utils.py -> credits.py to avoid circular dependency
-
Vassilios Karakoidas authored
-
Vassilios Karakoidas authored
-
Vassilios Karakoidas authored
-
Vassilios Karakoidas authored
* 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
-