Statistics
| Branch: | Tag: | Revision:

root / snf-common / synnefo / lib @ d509e6da

# Date Author Comment
d509e6da 07/22/2013 12:28 pm Stratos Psomadakis

Add greenlet tracing code in snf-common

Add greenlet tracing code in snf-common, useful for debugging stuck
gevent gunicorn workers.

If the environmental variable SYNNEFO_TRACE is set to a non-empty
string, the tracing code will install a SIGTRAP signal handler for the...

c1a0ab9b 06/12/2013 12:07 pm Georgios D. Tsoukalas

common: fix lib url handling and doctests

5d6afd11 06/11/2013 03:55 pm Georgios D. Tsoukalas

common: make service public urls end in '/'

51057b1a 06/11/2013 03:55 pm Georgios D. Tsoukalas

common: Add a get_service_path() function

7fb14dbb 06/06/2013 06:05 pm Kostas Papadimitriou

cloudbar: Automatic active service detection

automatically detect which cloudbar menu is active by matching the current
window location with the registered service url.

2e26966f 06/04/2013 07:14 pm Georgios D. Tsoukalas

common: get_public_endpoint() helper for service URLs

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

fb814235 06/03/2013 01:45 pm Kostas Papadimitriou

astakos: Update references to astakos urls

/im/ renamed to /ui/.
Updated all references in default settings, documentation and constants.

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

service catalogs: autofill endpoints from BASE_URL

173f8f52 06/03/2013 11:50 am Kostas Papadimitriou

common: join_url helper improvements

- Handle single arguments
- Avoid lstrip'ing first argument

e5e80733 06/03/2013 11:50 am Kostas Papadimitriou

common: more improvements in join_urls

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

common: get/set/del path utility for nested dicts

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

cyclades: initialize settings from service catalog

3c1e7bef 06/03/2013 11:50 am Kostas Papadimitriou

common: Support multiple arguments in join_urls util

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

58350a50 05/23/2013 04:30 pm Sofia Papagiannaki

astakos: move get_services back to astakos im services

0be81d73 05/21/2013 07:41 pm Sofia Papagiannaki

astakos: move get_menu service under astakos im services

get_menu is used only by astakos cloudbar:
it should not be under astakos api services

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.

762b93d7 05/15/2013 04:43 pm Christos Stavrakakis

pep8 fixes

85646ad7 05/14/2013 01:47 pm Christos Stavrakakis

common: Remove obsolete 'queue' module

2ed35e9a 05/13/2013 11:36 am Giorgos Korfiatis

Remove synnefo.lib.commissioning

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

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

Refs: #3340

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

Remove synnefo.lib.quotaholder

Use astakosclient to access the quotaholder instead.

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

common: Recursive dictionary merge helper method

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

7627ec6f 04/22/2013 10:10 am Christos Stavrakakis

amqp_puka: Fix wrong import of ordereddict

b830f774 04/19/2013 12:29 pm Giorgos Korfiatis

Move transaction.py to snf_django package

b052f360 04/19/2013 12:23 pm Giorgos Korfiatis

Move intdecimalfield.py to snf_django package

Rename it to fields.py and update all migrations that reference the field.

222a4f6a 04/19/2013 11:09 am Giorgos Korfiatis

Move managers.py to snf_django package

befa5997 04/11/2013 02:07 pm Giorgos Korfiatis

Merge branch 'develop' into feature-quotas

Conflicts:
snf-astakos-app/astakos/im/api/service.py
snf-quotaholder-app/quotaholder_django/quotaholder_app/callpoint.py

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

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

30333691 04/08/2013 04:27 pm Christos Stavrakakis

Move code and PEP8 fixes

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

09fbe62f 04/08/2013 03:59 pm Christos Stavrakakis

Remove override_users option from astakos options

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

Move parsedate module to snf_django

39b2cb50 04/05/2013 06:48 pm Giorgos Korfiatis

wip Restructure astakos views

Replace custom transaction context with:

