Statistics
| Branch: | Tag: | Revision:

root @ 6da04174

# Date Author Comment
6da04174 05/02/2013 11:54 am Giorgos Korfiatis

astakos: Make submit_application arguments explicit

16bcc6e8 05/01/2013 11:39 pm Giorgos Korfiatis

Remove synnefo.lib.quotaholder

Use astakosclient to access the quotaholder instead.

5a6420ec 05/01/2013 11:35 pm Giorgos Korfiatis

astakos: Remove unneeded import of a constant

c8a79b3a 05/01/2013 06:00 pm Giorgos Korfiatis

pithos, cyclades: Name reconciling commissions

Use commission name "RECONCILE" to distinguish such operations
in the quotaholder provision log.

30aca88f 05/01/2013 05:35 pm Sofia Papagiannaki

pithos: Change reconcile-resources-pithos command

in order to conform with the respective Cyclades
command

eee9ec4d 05/01/2013 05:28 pm Giorgos Korfiatis

astakos: Cleanup input of submit_application

Form passes only a tuple (name, limit) for each selected resource,
omitting presentational data.

3966d268 05/01/2013 04:43 pm Giorgos Korfiatis

astakos: Handle pair of exceptions properly

6be5bb34 05/01/2013 03:54 pm Giorgos Korfiatis

astakos: Remove unused project_error_view

82e123f9 05/01/2013 03:33 pm Giorgos Korfiatis

pithos: Define and export resources in json format

Provide management command resource-export-pithos.

860c5d9c 05/01/2013 03:28 pm Sofia Papagiannaki

pithos: Remove obsolete settings from database migrations

Use astakosclient to retrieve user information

df9177e8 05/01/2013 02:35 pm Giorgos Korfiatis

pithos: Add name in reconciling commission

2c2ccd2d 05/01/2013 02:19 pm Giorgos Korfiatis

cyclades: Fix import of urlparse

93d963c4 05/01/2013 12:15 pm Sofia Papagiannaki

Merge branch 'feature-quotas-pithos' into feature-quotas

Conflicts:
snf-cyclades-app/synnefo/plankton/backend.py
snf-pithos-app/README
snf-pithos-app/pithos/api/util.py

20eac451 05/01/2013 12:01 pm Sofia Papagiannaki

Merge branch 'feature-quotas-pithos' of https://code.grnet.gr/git/synnefo into feature-quotas-pithos

71585c27 05/01/2013 12:00 pm Sofia Papagiannaki

pithos: Update merged code

ae6199c5 05/01/2013 12:00 pm Sofia Papagiannaki

pithos: Update pithos management commands

Refs: #3625

8414859f 05/01/2013 12:00 pm Sofia Papagiannaki

pithos: manage_accounts support for both sqlalchemy and sqlite

16f2673e 05/01/2013 12:00 pm Sofia Papagiannaki

pithos: Rename backend quotaholder properties

Refer to astakosclient instead of quotaholder

b17e5550 05/01/2013 12:00 pm Giorgos Korfiatis

WIP astakosclient for quotas in pithos

d1e7d2b4 05/01/2013 12:00 pm Sofia Papagiannaki

pithos: Utilize astakosclient for quota handling

Refs: #3625, #3650

9b264076 05/01/2013 11:58 am Sofia Papagiannaki

pithos:Ensure serial registration before commission

Commit transaction before accepting the commission
and delete registered serials after successful commission.

Refs: #3594

8570576b 05/01/2013 11:58 am Sofia Papagiannaki

pithos: extend sqlite library for commission reconciliation

Refs: #3594

991f60ff 05/01/2013 11:44 am Sofia Papagiannaki

pithos: manage_accounts support for both sqlalchemy and sqlite

52346a89 04/30/2013 08:17 pm Kostas Papadimitriou

Merge branch 'tmp-allow-in-projects' into feature-quotas

37d59b27 04/30/2013 08:09 pm Kostas Papadimitriou

astakos: Resources metadata improvements

- Allow admin to overwrite default resources presentation data using
ASTAKOS_RESROUCES_META setting. dict_merge is used to accomodate admin
from declaring all available metadata parameters.
- Enforce allow_in_projects resource policy in project application...

