- 15 May, 2013 1 commit
-
-
Olga Brani authored
-
- 14 May, 2013 2 commits
-
-
Olga Brani authored
-
Olga Brani authored
Emails sent to Astakos Users do not contain greek translations any more. Minor verbal corrections are made and title attribute are added to logos links.
-
- 13 May, 2013 4 commits
-
-
Christos Stavrakakis authored
Do not create private networks when adding a new backend. Since, "lazy networks" this is no longer needed.
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
Implement "lazy networks", which are not created to all Ganeti backends upon creation, but only when an instance that resides in a Ganeti is connected to that network. Update 'create_network' to create the Network object in DB without creating network in Ganeti, or correspoding BackendNetwork entries. The state of the Network becomes 'ACTIVE' upon creation, instead of 'PENDING' that was until now. Also, update 'delete_network' function to delete the network only from the backends that it is not in 'DELETED' state. The state of the network will become 'DELETED' only when all corresponding backend networks become 'DELETED' (including offline backends). Extend code that connects a VM to a network to check if the network already exists and is in 'ACTIVE' state in the Ganeti backend that hosts the VM. If not, it will create the network and then connect the VM (using Ganeti chained-jobs to ensure correct ordering of jobs). Update 'reconcile-networks' management command to work with lazy networks. Specifically, do not check if private networks exist in all backends. Update 'network-add' management command to create the network in the Ganeti, only if a backend is specified. Finally, when using Ganeti chained-jobs to impose ordering of jobs, do not depend only on 'success' of a job, but also on 'error' and 'cancel'. This is needed to cover case that a job fails (e.g. create network) because the resource already exists.
-
Christos Stavrakakis authored
Update create/remove management commands to issue commission when needed.
-
- 10 May, 2013 1 commit
-
-
Sofia Papagiannaki authored
Refs: #3340
-
- 09 May, 2013 4 commits
-
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
-
Olga Brani authored
-
Christos Stavrakakis authored
Use 'urljoin' to compute the 'config_url' parameter.
-
- 08 May, 2013 2 commits
-
-
Olga Brani authored
-
Giorgos Korfiatis authored
-
- 02 May, 2013 1 commit
-
-
Kostas Papadimitriou authored
- Removed /userdata/quota view in respect of astakos quotas api delegate views served in the same urls used by astakos api (/astakos/api/quotas, /astakos/api/resources). Base url is configurable using the UI_ACCOUNTS_API_URL (defaults to /astakos/api). - Refactored quotas js client to use backbone Collection/Model mechanisms. - Refresh quotas using the common api update mechanism used by vms and networks (deprecated UI_QUOTAS_UPDATE_INTERVAL setting) - Extended main view initialization steps to include quotas/resources loading before the initial layout renedring
-
- 01 May, 2013 4 commits
-
-
Giorgos Korfiatis authored
Use commission name "RECONCILE" to distinguish such operations in the quotaholder provision log.
-
Giorgos Korfiatis authored
-
Sofia Papagiannaki authored
Refer to astakosclient instead of quotaholder
-
Giorgos Korfiatis authored
-
- 30 Apr, 2013 21 commits
-
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
Rename 'qh_resolve_commissions' function to 'resolve_commissions'.
-
Christos Stavrakakis authored
Implement managemtn command to export cyclades resources in JSON format, in order to be imported to Astakos.
-
Christos Stavrakakis authored
Remove the following obsolete settings, since their usage is covered by Quotaholder: - MAX_VMS_PER_USER - MAX_NETWORKS_PER_USER - VMS_USER_QUOTA - NETWORKS_USER_QUOTA Also remove 'cyclades-export-quota' management command.
-
Christos Stavrakakis authored
When creating a server, we commit the VM model in DB and reserve the corresponding quotas in Quotaholder before enqueuing the OP_INSTANCE_CREATE job (because messages from dispatcher may arrive before committing). In case enqueuing job to Ganeti fails we must restore the quotas to their previous value. This commit achieves this by issuing a "delete" commission for the VM. Also, instead of deleting the VM entry, we mark the VM as deleted, in order to keep the relation with the Quotaholder serial.
-
Christos Stavrakakis authored
Check Quotaholder response to see if the commissions were accepted or rejected as requested, or failed for some reason. Accepting or rejecting a commission will fail if the commission was already resolved. Since this is sometimes accepted, like when reconciling commissions, this commit extends 'qh_resolve_commissions' function with the 'strict' argument, denoting whether the function should fail if resolving a commissions fails.
-
Christos Stavrakakis authored
Create 'mocked_quotaholder' context manager to bypass commission and use it in Cyclades tests. Also this commit does some various fixes to other tests.
-
Christos Stavrakakis authored
Extend 'issue_and_accept_commission' function to resolve previous unresolved commission, if exists. In order to resolve it, the commission must not be pending, because if it is there is not enough information to resolve it.
-
Christos Stavrakakis authored
Refactor Cyclades code that handles commissioning with Quotaholder. This commit removes the 'uses_commission' decorator. Instead it introduces the 'issue_and_accept_commission' function that is responsible for implenting the commission workflow. This function must be called exactly after and in the same transaction that creates/modifies the resource, because resource creation/modification must happen in the same transaction with issuing and storing the serial in the DB.
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
* Merge 'accepted' and 'rejected' field to 'accept' field. * Add 'resolved' field, indicating whether this commission has been accepted/rejected to Quotaholder * Remove custom save() method. Handle 'pending' field manually. Also add the corresponding database migrations.
-
Christos Stavrakakis authored
Do not consider 0 usage for users and resources that are not included in Quotaholder resources list, since Quotaholder returns zero usage for all users and all resources. If a user/resource does not belong to QH respond then it can not be an Astakos user. Refs #3606 #3491 #3661
-
Christos Stavrakakis authored
Rename 'cyclades-reconcile-commissions' to 'reconcile-commissions-cyclades.' Rename 'cyclades-usage-verify' to 'reconcile-resources-cyclades.'
-
Christos Stavrakakis authored
Extend 'cyclades-usage-verify' management command to cover the usage of 'cyclades-reset-usage' and remove the second one. The new command reconciles resources(usage) by detecting inconsistencies between the usage of resources in Astakos and Cyclades DB and fixing them by issuing a commission with the difference of the usage in DB and Astakos. If there is a pending commission for a resource, reconciliation for this resource is skipped. Refs #3627 Also, make this command do not consider only users that exist in Cyclades DB, but also users that exist in Quotaholder. For such users, it is assumed that they have zero usage for all Cyclades resources. Refs #3606 #3491
-
Christos Stavrakakis authored
Remove from cyclades all settings that were relative with Quotaholder. Remove CYCLADES_USE_QUOTAHOLDER settings, since Cyclades can not work any more without quotas. Remove CYCLADES_QUOTAHOLDER_URL and CYCLADES_QUOTAHOLDER_TOKEN since Quotaholder is merged with Astakos.
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
-
Giorgos Korfiatis authored
-
Christos Stavrakakis authored
Remove 'TRANSLATE_UUIDS' from plankton setting.
-
Christos Stavrakakis authored
Remove 'CYCLADES_USER_CATALOG_URL' and 'CYCLADES_USER_FEEDBACK_URL' settings, since both of them can be derived from 'ASTAKOS_URL' setting.
-
Ilias Tsitsimpis authored
-