Statistics
| Branch: | Tag: | Revision:

root / snf-pithos-app / pithos / api @ 800af189

# Date Author Comment
800af189 07/05/2013 02:28 pm Sofia Papagiannaki

pithos: Fix & update tests (premature commit)

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

80d668be 07/03/2013 08:01 pm Sofia Papagiannaki

pithos: Fix updated object size

If the updated object exceeded the size of the original object
the object size was not computed correctly.

5fe43b8c 07/03/2013 06:40 pm Sofia Papagiannaki

pithos: Fix tests challenging ETag

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

a1f429b2 07/02/2013 05:38 pm Sofia Papagiannaki

pithos: Fix tests

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

3a19e99b 07/02/2013 04:56 pm Sofia Papagiannaki

pithos: update tests

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

pithos: Change block size by configuration

This is useful for testing corner cases efficiently.

7b40f056 07/02/2013 04:35 pm Sofia Papagiannaki

pithos: Fix control for satisfiable range

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

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

pithos: remove hardcoded urls in tests

3bdb9222 07/02/2013 04:23 pm Sofia Papagiannaki

pithos api: Adjustable max number of items listed

Openstack storage api sets to 10000 the maximum number of
items returned by the listing functions.
However to test this behaviour is time consuming.
Change this threadhold to be adjustable via the settings...

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

pithos: WIP - rewrite pithos tests

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

263d27d9 06/19/2013 04:13 pm Sofia Papagiannaki

pithos: enable api calls to lock explicitly the path

c8860319 06/19/2013 02:10 pm Sofia Papagiannaki

pithos: change public listing api

Before public listing (public request parameter)
requested by non path owners, was ignored.
Now it returns a response with 403 status code (Forbidden)

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

ee565728 06/18/2013 06:46 pm Kostas Papadimitriou

pithos-app: Set supported serializations in api views

ae6030b3 06/18/2013 11:47 am Georgios D. Tsoukalas

pithos: rename prefix pithos_public to public

After all, the prefix is visible to users as part of the public url
they pass around, therefore 'public' is much more presentable than
pithos_public.

55616866 06/17/2013 01:35 pm Kostas Papadimitriou

pithos: api_method_not_allowed typo's

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

603e0058 06/12/2013 03:22 pm Sofia Papagiannaki

pithos: fix another typo in reconcile-commissions-pithos command

393da61b 06/12/2013 03:18 pm Sofia Papagiannaki

pithos: fix typo in reconcile-commissions-pithos command

269ac8de 06/12/2013 02:28 pm Christos Stavrakakis

Ensure we return cloud faults under any API prefix

cf643c9b 06/12/2013 02:21 pm Georgios D. Tsoukalas

pithos: change pithos_public service

- Do not export an endpoint, since clients get public urls from our
pithos API, there is no need for them to know an endpoint.

- Rename its type to pithos_public, since public is too generic
and there is actually no API specification, since noone needs it yet.

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

94844ae4 06/11/2013 03:35 pm Kostas Papadimitriou

pithos: Url patterns fix

avoid double slash in ui service

80a3c208 06/11/2013 02:48 pm Kostas Papadimitriou

pithos: Prefix for pithos object read view endpoint

bab17726 06/11/2013 12:55 pm Sofia Papagiannaki

pithos: change reconcile-resources-pithos command

This command syncronizes the astakos quota with the pithos db.
However, if there was an account in the astakos database but there
was not the relative path in the pithos db (new pithos database)
the account quotas were not synced....

d5ea70e4 06/11/2013 12:42 pm Kostas Papadimitriou

pithos: Updated ui service urls

removed version from path

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

5f2072f4 06/07/2013 12:56 am Kostas Papadimitriou

pithos: Use api_patterns to register API urls

3cdb2b79 06/06/2013 07:40 pm Sofia Papagiannaki

pithos: WIP - rewrite pithos tests

e3709c69 06/06/2013 07:23 pm Sofia Papagiannaki

pithos api: Adjustable max number of items listed

Openstack storage api sets to 10000 the maximum number of
items returned by the listing functions.
However to test this behaviour is time consuming.
Change this threadhold to be adjustable via the settings...

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

2e45abfd 06/06/2013 04:12 pm Kostas Papadimitriou

webproject: common 404, 500 handling

- Move 404, 500 templates from astakos to webproject
- Remove 404, 500 templates from pithos-app
- Webproject now includes static files to serve jquery as an asset in 404, 500
pages.
- Custom 500 handler. Use RequestContext if possible.

11b7870d 06/05/2013 05:38 pm Georgios D. Tsoukalas

Merge branch 'feature-reconfigure-urls' into develop

Conflicts:
docs/pithos-api-guide.rst

923e6582 06/05/2013 05:31 pm Georgios D. Tsoukalas

Rename astakos_keystone to astakos_identity

1a3eff62 06/05/2013 02:06 pm Sofia Papagiannaki

pithos: Weaken X-Object-Public exposure requirement

8a0c7040367761cd5d5383ac53dfe1c0161c1d02
has restricted the X-Object-Public exposure
in container detailed list requests
only to the object owner and if public parameter is supplied.
Now we have weaken this requirement so this information...

dfc4d3d7 06/04/2013 08:38 pm Kostas Papadimitriou

pithos: Fill endpoints to astakos_services object

47d421ae 06/04/2013 05:31 pm Georgios D. Tsoukalas

Incorporate all resources into service definitions