a971d6fe 04/30/2013 08:08 pm Kostas Papadimitriou

common: Recursive dictionary merge helper method

1ca0dd29 04/30/2013 07:37 pm Sofia Papagiannaki

pithos: Update pithos management commands

Refs: #3625

c78d4fb3 04/30/2013 07:23 pm Christos Stavrakakis

ci: Remove snf-quotaholder-app from ci/config

cd299fe2 04/30/2013 07:20 pm Christos Stavrakakis

ci: clean old docs before building new ones

b8ba6369 04/30/2013 07:20 pm Christos Stavrakakis

ci: install snf-django before webproject

Try to intall 'snf-django-lib' before 'snf-webproject', since the
webproject depends to snf-django.

7585a768 04/30/2013 06:06 pm Giorgos Korfiatis

quotaholder: Allow resolving empty commissions

When resolving a pending commission, handle the case where the commission
has been issued with no provisions.

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

cyclades: Rename 'qh_resolve_commissions' function

Rename 'qh_resolve_commissions' function to 'resolve_commissions'.

638326a0 04/30/2013 05:06 pm Christos Stavrakakis

Merge branch 'feature-quotas-cyclades' into feature-quotas

30096a2e 04/30/2013 05:06 pm Christos Stavrakakis

cyclades: Remove obsolete code for static quotas

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.

4060cac5 04/30/2013 05:06 pm Christos Stavrakakis

Implement resource-export-cyclades command

Implement managemtn command to export cyclades resources in JSON format,
in order to be imported to Astakos.

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

62c86226 04/30/2013 05:05 pm Christos Stavrakakis

cyclades: Rename quotas management commands

Rename 'cyclades-reconcile-commissions' to 'reconcile-commissions-cyclades.'
Rename 'cyclades-usage-verify' to 'reconcile-resources-cyclades.'

39d44eba 04/30/2013 05:05 pm Christos Stavrakakis

reconcile-resources: check that user exists in QH

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

97fffe10 04/30/2013 05:05 pm Christos Stavrakakis

Refactor QuotaHolder serial model

  • 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....
9b964eff 04/30/2013 05:05 pm Christos Stavrakakis

Fix info message of reconcile-resources-cyclades

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.

184a2a8c 04/30/2013 05:05 pm Christos Stavrakakis

Mock quotaholder for Cyclades tests

Create 'mocked_quotaholder' context manager to bypass commission and use
it in Cyclades tests. Also this commit does some various fixes to other
tests.

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

7907af91 04/30/2013 05:05 pm Christos Stavrakakis

Restore quotas if enqueuing job to Ganeti fails

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

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

cyclades: Use astakosclient for quotas and commissions

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

Remove unused 'models' file

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

Various fixes to quotas

72430f03 04/30/2013 05:03 pm Christos Stavrakakis

Merge branch 'feature-use-astakosclient' into feature-quotas

e6fb591c 04/30/2013 05:03 pm Ilias Tsitsimpis

snf-pithos-app: Use astakosclient

468ba00b 04/30/2013 05:03 pm Ilias Tsitsimpis

snf-cyclades-app: Use astakosclient

255cef57 04/30/2013 05:03 pm Christos Stavrakakis

Improve log message

Distinguish exceptions while using AstakosClient to communicate with
Astakos, from the rest API errors.

6e27e449 04/30/2013 05:03 pm Christos Stavrakakis

cyclades: remove redundant settings

Remove 'CYCLADES_USER_CATALOG_URL' and 'CYCLADES_USER_FEEDBACK_URL'
settings, since both of them can be derived from 'ASTAKOS_URL' setting.

a5fbc00d 04/30/2013 05:03 pm Christos Stavrakakis

pithos: remove redundant settings

Remove 'PITHOS_USER_CATALOG_URL' and 'PITHOS_USER_FEEDBACK_URL' and
'PITHOS_USER_LOGIN_URL' settings, since all of them can be derived from
'ASTAKOS_URL' setting.

3e749401 04/30/2013 05:03 pm Christos Stavrakakis

