Statistics
| Branch: | Tag: | Revision:

root / snf-common / synnefo @ adc46059

# Date Author Comment
5f6ad491 09/27/2012 03:59 pm Christos Stavrakakis

Fix cleanup of DB pooled connections

Fix bug in cleanup of DB pooled connections before putting them back to
the pool. The way the connection was cleaned, resulted in mishandling of
the transactions.

Accoring to psycopg2 docs, in case of a READ COMMITED isolation level:...

d2f3853b 09/27/2012 03:59 pm Christos Stavrakakis

Fix broken logging

Rename LOGGING setup to LOGGING_SETUP, as this name is required by
the LoggingConfigMiddleware. Django's default LOGGING setting can
be used with Django>=1.3

Also change default handler to 'console' and add a more verbose format.

e66c7993 09/27/2012 03:59 pm Georgios D. Tsoukalas

don't take mutex for cleanup

a8935947 09/27/2012 03:59 pm Georgios D. Tsoukalas

Enhance pooling API, implementation, and tests

- Verify objects (new and old) with a hook _pool_verify.
Discard objects from the pool that fail verification.
A newly created object failing verification is fatal.

- Remove all hooks from the pool set access critical section....

fb02390b 09/27/2012 03:59 pm Georgios D. Tsoukalas

complete some functionality

d8fe0948 09/27/2012 03:59 pm Georgios D. Tsoukalas

port pooled psycopg2 to new pool api

c156d23a 09/27/2012 03:59 pm Georgios D. Tsoukalas

remove obsolete kwarg verify

b9c83400 09/27/2012 03:59 pm Christos Stavrakakis

Fix bug in http connection pool

Do not reset connetion _pool attribute, since it is not (yet?)
initialized when getting the object from the pool.

68453d22 09/27/2012 03:59 pm Christos Stavrakakis

Enhange logging in db and http pools

db2eb7c8 09/07/2012 05:36 pm Dimitris Aragiorgis

Remove add_reserved_ips from rapi client

In order to be compatible with grnet and upstream ganeti

Signed-off-by: Dimitris Aragiorgis <>

9ef880a4 09/07/2012 05:35 pm Dimitris Aragiorgis

Update rapi to reflect to the upstream ganeti

reserved_ips->add_reserved_ips
Remove Network*All()

Signed-off-by: Dimitris Aragiorgis <>

ab133e68 09/07/2012 01:25 pm Vangelis Koukis

Move pooling psycopg2 wrapper to synnefo.lib.db

Move pooling psycopg2 wrapper to synnefo.lib.db,
please see commit e83ed1fb8fb4d0d19c2d3f86152fde60b3cadfd9 for all the
details on how to use the pooling wrapper for psycopg2.

27cfa807 09/06/2012 05:19 pm Vangelis Koukis

Pool HTTP connections to the astakos service

Have the astakos client use pooled HTTP connections to the astakos
service, uses facilities from synnefo/lib/pool/http.py.

818bb9bf 09/04/2012 04:45 pm Georgios D. Tsoukalas

simple http_request objects over connection pools

2adcd773 08/31/2012 04:47 pm Kostas Papadimitriou

Do not send reserved_ips argument

In rapi CreateNetwork method

7138c600 08/25/2012 03:03 pm Vangelis Koukis

Make pool more robust on obj creation failure

Make ObjectPool handle failures during object creation more robustly,
and release the pool semaphore.

3447b13d 08/24/2012 07:17 pm Vangelis Koukis

Extend ObjectPool functionality, tests

09cdd926 08/24/2012 02:32 pm Vangelis Koukis

Rename ObjectPool methods to pool_{put(), get()}

76cc5746 08/06/2012 05:49 pm Kostas Papadimitriou

Include common date utc formatting methods

de67123e 08/04/2012 01:34 am Vangelis Koukis

Support timeout in ObjectPool.get(), fix tests

Support optional timeout argument in ObjectPool.get(),
if supported by the underlying Semaphore implementation.

Implement command-line argument for ObjectPool unit tests to run
inside gevent monkey-patched environment.

749b8b8e 08/03/2012 06:21 pm Vangelis Koukis

Make minor fixes to Singleton class unit tests

45e32a00 08/03/2012 06:16 pm Vangelis Koukis

Add ObjectPool class in synnefo.lib

Add ObjectPool class in synnefo.lib.
The ObjectPool class is an abstract pool of objects,
based on Semaphore locks, as provided by the threading
package.

Tested to work with a gevent-monkey-patched threading package.
Uncomment the relevant lines in pool/tests.py to test with greenlet...

b606853b 07/27/2012 02:59 pm Christos Stavrakakis

Merge branch 'master' into devel-0.11

Conflicts:
snf-cyclades-gtools/synnefo/ganeti/eventd.py

19092a69 07/24/2012 06:47 pm Vangelis Koukis

Implement Singleton pattern

Implement Singleton pattern inside synnefo.lib.singleton.

Whenever a class inherits from ArgBasedSingleton,
attempts to call the class do not always create a new
class instance, but return pre-existing, already made objects.
...

bedc4f11 07/23/2012 11:39 am Christos Stavrakakis

Fix bug in RAPI

None tags in gnt-network create does not validate.

78548bed 07/23/2012 11:36 am Christos Stavrakakis

