Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / quotas / __init__.py @ 0c1b6127

History | View | Annotate | Download (12.2 kB)

# Date Author Comment
9122ffab 07/25/2013 04:42 pm Christos Stavrakakis

cyclades: Add 'name' to all commissions.

Make all quotaholder commissions to have a name. Since, Cyclades does
not store the association of a commission with a resource, we include
the resource in the commission name.

8b41683a 07/02/2013 12:31 pm Christos Stavrakakis

cyclades: Make Floating IPs a quotable resource

Add 'cyclades.floating_ip' to quotable resources. Update helper
functions and tests to include this resource.

218de705 07/02/2013 12:31 pm Christos Stavrakakis

cyclades: Mark serial as resolved if auto_accept

Modify 'issue_commission' function to mark the QuotaHolderSerial object
as resolved, if auto_accept option is used.

41a7fae7 07/02/2013 12:31 pm Christos Stavrakakis

cyclades: Major refactor to api and logic apps

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

d1d7ec34 06/10/2013 09:18 pm Christos Stavrakakis

cyclades: Retry requests to quotaholder

18c4414d 06/07/2013 03:15 pm Giorgos Korfiatis

cyclades: Rename service token

Rename CYCLADES_ASTAKOS_SERVICE_TOKEN to CYCLADES_SERVICE_TOKEN for
uniformity.

e3ff6830 06/03/2013 11:49 am Georgios D. Tsoukalas

make synnefo URLs consistent and configurable

https://service.deployment.vendor.tld/service-base/api-prefix/hard/path |___________________________________| |__________| |________| |_______|
BASE_HOST BASE_PATH PREFIX Hardcoded...

499d9bfe 05/31/2013 01:13 pm Christos Stavrakakis

cyclades: Raise 500 for commission errors

Wrap all calls to astakosclient for commissions to raise 500, if any
error other than QuotaLimit(413) occurs.

d195e752 04/30/2013 05:33 pm Christos Stavrakakis

cyclades: Rename 'qh_resolve_commissions' function

Rename 'qh_resolve_commissions' function to 'resolve_commissions'.

d0986bac 04/30/2013 05:05 pm Christos Stavrakakis

Cyclades: remove all quotaholder settings

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

ccfbf77b 04/30/2013 05:05 pm Christos Stavrakakis

Varous fixes to cyclades-usage-verify command

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

2509ce17 04/30/2013 05:05 pm Christos Stavrakakis

cyclades: refactor code relative to commission

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

4ed25171 04/30/2013 05:05 pm Christos Stavrakakis

cyclades: resolve previous commissions

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.

5db3a1e6 04/30/2013 05:05 pm Christos Stavrakakis

cyclades: Check qh resolve commission response

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

629acc65 04/30/2013 05:04 pm Giorgos Korfiatis

cyclades: Use astakosclient for quotas and commissions

656cf771 04/30/2013 05:04 pm Christos Stavrakakis

Various fixes to quotas

bd40abfa 04/08/2013 11:06 am Christos Stavrakakis

Move cloud faults to 'snf_django.lib.api.faults'

Gather all faults from all synnefo projects into common
'snf_django.lib.api.faults'.

642c426e 03/22/2013 05:19 pm Christos Stavrakakis

Fix bug in uses_commission decorator

Distinquish between exceptions in the decorated function and exceptions
in accepting/rejecting the commissions. The first one determines whether
serials should be accepted or rejected, while the second one is an error...

b336e6fa 03/11/2013 06:18 pm Georgios D. Tsoukalas

Fix+move HTTP quotaholder client in synnefo.lib

Allow per-service configuration of the (http) quotaholder client.
Kamaki is no longer needed in service (or ganeti) nodes,
because the client has been moved to snf-common.

Also fix the default quotaholder settings for pithos backend to be disabled...

498b2bd0 02/14/2013 04:26 pm Georgios D. Tsoukalas

correct quotaholder exception imports

e8f8f4aa 02/13/2013 05:29 pm Christos Stavrakakis

Fix bug in DummyQuotaholderClient

DummyQuotaholderClient should count only positive commissions.

5a70b1a3 02/13/2013 05:29 pm Christos Stavrakakis

Add details to OverLimit exception

  • Add details to OverLimit exception, with the values provided by
    kamamaki.clients.quotaholder.exception.CommissionValueException.
  • Fix DummyQuotaholder exceptions
  • Fix DummyQuotaholder checks
68b952f9 02/01/2013 04:52 pm Christos Stavrakakis

pep8 fixes

7f849a28 01/30/2013 12:56 pm Georgios D. Tsoukalas

cyclades: import quotaholder exceptions from kamaki

Because this is where the quotaholder client exceptions come from.

6dbd90c0 12/10/2012 01:14 pm Christos Stavrakakis

Import quotaholder settings only if needed

718a601d 12/01/2012 04:35 pm root

Fix renamed setting

45855947 11/30/2012 02:43 pm Georgios D. Tsoukalas

cyclades: authenticate to quotaholder with token

- initialize quotaholder client with the token from
setting CYCLADES_QUOTAHOLDER_TOKEN

- rename setting USE_QUOTAHOLDER to CYCLADES_USE_QUOTAHOLDER

7ced3e6b 11/29/2012 04:29 pm Christos Stavrakakis

Use CYCLADES_QUOTAHOLDER_URL

e16cf080 11/27/2012 06:01 pm Georgios D. Tsoukalas

set quotaholder urls

- quotaholder base url is of the form 'http://host/quotaholder/v/'
- cyclades setting name set to CYCLADES_QUOTAHOLDER_URL

b14f55b5 11/27/2012 04:13 pm Christos Stavrakakis

Add USE_QUOTAHOLDER setting

Add setting indicating whether to use the Quotaholder service or
use the static limits.

dba149f6 11/26/2012 06:22 pm Christos Stavrakakis

Fix imports relative to quotas

e8f2d02d 11/26/2012 12:40 pm Christos Stavrakakis

Fix quotaholder exception handling

Currently, QuotaholderHTTP returns CallError, with the call_error
attribute indicating the error.

11a54cb9 11/26/2012 12:40 pm Christos Stavrakakis

Implement reconciliation for pending quotas

4ac68aaf 11/26/2012 12:40 pm Christos Stavrakakis

Allocate resources from cyclades entity

Also fix commissioning key

5805fbb1 11/26/2012 12:40 pm Christos Stavrakakis

Convert resource sizes in bytes

900a9fc3 11/26/2012 12:40 pm Christos Stavrakakis

Rename disk to disk_size

457a8ada 11/26/2012 12:40 pm Christos Stavrakakis

Revert "Rename disk to disk_size"

This reverts commit 2d017fc046194d8316096c56d4a32cdf81ce5fcd.

3a334cab 11/26/2012 12:40 pm Georgios D. Tsoukalas

update to use new quotaholder packaging api

bfe7ba3c 11/26/2012 12:36 pm Christos Stavrakakis

Create quotas module

Create quotas module, containing functions for interacting with
the Quotaholder service.