plankton: Remove 'TRANSLATE_UUIDS' setting

Remove 'TRANSLATE_UUIDS' from plankton setting.

ad0efdb3 04/30/2013 05:03 pm Ilias Tsitsimpis

PEP8 style fixes

726cb37f 04/30/2013 05:03 pm Ilias Tsitsimpis

Handle AstakosClientException in api_method decorator

67100dd2 04/30/2013 05:03 pm Ilias Tsitsimpis

PEP8 style fixes

479c3051 04/30/2013 05:03 pm Ilias Tsitsimpis

PEP8 style fixes

81a906f8 04/30/2013 05:03 pm Ilias Tsitsimpis

snf_django.lib.astakos: Use astakosclient

21a9ae81 04/30/2013 05:00 pm Christos Stavrakakis

Merge branch 'develop' into feature-quotas

3fff9189 04/30/2013 04:59 pm Christos Stavrakakis

cyclades: fix bug in server-create command

Make --flavor-id mandatory in 'snf-manage server-create' management
command.

eefb7355 04/30/2013 04:59 pm Christos Stavrakakis

cyclades: Require user when creating private net

Update 'network-create' management command, to require an owner when
creating a private network.

c1ba7f26 04/30/2013 04:28 pm Christos Stavrakakis

Add support for ordering in ListCommand

Make list command order results either by 'order_by' class attribute,
or by primary key.

c8618788 04/30/2013 03:45 pm Giorgos Korfiatis

astakos: Control exposing resources in projects

