Statistics
| Branch: | Tag: | Revision:

root @ 7f313da1

# Date Author Comment
79b5d61b 05/10/2013 12:45 pm Sofia Papagiannaki

astakos: WIP move all api calls under ``/astakos/api``

Refs: #3340

276f454e 05/10/2013 12:45 pm Sofia Papagiannaki

astakos: Change user_for_token decorator

user_for_token after successful user authentication
sets the request user attribute
The wrapped methods no more need the ``user`` argument:
they can get the token holder by the request object

7f313da1 05/10/2013 12:45 pm Sofia Papagiannaki

astakos: rename api utility methods

126f6a55 05/09/2013 06:45 pm Christos Stavrakakis

fix typo

95150b7d 05/09/2013 06:40 pm Christos Stavrakakis

astakos: Fix one test

Fix race condition in one of Astakos tests.

28c41829 05/09/2013 06:37 pm Christos Stavrakakis

Add 'ASTAKOS_POOLSIZE' setting.

d91de78c 05/09/2013 05:23 pm Christos Stavrakakis

helpdesk: Fix helpdesk tests

2a88057d 05/09/2013 04:15 pm Christos Stavrakakis

astakos: Various fixes to tests

Do not user 'assertItemsEqual' method of unittest is only supported in
python 2.7.

Also, some arguments have been renamed.

7ce770be 05/09/2013 04:14 pm Christos Stavrakakis

astakos: Fix bug in getting membership

Search based on 'person__id' and not 'id'.

27899d6f 05/09/2013 03:13 pm Christos Stavrakakis

Improve mocked quotaholder

Mock 'resolve_commissions' call.

b5eef933 05/09/2013 03:12 pm Christos Stavrakakis

cyclades: Fix vmapi test

Use 'urljoin' to compute the 'config_url' parameter.

5c34b421 05/08/2013 06:34 pm Giorgos Korfiatis

astakos: Remove deprecated Project methods

add_member, remove_member were not used.

415c4a56 05/08/2013 06:24 pm Giorgos Korfiatis

astakos: Visually separate apps in project-show

34a857c0 05/08/2013 03:25 pm Kostas Papadimitriou

astakos: Handle prompt for additional login methods

8ee54f74 05/08/2013 03:24 pm Kostas Papadimitriou

astakos: Exclude non existing services form Service.catalog

Always return services that exist in database. If a known service exists
use the predefined presentation data as base dict upon which we build up
the returned info by merging the data stored in service model and the...

6856b4ff 05/08/2013 10:52 am Giorgos Korfiatis

cyclades ui: Remove deprecated setting

2931c601 05/02/2013 04:36 pm Kostas Papadimitriou

astakos: Proper string type check

using basestring also handles unicode objects

426e1fb9 05/02/2013 04:36 pm Kostas Papadimitriou

cyclades ui: Expose and use the new astakos quota api

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

7f3c4920 05/02/2013 03:49 pm Giorgos Korfiatis

astakos: Control project members by membership id

64d0c13e 05/02/2013 12:56 pm Giorgos Korfiatis

astakos: Add reason for all actions on applications

For cancel and dismiss, it is for now just a placeholder.

a6e18fd1 05/02/2013 12:14 pm Giorgos Korfiatis

astakos: Cleanup some project methods

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.