Statistics
| Branch: | Tag: | Revision:

root / snf-pithos-app / pithos / api / util.py @ 6e7e6b21

History | View | Annotate | Download (44.6 kB)

# Date Author Comment
151e729e 09/05/2013 12:49 pm Sofia Papagiannaki

pithos: Lock container path in pre_exec

if it is requested so

818eb562 08/30/2013 04:56 pm Sofia Papagiannaki

pithos: Backend refactoring

d4e4e501 07/25/2013 12:46 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.3' into develop

Conflicts:
Changelog
snf-astakos-app/astakos/im/messages.py
snf-pithos-app/pithos/api/manage_accounts/__init__.py
snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py
snf-pithos-app/pithos/api/settings.py...

8198fe61 07/24/2013 03:53 pm Sofia Papagiannaki

pithos: Pass full path of the next parameter in view redirect

a421e0b9 07/19/2013 01:28 pm Sofia Papagiannaki

pithos: Update view_method decorator

  • If no token found in the cookie redirect to astakos login
    with next parameter pointing to the request path
  • Extend the list of the valid response statuses
  • If no expected response status is received, pass to the raised...
48c5b124 07/18/2013 07:58 pm Sofia Papagiannaki

pithos: Update view_method decorator

  • If no token found in the cookie redirect to astakos login
    with next parameter pointing to the request path
  • Extend the list of the valid response statuses
  • If no expected response status is received, pass to the raised...
29148653 07/17/2013 11:41 am Sofia Papagiannaki

pithos: pep8 fixes

3248f20a 07/10/2013 04:37 pm Sofia Papagiannaki

pithos: Handle backend transaction management

In commit 9f135224edf6e50386dc29e0a35806a92c56a50c
the transaction management has been moved
from the pithos backend to pithos frontend.
This commit updates all modules use pithos backend
to handle transactions manually.

cc62d2ab 07/05/2013 06:53 pm Sofia Papagiannaki

pithos: Cleanup api_method code

74cbb94a 07/05/2013 05:35 pm Sofia Papagiannaki

pithos: Optionally deactivate backend pooling

This is useful because the ``pithos.backends.lib.sqlite``
backend module is not compatible with pooling.

0df5250a 07/04/2013 10:48 am Sofia Papagiannaki

Merge branch 'tmp-pithos-tests' into feature-pithos-atomic-api

Conflicts:
snf-pithos-app/pithos/api/util.py

133e3fcf 07/03/2013 06:37 pm Sofia Papagiannaki

pithos: return always etag

Refs: #3554

If update md5 is deactivated Pithos does not return an etag header.
Pithos in that case should return the merkle hash as etag

1baa9737 07/02/2013 05:19 pm Sofia Papagiannaki

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

Conflicts:
snf-astakos-app/astakos/api/tokens.py
snf-astakos-app/astakos/im/tests/api.py
snf-common/synnefo/settings/test.py
snf-django-lib/snf_django/lib/api/__init__.py...

369a7b41 07/02/2013 04:53 pm Sofia Papagiannaki

pithos: Change block size by configuration

This is useful for testing corner cases efficiently.

ff0beb64 07/02/2013 04:23 pm Sofia Papagiannaki

pithos: move transaction managment and quotaholder sync in frontend

Remove backend_method decorator and move logic in the pithos api method

Conflicts:
snf-pithos-app/pithos/api/util.py

4d244f4a 06/25/2013 08:20 pm Sofia Papagiannaki

pithos: Fix partial content responses

Refs: #4063

9f135224 06/19/2013 04:24 pm Sofia Papagiannaki

pithos: move transaction managment and quotaholder sync in frontend

Remove backend_method decorator and move logic in the pithos api method

b90584d0 06/19/2013 04:19 pm Sofia Papagiannaki

pithos: introduce lock_container_path api_method argument

b5aeeb2f 06/18/2013 06:50 pm Kostas Papadimitriou

pithos-app: Update pithos.api.util.api_method wrapper

to match the updated snf_django api_method decorator

d823a562 06/18/2013 06:48 pm Kostas Papadimitriou

pithos-api: Update api_method wrapper

8e95eb05 06/12/2013 06:56 pm Sofia Papagiannaki

pithos: HEAD object request returned erroneous content type

According to commit: b698d39dd6cbe4bf47b63ed0d6a98b9b126ca40e
views defining their response 'Content-Type' should set the
'override_serialization' attribute of response to 'True'.
However, this was missing in the specific view....

