- 18 Sep, 2013 1 commit
-
-
Kostas Papadimitriou authored
-
- 17 Sep, 2013 3 commits
-
-
Kostas Papadimitriou authored
when helpdesk users search using ip address
-
Christos Stavrakakis authored
In case creating a VM fails before the OP_INSTANCE_CREATE job is enqueued in Ganeti, the VM and its NICs must be deleted, and the resources must be released from Quotaholder, which is exactly what is done when a VM is deleted from Ganeti. Instead of duplicating the code, this commit uses the same function that is used by snf-dispatcher, by mocking an successfully OP_INSTANCE_REMOVE.
-
Christos Stavrakakis authored
Commit #32a0b85, modified server creation, by refetching the object from DB after issuing commission to quotaholder. However, the new object is not having the 'config_url' attributed, which is added to the vm object by the 'vmapi'. This commit, fixes this by moving the signal dispatching code after refetching the vm. Also, this commit makes more clear the exception handling code, when the creation job can not be enqueued to Ganeti.
-
- 16 Sep, 2013 2 commits
-
-
Giorgos Korfiatis authored
Set backend to None if not specified.
-
Olga Brani authored
FOOTER_EXTRA_MESSAGE setting appears above Copyright message at the Compute templates and the Dashboard UI. Accepts html tags.
-
- 13 Sep, 2013 1 commit
-
-
Christos Stavrakakis authored
Simplify code by removing unnecessary temp variable.
-
- 12 Sep, 2013 3 commits
-
-
Giorgos Korfiatis authored
Call to issue_and_accept_commission saves the resource object (eg a vm) and commits the transaction. This has the side-effect that the resource object becomes stale: its lock is released and another thread may acquire it and update the db record. It is thus not safe to further update and then save the stale object, since this would override others' changes. Instead, lock and fetch the object again, where needed.
-
Giorgos Korfiatis authored
Ensure that a commission to release vm resources is issued only once. If a vm is marked `deleted', then resources must have already been released.
-
Giorgos Korfiatis authored
Remove trailing slash from the endpoints' publicURL field in service definitions. These values end up in the response of POST /tokens, and, according to the keystone API, should not end in slash. A trailing slash breaks some clients, which do no proper checking before appending a suffix. Note that these URLs are not meant to act as a base path in the strict semantics of http://tools.ietf.org/html/rfc3986#section-5.2.3 . Suffixes should be merged into by a simple append (modulo catering for the joining slash). URLs are still configured as groups per prefix ending in a slash, eg: '^account/' and '^ui/'. Permanent redirects are added for all non-API endpoints (ui, helpdesk, admin, etc), so that `BASE_PATH/path' leads to `BASE_PATH/path/'.
-
- 11 Sep, 2013 1 commit
-
-
Christos Stavrakakis authored
-
- 06 Sep, 2013 1 commit
-
-
Christos Stavrakakis authored
This commit reverts commits #07602322 and #30514662 which introduced a bug in dispatcher's logic. These commit fixed the issue that, in a case the Cyclades DB is unsynced with Ganeti, a resource that does not exist in the Ganeti backend, it will not be deleted from DB in case the remove job fails. This commits fixes this issue, by quering Ganeti each time a failed OP_INSTANCE_REMOVE or OP_NETWORK_REMOVE is processed.
-
- 30 Aug, 2013 1 commit
-
-
Christos Stavrakakis authored
-
- 19 Jul, 2013 1 commit
-
-
Kostas Papadimitriou authored
in default RDP connection profile served by synnefo
-
- 12 Jul, 2013 1 commit
-
-
Kostas Papadimitriou authored
How vm connection user gets resolved: - Use the last user in `users` vm metadata if exists - Use the last user in `users` vm image metadata if exists - Use root if vm's image osfamily metadata is Linux - Use Administrator if vm's image osfamily metadata is windows
-
- 11 Jul, 2013 2 commits
-
-
Kostas Papadimitriou authored
use libguestfs naming convention redhat -> rhel suse -> opensuse (also cloned as sles)
-
Christos Stavrakakis authored
Make the pool size of the pithos backends a configurable setting, namely PITHOS_BACKEND_POOL_SIZE.
-
- 08 Jul, 2013 2 commits
-
-
Christos Stavrakakis authored
Same as commit 0514662, but for servers.
-
Christos Stavrakakis authored
-
- 04 Jul, 2013 1 commit
-
-
Christos Stavrakakis authored
Delete network from DB when job fails but the action of network is DESTROY. This case appears when someone tries to remove a network that has been deleted from Ganeti backend, but not yet from DB.
-
- 03 Jul, 2013 2 commits
-
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
Change server reconciliation, to get the instances from DB after getting instances from Ganeti, to decrease the possibility for races.
-
- 02 Jul, 2013 1 commit
-
-
Christos Stavrakakis authored
Fix bug in snf-dispatcher causing wrong updates of VMs from ganeti. Creation if instance diagnostics must run inside a transaction, because otherwise, the lock of the vm (select_for_update) is released too early. Specifally, 'if_update_required' takes a lock on the VM and checks if the timestamp of the message is newer than the one in the VM. If diagnostic creation ('create_instance_diagnostic' function) does not run inside a transaction, the lock is released when the diagnostic row is inserted in the DB. However, after storing the diagnostic, the VM is saved in order to update the 'updated' timestamp (otherwise, MODIFIED_SINCE does not work correctly). In the meantime, another message may update the VM, and this update will be lost. This commit wrap 'create_instance_diagnostic' inside transaction to fix this issue.
-
- 28 Jun, 2013 2 commits
-
-
Christos Stavrakakis authored
-
Stratos Psomadakis authored
-
- 25 Jun, 2013 3 commits
-
-
Christos Stavrakakis authored
This reverts commit cf2241c45a22dac71e31dbf32f4700c475804c12.
-
Christos Stavrakakis authored
muliprocessing is included in python 2.6
-
Christos Stavrakakis authored
Speed up reconciliation by using mulitprocessing to get in parallel the instances from all Ganeti backends.
-
- 21 Jun, 2013 1 commit
-
-
Christos Stavrakakis authored
This commit fixes a bug that caused backend allocator to send archipelago VMs backends to backends not in ARCHIPELAGO_BACKENDS setting. The flavor disk template is parsed before the backend allocation, so the disk_template at this point is ext and not ext_vlmc, as it was expected.
-
- 19 Jun, 2013 5 commits
-
-
Olga Brani authored
-
Georgios D. Tsoukalas authored
-
Christos Stavrakakis authored
vmapi skippede from commit 269ac8d.
-
Christos Stavrakakis authored
Speed up reconciliation, by increasing the time interval to get Ganeti job status for VMs in building state.
-
Christos Stavrakakis authored
Fix deadlock between snf-dispatcher and backend allocator, by making snf-dispatcher take an exclusive lock to the backend which hosts the vm, before trying to get the exclusive locks to the IP pools in order to reserve and release the instance IPs.
-
- 18 Jun, 2013 2 commits
-
-
Kostas Papadimitriou authored
-
Kostas Papadimitriou authored
-
- 17 Jun, 2013 4 commits
-
-
Christos Stavrakakis authored
Dummy implementation of /extensions/<alias> endpoint that always returns 404.
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
-
Kostas Papadimitriou authored
-