- decorator `commit_on_success_strict', which uses
transaction.commit_manually and ensures that
the transaction rolls back on any exception

- context ExceptionHandler, which logs and...

f770d29f 04/02/2013 12:56 pm Kostas Papadimitriou

Merge branch 'release-0.13' into develop

Conflicts:
snf-astakos-app/astakos/im/messages.py
snf-astakos-app/astakos/im/views.py
version

354b9b6f 04/01/2013 07:02 pm Kostas Papadimitriou

Merge branch 'feature-astakos-authpolicies' into develop

Conflicts:
snf-cyclades-app/synnefo/api/management/commands/flavor-create.py
version

5607fc6c 03/28/2013 10:47 am Christos Stavrakakis

Pep8 fixes

4ab1af1a 03/27/2013 06:59 pm Georgios D. Tsoukalas

pool context manager, http pool AssertionError fix

Refs #3492

- Introduce a generic PooledObject class to act both
as a context manager for getting and putting back
an object from a pool.

- Implement a class PooledHTTPConnection(PooledObject)
as a sublcass of the one in (1)...

a8447cc8 03/27/2013 06:59 pm Georgios D. Tsoukalas

remove obsolete example code module http_request

1c53bc1d 03/22/2013 05:25 pm Stratos Psomadakis

Fix deref before None check in http pool

1fd14d3d 03/22/2013 04:23 pm Giorgos Korfiatis

Return EmptyQuerySet on an EmptyResultSet

Refs #3489

Call to as_sql() raises EmptyResultSet in a couple of occasions,
more importantly when filtering based on an empty list: filter(field__in=[]).

a6a152d6 03/22/2013 03:55 pm Giorgos Korfiatis

Move managers.py in synnefo.lib.db

This makes it easier to maintain, since it is used in multiple applications
(astakos.im and quotaholder_app).

76a13815 03/20/2013 07:42 pm Christos Stavrakakis

Move UserCache from cyclades.common to lib.astakos

Move UserCache from synnefo.management.common to synnefo.lib.astakos.
Also, update ListCommand with 'astakos_url' and 'astakos_token' class
attributes, which must be declared only when 'user_uuid_field' is used.

b9818693 03/13/2013 04:43 pm Christos Stavrakakis

Fix inadvertent use of shared objects

Fix inadvertent use of shared objects in synnefo/lib/astakos.py and
pithos/api/delegate.py, since current use is racy when running multiple
requests under gunicorn. Create a private, per-request copy instead.

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

784dcbdb 02/15/2013 01:41 pm Georgios D. Tsoukalas

fix quotaholder nested exception JSON failure

also, log http 500 on server side

0275cd41 02/15/2013 12:13 pm Giorgos Korfiatis

pep8 fixes and copyright notice

c5d7bb5d 02/14/2013 04:27 pm Giorgos Korfiatis

Simplify handler's call

74d988b0 02/01/2013 04:00 pm Christos Stavrakakis

pep8 fixes to snf-common

f77af2cc 01/30/2013 03:39 pm Giorgos Korfiatis

Rollback, even if transaction is not dirty

This is a temporary bug fix for
https://code.djangoproject.com/ticket/9964 .
Django prior to 1.3 does not set a transaction
dirty when the DB throws an exception, and thus
does not trigger rollback, resulting in a...

11ed5cdc 01/28/2013 09:05 pm Giorgos Korfiatis

Do not postprocess if it's marked for rollback

26e15cff 01/28/2013 07:39 pm Giorgos Korfiatis

Run postprocess in a transaction context too

e31e4274 01/28/2013 03:43 pm Sofia Papagiannaki

Change error handling in uuid to displayname pithos path migration.

Stop migraton if it fails to retrieve a uuid/displayname.

7d95385b 01/24/2013 12:00 pm Giorgos Korfiatis

Cleanup transaction context

86b446dd 01/23/2013 10:06 pm Kostas Papadimitriou

Cleanse middleware fix

patch only once

1c65202f 01/23/2013 07:00 pm Giorgos Korfiatis

Remove a debugging print

d55d4f34 01/23/2013 06:56 pm Giorgos Korfiatis

Custom transaction context

A context which can be used as a decorator;
it commits the transaction if no exception was raised and
the rollback flag was not checked.
Executes customizable code after committing.

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

Change feedback & user_catalogs astakos && pithos api calls

  • Substitute ``username`` with ``displayname``
7f7863bb 01/15/2013 09:04 pm Kostas Papadimitriou

Cloudbar flickering fix

prepend body placeholder (using border-top) to avoid flickering caused
due to late rendering of the cloudbar element

0f0dd7df 01/14/2013 05:50 pm Giorgos Korfiatis

Additional parameters in the field constructor

0308f3a7 01/14/2013 05:36 pm Sofia Papagiannaki

Provide pithos call for getting account name from uuid

1de7fd6d 01/11/2013 04:35 pm Kostas Papadimitriou

Additional common helper methodt

96a212f7 01/11/2013 01:29 pm Georgios D. Tsoukalas

make str(CallError) force unicode to utf8

c11dc0ce 01/07/2013 05:20 pm Giorgos Korfiatis

Redefine IntDecimalField to allow support for south migration;
apply the new field to astakos.im.ProjectResourceGrant

08ce0e6f 01/07/2013 01:52 pm Giorgos Korfiatis

wip Use decimals to store quota values; infinite quotas no more supported

39462ae0 01/07/2013 01:52 pm Giorgos Korfiatis

Define custom integer field that is stored in the DB as decimal

7bffb0bd 01/07/2013 12:12 pm Kostas Papadimitriou

User usage enhancement in astakos client helpers

`get_user`, `user_for_token` and `authenticate` methods now accept a `usage`
parameter which requests user usage quotas to be returned along with
authenticated user information. Server side handling has also been...

050485bd 01/03/2013 06:18 pm Sofia Papagiannaki

Changes in common astakos library.

  • It should optionally work with user dictionary
    instead of contacting astakos.
  • Fix pep8 errors
cd5033bd 12/28/2012 02:41 pm Sofia Papagiannaki

Provide error feedback during pithos database path migration to container uuid instead of email

c700f742 12/27/2012 06:29 pm Sofia Papagiannaki

Update Astakos API to provider calls for retrieving uuid from the username and vice versa, extend astakos client library (snf-common) and update pithos to use uuids instead of email for account identification

e6bba30c 12/21/2012 05:14 pm Giorgos Korfiatis

Register keyword args in CallError

f631150c 12/21/2012 05:14 pm Giorgos Korfiatis

Add details in exceptions raised in issue_commission

Exceptions regarding limit violations now carry details
as specified in CommissionValueException

83204389 12/19/2012 09:01 pm Kostas Papadimitriou

Update astakos client to use user.uuid

d2b32360 12/19/2012 02:21 pm Giorgos Korfiatis

New add_quota API to handle infinity

Separately handle subtractions and additions of quotas
Adapt get_diff_quota plus various bug fixes

2fd11a01 12/18/2012 03:31 pm Giorgos Korfiatis

Do not record arguments of add_quota.
Add call query_serials separate from ack_serials.

ef0fa70b 12/17/2012 06:32 pm Giorgos Korfiatis

Record arguments of add_quota and return them in ack_serial

789d202d 12/17/2012 04:40 pm Giorgos Korfiatis

Add a serial in the add_quota API call

4ec8c043 12/13/2012 05:53 pm Giorgos Korfiatis

add_quota API call

eeba67ab 12/10/2012 07:34 pm Giorgos Korfiatis

Make side-effecting quotaholder API calls fail completely,
if part of the request is rejected.

If such a call returns a non-empty list, this means that
the entire call failed due to the actions mentioned in the list.

c05b0cbe 12/04/2012 03:22 pm Giorgos Korfiatis

Better version of the bug fix 39cefb25

39cefb25 12/04/2012 02:36 pm Georgios D. Tsoukalas

fix obscure bug in callpoint class that triggered db integrity errors

Callpoint class had a placeholder attribute original_calls
which was initialized as an empty dictionary,
and thus was usable. Class init() code did not initialize
original_calls as it should but because the placeholder was...

6b4e7a64 12/04/2012 02:02 pm Georgios D. Tsoukalas

remove obsolete import get_callpoint

65f214a2 12/03/2012 01:15 pm Georgios D. Tsoukalas

add list_holdings quotaholder api call

list_holdings() to be used to get all holdings for multiple resources
without having to call list_resources/get_holding for each entity/holding.

9cc620ab 12/03/2012 12:50 pm Giorgos Korfiatis

First unpack, then consider options, while checking canonicals

4c00b904 12/03/2012 12:02 pm Giorgos Korfiatis

Implement reset_holding API call

004e947d 11/30/2012 05:01 pm Giorgos Korfiatis

Avoid negative indexing, not supported by django lists

ccdb658a 11/30/2012 01:55 pm Giorgos Korfiatis

Disallow empty names in _random_choice

7be6bfa2 11/29/2012 03:32 pm Georgios D. Tsoukalas

fix auto-generation in get_doc()

6a88bbb9 11/29/2012 02:39 pm Georgios D. Tsoukalas

remove stub docstrings to allow their generation from canonicals

2f35d7a9 11/29/2012 02:38 pm Georgios D. Tsoukalas

auto-generate missing api call docstrings

4350ac98 11/29/2012 02:15 pm Georgios D. Tsoukalas

provide random Name

095c307f 11/29/2012 02:14 pm Georgios D. Tsoukalas

fixes in canonical randoms

3de20492 11/29/2012 01:30 pm Giorgos Korfiatis

Separate concerns of unpack and check in Args

00a67c28 11/28/2012 06:24 pm Giorgos Korfiatis

Move implementation details to argmap.py

c294cb93 11/28/2012 05:45 pm Georgios D. Tsoukalas

allow '-' in quotaholder entity names

807c1992 11/28/2012 05:15 pm Giorgos Korfiatis

Raise AssertionError when exhausted

d13a447b 11/28/2012 04:57 pm Giorgos Korfiatis

Add missing import

b9426097 11/28/2012 04:51 pm Giorgos Korfiatis

Remove parse and _parse from canonicals