cc1f91ad 06/11/2013 04:52 pm Sofia Papagiannaki

pithos: Fix X-Object-Public object header

Utilize settings.PITHOS_BASE_HOST instead of settings.PITHOS_BASE_URL
to construct the header value

d2d09227 06/11/2013 03:52 pm Sofia Papagiannaki

pithos: refine error handling in object_read view

63de12cf 06/10/2013 09:37 pm Sofia Papagiannaki

pithos: create view for reading an object's content

Use cookie for retrieving the authentication token

d630c78b 06/10/2013 09:37 pm Sofia Papagiannaki

pithos: fix public api

Pithos public api was broken since the pithos api decorator
used to call the common api decorator without passing the
``token_required`` optional argument (default to True).
As a result, all the requests failed with 401 Unauthorized status....

a3fcee5b 06/10/2013 09:37 pm Sofia Papagiannaki

pithos: change X-Object-Public header

The header value should contain the absolute public url

06e7d2f0 06/10/2013 09:37 pm Sofia Papagiannaki

pithos: fix UnboundLocalError in object read

6b560707 06/10/2013 11:06 am Sofia Papagiannaki

snf_django: Optionally use other default serialization than json

Pithos api default serialization for listing is text insted of json.
However the common api decorator if not specified otherwise used to
json as the default serialization.
So we introduced a new optional argument (defaults to json) to override...

27612504 06/06/2013 07:14 pm Sofia Papagiannaki

snf_django: Optionally use other default serialization than json

Pithos api default serialization for listing is text insted of json.
However the common api decorator if not specified otherwise used to
json as the default serialization.
So we introduced a new optional argument (defaults to json) to override...

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

02de6286 05/15/2013 06:18 pm Sofia Papagiannaki

pithos: change resource usage retrieval

Replace ``astakosclient.get_info()`` with ``astakosclient.get_quotas()``

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

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

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

snf-pithos-app: Use astakosclient

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

PEP8 style fixes

19ddd41b 04/17/2013 06:17 pm Sofia Papagiannaki

Change pithos default container policy quota to unlimited

Refs: #3543

  • Substitute the PITHOS_BACKEND_QUOTA setting with two
    distinct settings: PITHOS_BACKEND_ACCOUNT_QUOTA &
    PITHOS_BACKEND_CONTAINER_QUOTA
  • Set PITHOS_BACKEND_CONTAINER_QUOTA default value...
47ef53d5 04/15/2013 05:17 pm Christos Stavrakakis

Make 'api_method' to take astakos_url as argument

6dd0fc7c 04/15/2013 04:53 pm Christos Stavrakakis

Add ASTAKOS_URL to pithos.api.settings

4ab620b6 04/15/2013 04:11 pm Christos Stavrakakis

Improve settings related to ASTAKOS url

Rename 'PITHOS_AUTHENTICATION_URL' setting to 'ASTAKOS_URL'. Also remove
'PITHOS_AUTHENTICATION_USERS' from docs (it was removed from code in
commit 8df4fae).

Modify 'ASTAKOS_URL' to point to the node hosting the Astakos service...

f0001470 04/11/2013 11:34 am Christos Stavrakakis

Merge branch 'feature-snf-django' into develop

Conflicts:
docs/older/Changelog.pithos-app
snf-astakos-app/astakos/im/api/__init__.py
snf-pithos-app/pithos/api/util.py

61c5b615 04/08/2013 07:10 pm Sofia Papagiannaki

Make pithos backend pool size configurable

Refs: #3561

04a1b675 04/08/2013 06:17 pm Christos Stavrakakis

Move astakos lib from snf-common to snf-django-lib

896754a6 04/08/2013 11:07 am Christos Stavrakakis

Move parsedate module to snf_django

8df4fae6 04/08/2013 11:07 am Christos Stavrakakis

Remove PITHOS_AUTHENTICATION_USERS setting

Remove this setting as it introduces unnecessary complexity. Also,
it will need to be supported by snf-astakos-client. If needed by
tests to bypass communication with astakos, a mocking library should
be used.

65bbcd43 04/08/2013 11:06 am Christos Stavrakakis

Use common 'api_method' decorator in pithos api

Update all pithos API methods to use the new common 'api_method'
decorator. However, this decorator is not enough for pithos since
pithos methods require some extra tasks:
  • Create a PithosBackend connection...
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'.