Pass tags to ganeti CreateNetwork RAPI call

e0b68525 07/10/2012 12:05 pm Christos Stavrakakis

Fix bug in puka client

28f83276 07/09/2012 03:38 pm Kostas Papadimitriou

Merge branch 'simplequotas' into queues+minor_net

25649e21 07/02/2012 05:55 pm Christos Stavrakakis

Redeclare exchanges when reconnecting

9f1bbb33 06/29/2012 08:46 pm Sofia Papagiannaki

Fix authenticate

1055f3c6 06/29/2012 07:24 pm Sofia Papagiannaki

Differentiate Unauthorized astakos response from other error responses

db400d82 06/29/2012 01:38 pm Christos Stavrakakis

Refactor AMQP client

9c766317 06/06/2012 05:10 pm Christos Stavrakakis

Minor fixes

c4e55622 06/06/2012 04:56 pm Christos Stavrakakis

Update modules interacting with AMQP

Update all modules which are interacting with the RabbitMQ messaging system to
use the AMQPClient in order to use highly available queues in active/active
mode.

Extend messages to include a unique identifier in order to handle...

597e7eba 06/06/2012 03:52 pm Christos Stavrakakis

Client for interaction with a RabbitMQ broker

Introduce a client implementing connection and communication with a RabbitMQ
broker.

This client silently handles connection failures an tries to connect to a
different node. Also uses publisher-confirms to guarantee delivery to the...

a3ad611d 06/01/2012 11:43 am Dimitris Aragiorgis

Import Ganeti v2.5 rapi client.

Import latest version of ganeti rapi client. Include rapi calls for
managing networks that also support chain-job.

Signed-off-by: Dimitris Aragiorgis <>

21a69d65 04/09/2012 06:29 pm Antony Chazapis

Add instance to Aquarium receipt.

6b5b443b 03/16/2012 02:42 pm Antony Chazapis

Provide a fallback token to user library.

f8266c07 03/01/2012 07:11 pm Kostas Papadimitriou

Merge branch 'master' into astakos-integration

f09439ec 03/01/2012 07:09 pm Kostas Papadimitriou

RemoteAddr middleware

reusable middleware that sets the REMOTE_ADDR meta in request, if not
already set.

9af7206b 03/01/2012 06:45 pm Kostas Papadimitriou

Reusable cloudbar context processor

2035039b 02/24/2012 05:49 pm Giorgos Verigakis

Switch to the logging middleware

0fb30b27 02/23/2012 03:16 pm Kostas Papadimitriou

Fixed version extraction from git describe

Refs #2022

8acb1f97 02/23/2012 03:06 pm Kostas Papadimitriou

Common synnefo lib

Includes the following helpers to be used by synnefo django apps

- logging config initialization middlware
- astakos authentication helpers
- parse_http_date compat helper
- rabbitmq client using pika

88506db0 02/14/2012 07:20 pm Kostas Papadimitriou

Updated changelogs for snf-common and snf-webproject

5c285c17 02/14/2012 02:19 pm Kostas Papadimitriou

Entry points utils improvements

- Skip entry points for python distributions names existing in
``SYNNEFO_EXCLUDE_PACKAGES`` environmental variable
- Avoid duplicate entries in list setting objects

9940eacf 01/27/2012 11:16 am Kostas Papadimitriou

Initial split of documentation

- Moved synnefo documentation in docs dir
- Added documentation files for each synnefo package seperately
- Moved dispatcher, admin logging settings in snf-app

9b59a383 01/20/2012 12:38 pm Kostas Papadimitriou

Include vcs information in version files

84e75610 01/19/2012 12:42 pm Kostas Papadimitriou

Improved get_component_version

first try to retrieve version from version module, fallback to
vcs_info

c5aecff5 01/19/2012 12:35 pm Kostas Papadimitriou

vcs_info change

added --tags in `git describe`

eeda4702 01/19/2012 12:23 pm Kostas Papadimitriou

Moved database default config in snf-app

bed8ed73 01/18/2012 06:30 pm Kostas Papadimitriou

Added helper function to collect all default_settings

d9300506 01/18/2012 06:03 pm Kostas Papadimitriou

Remove commit id from vcs_version

3015903d 01/18/2012 10:47 am Kostas Papadimitriou

Missing import

6740cd3a 01/17/2012 06:36 pm Kostas Papadimitriou

Django related fix

cc11c0dd 01/16/2012 12:55 pm Kostas Papadimitriou

Exclude version modules from repository

07d104d8 01/13/2012 02:11 pm Kostas Papadimitriou

Improved packaging

- Improved automatic version tagging from git repo.
- Added auto generated synnefo.<package>.version module to contain each
package version.

2ce0636e 01/12/2012 03:06 pm Kostas Papadimitriou

Initial commit for snf-webproject

- new package snf-webproject
- moved basic django related settings in snf-webproject
- added new entry point utils to ease the extension mechanism of
snf-webproject (urlpatterns, middleware, static_files, installed_apps)...

cfcedbb1 01/09/2012 05:50 pm Kostas Papadimitriou

snf-common fixes

7fb619a0 01/09/2012 05:06 pm Kostas Papadimitriou

Added snf-common package

split out of some commonly used code in a seperate package