Add attribute `allow_in_projects' in Resource model (True by default).
Set this flag for astakos.pending_app to False in the description
of astakos resources.

1f5565c3 04/30/2013 02:12 pm Giorgos Korfiatis

astakos: Migrate user settings for pendings_app limit

Provide console script astakos-migrate-0.14.
Also update related upgrade notes.

2cb83537 04/30/2013 12:14 pm Giorgos Korfiatis

Update quota API docs

f8f41aea 04/30/2013 11:56 am Sofia Papagiannaki

pithos: Update merged code

81d415fa 04/30/2013 11:29 am Sofia Papagiannaki

Merge branch 'tmp-pithos-reconcile-commissions' into feature-quotas-pithos

Conflicts:
snf-pithos-backend/pithos/backends/modular.py

08f43648 04/29/2013 07:04 pm Sofia Papagiannaki

pithos: Rename backend quotaholder properties

Refer to astakosclient instead of quotaholder

cc412b78 04/29/2013 05:41 pm Sofia Papagiannaki

pithos: Utilize astakosclient for quota handling

Refs: #3625, #3650

2dcc65dc 04/29/2013 05:38 pm Christos Stavrakakis

astakosclient: Fix bug in checking arguments

46e233b2 04/29/2013 05:30 pm Giorgos Korfiatis

Do not log in transaction decorator

d5f086f2 04/29/2013 05:18 pm Ilias Tsitsimpis

Revert "astakosclient: don't check resolve_commissions' parameters"

This reverts commit da18207e2825b4a0a4cb3abc6a9fbef541eda05b.
Issue resolved by commit 214058a911c5b4b8b3d9108ba891536a0b40dc49.

214058a9 04/29/2013 05:12 pm Christos Stavrakakis

astakosclient: Fix bug in checking arguments

3f5851eb 04/29/2013 05:11 pm Giorgos Korfiatis

astakos: Reconcile resources

Sync number of pending applications to quotaholder.

9e3af524 04/29/2013 05:11 pm Giorgos Korfiatis

astakos: accept commission immediately after issue

Unify these operations when registering a pending application,
in order to make sure no commission can be left pending.

da18207e 04/29/2013 04:29 pm Ilias Tsitsimpis

astakosclient: don't check resolve_commissions' parameters

In resolve_commissions, accept_serials and reject_serials
may be empty lists. Don't do a validation check for this
parameters and let the servers respond with an error
if bad values was given.

fa8c2506 04/29/2013 04:24 pm Christos Stavrakakis

cyclades: Fix typo in create_server

State of public NIC should be 'BUILDING'

857383e3 04/29/2013 01:55 pm Giorgos Korfiatis

Upgrade notes for quota-related stuff

69c1afae 04/29/2013 01:36 pm Giorgos Korfiatis

quotaholder: Add migrations

Migration 0001 should be faked on an existing database.
Migration 0002 adds new fields.
Migration 0003 populates the new fields based on the old ones.
Migration 0004 deletes unneeded fields and tables.

ec5e00aa 04/29/2013 12:13 pm Giorgos Korfiatis

Revert quotaholder's name to quotaholder_app

In order to facilitate migrations.

68b991bc 04/29/2013 12:12 pm Giorgos Korfiatis

quotaholder: Rename counters to usage_min, usage_max

3679f852 04/29/2013 11:17 am Giorgos Korfiatis

quotaholder: Explicitly set commission's issue_time

Avoid function call as a default value in model.

f6e7a826 04/29/2013 11:14 am Giorgos Korfiatis

quotaholder: Impose non-null commission name

Default to empty string

d5426b9b 04/28/2013 12:30 am Stratos Psomadakis

Suggest running vncauthproxy as nobody:www-data

Running vncauthproxy as nobody:www-data makes more sense. We have better
privilege separation between apache2/gunicorn and vncauthproxy, while
gunicorn can still to connect to the vncauthproxy's control socket....

0644dc92 04/26/2013 08:41 pm Sofia Papagiannaki

astakos: remove unwanted logging

29576723 04/26/2013 07:13 pm Sofia Papagiannaki

astakos: Fix twitter access token request failure

The oauth_verifier received from the executed callback has to be passed
to the access_token request (it is no more optional)
https://dev.twitter.com/discussions/16443#comment-36666

Updated twitter oath service urls

20f68e60 04/26/2013 04:41 pm Giorgos Korfiatis

astakos: Migrate service and resource names

- Rename 'pithos+' to 'pithos'
- Prepend resource names with 'service_name.'

acd8cd7d 04/26/2013 01:44 pm Christos Stavrakakis

vmapi: Remove extra '/' from config_url

Use urlparse.urljoin create the config url in order to avoid extra '/'.

bd7fe7c1 04/26/2013 12:47 pm Sofia Papagiannaki

Merge branch 'feature-change-astakos-commands' into feature-quotas

Conflicts:
snf-astakos-app/astakos/im/management/commands/resource-list.py
snf-astakos-app/astakos/im/management/commands/service-list.py
snf-astakos-app/astakos/im/management/commands/service-modify.py...

4e6c02e4 04/25/2013 06:38 pm Giorgos Korfiatis

WIP astakosclient for quotas in pithos

8b68fa76 04/25/2013 05:56 pm Giorgos Korfiatis

astakosclient: Update provisions' type in docstring

567f49a2 04/25/2013 05:54 pm Giorgos Korfiatis

astakosclient: Change provisions argument to dict

3a1bed03 04/25/2013 05:49 pm Giorgos Korfiatis

astakos: Set and return commission names in API calls

Support issue_commission's `name' parameter for an optional description
of the commission. Include this field in the dict returned by
get_commission.

Change astakosclient accordingly.

65fb5cf6 04/25/2013 04:22 pm Giorgos Korfiatis

Merge branch 'develop' into feature-quotas

Conflicts:
astakosclient/astakosclient/__init__.py
astakosclient/astakosclient/errors.py
astakosclient/astakosclient/tests.py
docs/index.rst

85919a0f 04/25/2013 04:14 pm Christos Stavrakakis

Fix deadlock when creating server

Fix deadlock when creating a server that was introduced by commit
501053a. Allocating the public IP in the same transaction with creating
the server resulted in a deadlock with backend allocator, because
inserting the new VM in the database waits on an exclusive lock of the...

d3f6994d 04/25/2013 04:14 pm Christos Stavrakakis

Fix import and add main to unittests

3a527b3a 04/25/2013 04:01 pm Giorgos Korfiatis

astakos: Separate importing resources from setting limits

`snf-manage resource-import' does not provide a way to change the
default base quota any more. When importing a resource for the first
time, it sets the limit to zero.

Use `snf-manage resource-modify' to change limits. It supports both...