4a105ce2 03/28/2013 05:21 pm Sofia Papagiannaki

Change pithos public URL implementation

Refs: commit: 56f3c759

Do not include encoded serial in the public URL.

Change PITHOS_PUBLIC_URL_MIN_LENGTH setting to
PITHOS_PUBLIC_URL_SECURITY.

Log public set/unset functions.

56f3c759 03/27/2013 06:51 pm Sofia Papagiannaki

Change pithos public implementation

Public URLs should consist of a random part.
A public URL should be unique and should not be
equal to any deleted public URL.
Finally publishing a public object has no effect.
Therefore, to generate a new public URL for an...

7273ee62 03/19/2013 11:22 am Sofia Papagiannaki

Fix pithos get object metadata response headers

X-Object-Modified-By header was accidentally
eliminated in the response

f5a1e653 03/15/2013 01:53 pm Sofia Papagiannaki

Clear pithos InternalServerError response

Do not include in the InternalServerError response
the actual 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...

1f3f907f 02/19/2013 12:00 pm Sofia Papagiannaki

Explicitly enabled/disable pithos quotaholder component

Use PITHOS_USE_QUOTAHOLDER setting

4a9e3f32 02/14/2013 04:28 pm Sofia Papagiannaki

Fix pithos sharing translation

Perform only one split to separate group owner from name

0325be55 02/14/2013 04:27 pm Sofia Papagiannaki

Check for None in is_uuid

469d0997 02/14/2013 04:26 pm Georgios D. Tsoukalas

ui compatibility: translate uuids to display names

2150482f 02/14/2013 04:26 pm Sofia Papagiannaki

Fix get_user argument

dfa2d4ba 01/30/2013 04:25 pm Sofia Papagiannaki

Catch quota errors in pithos server

27932481 01/23/2013 06:51 pm Sofia Papagiannaki

Fix name error

890c2065 01/23/2013 06:51 pm Sofia Papagiannaki

Change feedback & user_catalogs astakos && pithos api calls

  • Substitute ``username`` with ``displayname``
b8098f77 01/16/2013 02:47 pm Sofia Papagiannaki

Debit pithos object owner not the request user

2042a902 01/16/2013 12:57 pm Sofia Papagiannaki

Fix get_pithos_usage if no usage is returned by astakos.

a9420179 01/15/2013 05:04 pm Sofia Papagiannaki

Fix syntax error

7f1f0464 01/15/2013 04:46 pm Georgios D. Tsoukalas

fix radosblocker merge, fix some tabs/whitespace

7dc78140 01/15/2013 04:01 pm Sofia Papagiannaki

Merge branch 'radosblocker' of https://code.grnet.gr/git/pithos into latest-quota

Conflicts:
snf-pithos-app/pithos/api/util.py
snf-pithos-backend/pithos/backends/modular.py
snf-pithos-backend/pithos/backends/util.py

4d366a03 01/15/2013 03:09 pm Sofia Papagiannaki

Extend account_list pithos api call

Provide account name (not only uuid)

88dd5c4d 01/14/2013 01:20 pm Sofia Papagiannaki

Replace account uuid with username in response headers

c846fad1 01/11/2013 12:00 am Sofia Papagiannaki

Merge branch 'latest-quota' of https://code.grnet.gr/git/synnefo into latest-quota

Conflicts:
snf-astakos-app/astakos/im/forms.py
snf-astakos-app/astakos/im/functions.py

9839cc96 01/07/2013 03:47 pm root

Check whether account is already uuid before transforming

874cddc7 01/07/2013 01:46 pm Sofia Papagiannaki

Catch correct Exception

32454501 01/07/2013 04:13 am Sofia Papagiannaki

Change pithos sharing to work with account uuids

3173699c 12/20/2012 10:41 am Sofia Papagiannaki

Pithos backend should send the token to the quotaholder

019d9e19 12/20/2012 02:54 am Sofia Papagiannaki

Pithos issue_commission using user uuid instead of id

b3102a96 12/19/2012 07:37 pm Sofia Papagiannaki

Fix pithos api_method

bf45cb4a 12/14/2012 04:22 pm Sofia Papagiannaki

Merge branch 'dev' of https://code.grnet.gr/git/pithos into latest-quota

Conflicts:
.gitignore
devtools/fabfile.py
snf-pithos-app/pithos/api/util.py