- Add 'service_origin' key in resources, as the normative name of
the service that exported it.
- Keep resources backwards compatible, export-resource-service
reads resources from the service list.

89d091bf 06/03/2013 03:33 pm Giorgos Korfiatis

cyclades, pithos: Update resource definitions

Include service_type in each resource dict.

b55b9692 06/03/2013 02:09 pm Giorgos Korfiatis

common: Export only services specified as public

Employ helper function `filter_public' in service-export-* commands.
Also set `pithos_ui' service to non-public and clear version of
`astakos_ui'.

a30e4fff 06/03/2013 01:51 pm Kostas Papadimitriou

pithos: Include additional prefixes settings

- Include settings for astakos accounts/views/keystone prefixes
- Renamed ASTAKOS_ACCOUNT_PREFIX > ASTAKOS_ACCOUNTS_PREFIX
Prepend BASE_ASTAKOS_PROXY_PATH with BASE_PATH by default

2a54b2dd 06/03/2013 11:50 am Georgios D. Tsoukalas

pithos: initialize prefixes from service catalog

4080a1df 06/03/2013 11:50 am Georgios D. Tsoukalas

service catalogs: autofill endpoints from BASE_URL

fe4ad54f 06/03/2013 11:50 am Georgios D. Tsoukalas

pithos: add service-export-pithos command

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

3506f6a0 05/28/2013 03:57 pm Sofia Papagiannaki

docs: Update list of pithos commands

Also list in a separate section the pithos-manage-accounts commands

205cc8d3 05/16/2013 06:41 pm Giorgos Korfiatis

Catch QuotaLimit exception when reconciling resources

This can happen, if the actual usage registered by a service exceeds
the quota limit.
Advise the user to try the --force option.

1896d3e4 05/16/2013 02:47 pm Sofia Papagiannaki

pithos: fix tests

Change erroneous import

d2c9adac 05/15/2013 06:36 pm Christos Stavrakakis

Use custom method for joining urls

Implement 'join_urls' method for joining a base URL with a path,
without worrying about redundant or missing "/". Do not use
'urlparse.urljoin', since it has different semantics.

aa153e99 05/15/2013 06:20 pm Sofia Papagiannaki

pithos: use common proxy functionality for astakos services

Remove pithos.api.delegate module
Keep top level api urls for this version

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

pithos: change resource usage retrieval

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

79b5d61b 05/10/2013 12:45 pm Sofia Papagiannaki

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

Refs: #3340

d7c850a0 05/10/2013 12:45 pm Sofia Papagiannaki

pithos: use AstakosClient to delegate user services to astakos

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

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

pithos: Define and export resources in json format

Provide management command resource-export-pithos.

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

pithos: Add name in reconciling commission

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

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

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

snf-pithos-app: Use astakosclient

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.

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

PEP8 style fixes

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

PEP8 style fixes

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

PEP8 style fixes

c72c19e4 04/17/2013 06:21 pm Sofia Papagiannaki

pithos: Change default container quota policy

Set PITHOS_BACKEND_CONTAINER_QUOTA to 0
(to disable by default the container quota check)
instead of setting to something big

Refs: #3543

18cd931f 04/17/2013 06:20 pm Sofia Papagiannaki

pithos dispatcher: change erroneous import

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...
e9d94604 04/16/2013 08:44 pm Sofia Papagiannaki

pithos: Change conflict handling in object write

Pithos in case of missing blocks during smart object write
(using hashmap) used to raise an api fault with payload
the list with the missing blocks serialized in json format.

However, the common api_method decorator in case of api fault...

b698d39d 04/16/2013 08:22 pm Christos Stavrakakis

Fix API decorator response Content-Type

Remove check for response Content-Type, since 'django.http.HttpResponse'
has always a default Content-Type of 'text/html; charset=utf-8'. Views
defining their response 'Content-Type' should set the
'override_serialization' attribute of response to 'True'.

b32d9fae 04/16/2013 03:37 pm Sofia Papagiannaki

pithos: optionally fix unresolved commissions

provide --fix option for the pithos-reconcile-commissions command

Refs: #3594

8108c68c 04/16/2013 02:35 pm Sofia Papagiannaki

Fix pithos-usage command help

Refs: #3591

989576a6 04/16/2013 02:15 pm Sofia Papagiannaki

Update pithos-usage command to list/reset diverging quotas

Refs: #3591

e1e37cf9 04/16/2013 11:59 am Sofia Papagiannaki

Fix pithos-reconcile-commissions command

Get pending commissions specifically for pithos

Refs: #3594

f0fdf427 04/15/2013 07:18 pm Sofia Papagiannaki

Provide a pithos-reconcile-commissions command

Refs: #3594

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

9c0c8aa9 04/12/2013 12:35 pm Sofia Papagiannaki

Improve pithos-usage command performance

  • Compute statistics only for the current object versions
    (not history and deleted)
  • Deactivate by default the statistics table consistency
    verification (use --verify option to enable it)
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

591e1df0 04/09/2013 10:54 am Sofia Papagiannaki

Deactivate pithos md5 update by default

Refs: #3554

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

1a736ca8 04/08/2013 04:27 pm Christos Stavrakakis

Use 'python-objpool' instead of 'synnefo.lib.pool'

Use the python-objpool package for pooling resources as object, instead
of the pooling code that existed in snf-common ('synnefo.lib.pool')

Refs #3524