Statistics
| Branch: | Tag: | Revision:

root / snf-common / synnefo @ 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...

0ede3879 06/13/2013 05:23 pm Kostas Papadimitriou

common: Include and document SERVER_EMAIL, CONTACT_EMAIL settings

in snf-common settings

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

common: fix lib url handling and doctests

1ce2918c 06/11/2013 05:10 pm Georgios D. Tsoukalas

Revert "common: do not overwrite test database setting"

This reverts commit b6eb72e5ccef38cfabf13f6fdf2acf53438ab34e.

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

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

common: do not overwrite test database setting

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

6ebf6da3 06/03/2013 05:31 pm Sofia Papagiannaki

snf-common: update test settings

Add cloudbar settings in the test settings
to prevent tests from failing
if cyclades are not installed

1c1c2b9e 06/03/2013 04:11 pm Georgios D. Tsoukalas

common: add list index support in keypath util

93f80412 06/03/2013 03:17 pm Kostas Papadimitriou

tests: Set default BASE_URL settings

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

190a2743 05/27/2013 05:27 pm Giorgos Korfiatis

astakos: Convert list-like settings to tuple

Settings ADMINS, MANAGERS, and HELPDESK are tuples even though they could
naturally be lists. If one sets by mistake one of these to list, this
triggers an error in notification code, which tries to concatenate them:...

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

astakos: move get_services back to astakos im services

44f510e1 05/22/2013 06:51 pm Giorgos Korfiatis

astakos: Support units in resource-related commands

Add library synnefo.util.units for parsing numerical values
with an optional unit suffix and printing integer values based
on a given style.

Styles `b', `kb', `mb', etc allow printing in the respective multiples...

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

5aa83766 05/16/2013 06:57 pm Kostas Papadimitriou

Merge branch 'feature-branding' into develop

Conflicts:
snf-astakos-app/astakos/im/templates/im/account_pending_moderation_notification.txt
snf-astakos-app/astakos/im/templates/im/group_creation_notification.txt
snf-astakos-app/astakos/im/views.py

d6af92ac 05/16/2013 03:00 pm Kostas Papadimitriou

Merge branch 'develop' into feature-astakos-userflow

93a77d30 05/16/2013 02:55 pm Giorgos Korfiatis

common: Disable proxy in tests

Do not follow redirections in im tests.

e7cb4085 05/15/2013 07:03 pm Kostas Papadimitriou

astakos: User activation flow improvements

Major refactoring on user email verification/activation process
---------------------------------------------------------------
Activation logic moved from dispersed code in functions/view modules to
ActivationBackend methods. All user activation handling code in astakos views...

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

8b9e871d 05/14/2013 03:14 pm Olga Brani

Merge branch 'develop' into feature-branding

Conflicts:
snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.js
snf-astakos-app/astakos/im/templates/im/base.html
snf-astakos-app/astakos/im/templates/im/landing.html
snf-astakos-app/astakos/im/views.py...

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

68a81d58 05/08/2013 06:10 pm Olga Brani

Synnefo branding: settings improvements

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

b2f34c77 04/23/2013 06:28 pm Kostas Papadimitriou

common: Fix resolving of SOUTH_TESTS_MIGRATE

in synnefo.settings.test

3b1ab480 04/23/2013 05:37 pm Kostas Papadimitriou

common: Test settings improvements

- Avoid settings overrides from conf files inside SYNNEFO_SETTINGS_DIR
Tests are expected to succeed with exact setting values defined either
in tests modules/cases or in the default synnefo setting modules. To
ensure this we temporarily set SYNNEFO_SETTINGS_DIR environmental variable...

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

1052bb2b 04/08/2013 11:07 am Christos Stavrakakis

Remove obsolete Ganeti RAPI client from snf-common

This Ganeti RAPI client has been moved to snf-cyclades-app.

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

Move parsedate module to snf_django

d2b8ec7b 04/08/2013 11:07 am Christos Stavrakakis

Move common test code to snf_django.lib.testing

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

878d9cf3 04/02/2013 08:49 am Kostas Papadimitriou

Merge branch 'tmp-common-email-recipients' into develop

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

f96257d8 03/27/2013 11:01 pm Kostas Papadimitriou

Introduce CONTACT_EMAIL setting

applications can use the setting as to point users in which email
address they should get in contact for support.

bd0778e4 03/27/2013 11:00 pm Kostas Papadimitriou

Provide additional user lists in common settings

To be used as recipients in applications notification messages

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

6f25ec42 03/26/2013 03:50 pm Kostas Papadimitriou

Merge branch 'release-0.13' into feature-astakos-authpolicies

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.

f09da76e 03/15/2013 07:49 pm Kostas Papadimitriou

Common synnefo testing utils lib

New synnefo.util.testing lib added. Currently including helper decorator and
context processor to override django settings.

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

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

udec: decode an object into a unicode object

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

Simplify handler's call

9e20fcee 02/08/2013 11:53 am Christos Stavrakakis

Remove mac2eui64 dependency

Import mac2eui64 code which is already shipped under util/mac2eui64 instead
of shipping it as a seperate script.

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

ef67f714 01/29/2013 06:19 pm Christos Stavrakakis

Grammar fix

3a6e0fd0 01/29/2013 11:26 am Georgios D. Tsoukalas

uenc: convert to repr(utf8) if encoding fails.

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.

aff28f5f 01/25/2013 07:58 pm Georgios D. Tsoukalas

uenc: utility function for encoding unicode to str

1. Motivation.

Too often a programmer outputs an object that can either be str or
unicode. The default python encoding of 'ascii' cannot handle all of
unicode text, but this will not crash until such a text is encountered....

aaf73e65 01/25/2013 12:46 pm Georgios D. Tsoukalas

strbigdec: smart big decimal number-to-string

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``
115fc1d6 01/18/2013 03:58 pm Georgios D. Tsoukalas

Merge 'develop' into feature-projects

Needed for building devflow packages from feature-projects.

473e2b08 01/17/2013 04:37 pm Christos Stavrakakis

Remove devflow form build dependency

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

db6865fc 01/15/2013 05:01 pm Georgios D. Tsoukalas

Merge branch 'latest-quota' into develop

bring quotas, projects, astakos logins, pithos/RADOS
into the new synnefo development workflow

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