83feb574 12/14/2012 04:04 pm Sofia Papagiannaki

Fix pithos api_method assertions

d62295ba 12/14/2012 03:26 pm Sofia Papagiannaki

Merge branch 'projects' of https://code.grnet.gr/git/astakos into latest-quota

Conflicts:
.gitignore
snf-astakos-app/conf/20-snf-astakos-app-settings.conf

2492a42c 11/26/2012 03:27 pm Filippos Giannakos

Merge remote-tracking branch 'origin/dev' into radosblocker

Conflicts:
snf-pithos-app/pithos/api/util.py
snf-pithos-backend/pithos/backends/lib/hashfiler/blocker.py
snf-pithos-backend/pithos/backends/lib/hashfiler/mapper.py
snf-pithos-backend/pithos/backends/modular.py...

47462eda 11/26/2012 02:46 pm Filippos Giannakos

make rados storage configurable

8313c681 11/12/2012 12:44 pm root

Merge branch 'dev' of https://code.grnet.gr/git/pithos into dev

Conflicts:
snf-pithos-app/pithos/api/util.py
snf-pithos-backend/pithos/backends/modular.py

b1dadd0e 11/09/2012 08:04 pm Sofia Papagiannaki

By default report size change in object delete/update (do not include older version size)

4cfccdd2 11/09/2012 07:34 pm Sofia Papagiannaki

incorporate AMQPClient instead of synnefo.lib.queue methods for sending queue messages

d50ed8d4 11/09/2012 07:33 pm Sofia Papagiannaki

Fix code formatting to conform to the PEP 8 style guide

57e09fb4 11/09/2012 11:02 am root

add socket verification for pooled pithos backends

0307b47f 11/09/2012 11:02 am Georgios D. Tsoukalas

wip quotaholder client in backend

f77b1da9 10/16/2012 03:44 pm Stratos Psomadakis

Hotfix pithos 500 error

Temporary fix to prevent pithos failing with "AttributeError:
'ModularBackend' object has no attribute 'messages'" 500 error.

6e9c8fc1 10/11/2012 12:06 pm Christos Stavrakakis

Log 5xx API faults

edb7875c 10/05/2012 01:19 pm Christos Stavrakakis

Move PithosBackendPool to snf-pithos-backend

Move PithosBackendPool from snf-pithos-app to snf-pithos-backend

d63a5938 10/04/2012 12:36 pm Vangelis Koukis

Fix references to settings not yet in master

Fix references from pithos.api.settings to settings
not yet implemented in the master branch.

761c2b3c 10/03/2012 02:08 pm root

socket verification for pooled pithos backends

b1f45382 09/18/2012 04:58 pm Sofia Papagiannaki

Merge remote-tracking branch 'origin' into dev

278e5256 09/12/2012 01:12 pm Christos Stavrakakis

Fix bug in PithosBackendPool

Get _trans from the DBWrapper

f4fbb0fa 09/11/2012 03:09 pm Sofia Papagiannaki

incorporate AMQPClient instead of synnefo.lib.queue methods for sending queue messages

45f442f7 09/11/2012 02:10 pm Georgios D. Tsoukalas

cleanup pithos backend pools, new pool api support

717adf72 09/10/2012 05:39 pm Sofia Papagiannaki

Merge remote-tracking branch 'origin' into dev

Conflicts:
snf-pithos-app/pithos/api/util.py
snf-pithos-backend/pithos/backends/base.py

2715ade4 09/10/2012 04:09 pm Sofia Papagiannaki

Fix code formatting to conform to the PEP 8 style guide

35d42381 09/06/2012 05:40 pm Vangelis Koukis

Pool pithos backends using ObjectPool

Use ObjectPool functionality from synnefo.lib.pool
to pool backend objects.

This reduces the per-request overhead significantly,
since each backend object is only initialized once,
and connections to the DB are persistent....

1e0417f1 06/29/2012 06:57 pm Sofia Papagiannaki

Reverse back Revision 7fbf8aa20c647e2c98c2ba53f80dcfa0e971a499

Refs: #2611

7efc9f86 06/28/2012 03:51 pm Sofia Papagiannaki

change backend to raise custom exceptions

7fbf8aa2 06/26/2012 07:25 pm Sofia Papagiannaki

Ignore public parameter in case of mass copy/delete

Refs: #2611