Statistics
| Branch: | Tag: | Revision:

root / snf-common / synnefo @ 6de5850a

# Date Author Comment
6de5850a 12/14/2012 06:22 pm Christos Stavrakakis

Fix test settings

LOGGING has been renamed to LOGGING_SETUP

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

ab132890 11/28/2012 04:50 pm Giorgos Korfiatis

Fixes in unpack

f3327431 11/28/2012 04:08 pm Giorgos Korfiatis

Show input canonical

f78e128d 11/28/2012 04:06 pm Georgios D. Tsoukalas

integrate Args and argmap, change argmap magic pos

e8051c20 11/28/2012 02:01 pm Georgios D. Tsoukalas

rename betteron to argmap, add manipulation methods

b40fb1e6 11/26/2012 02:59 pm Kostas Papadimitriou

Fix utf8 header

move it to the top of the file

a7cdc223 11/26/2012 12:01 pm Giorgos Korfiatis

Rename set_full_holding to init_holding

8dc7c13b 11/26/2012 11:05 am Giorgos Korfiatis

Implement release_holding

5b522bc3 11/26/2012 11:02 am Giorgos Korfiatis

API call to set the whole holding.

7b1891cc 11/26/2012 11:00 am Giorgos Korfiatis

Do not create entity in issue_commission.

6afede3f 11/26/2012 10:57 am Giorgos Korfiatis

Do not allow duplicate provisions in a commission.

3e5941c1 11/23/2012 04:24 pm Giorgos Korfiatis

Add copyright.

665f2326 11/23/2012 04:22 pm Giorgos Korfiatis

Delete unused files.

f54beeea 11/23/2012 03:36 pm Giorgos Korfiatis

Move commissioning into snf-common.

833abd3c 11/22/2012 06:00 pm Giorgos Korfiatis

Merge quotaholder into synnefo

a8858945 11/22/2012 01:24 pm Christos Stavrakakis

Make amqp_puka get logger as argument

20a0af52 11/09/2012 12:50 pm Kostas Papadimitriou

Merge branch 'cleanse-settings' into devel-0.12

fdfd8c6d 11/08/2012 01:21 pm Christos Stavrakakis

Fix dispatcher logging

3f16a6c7 10/29/2012 06:31 pm Kostas Papadimitriou

Proper exception representation

1e2cc762 10/29/2012 02:28 pm Kostas Papadimitriou

Merge remote-tracking branch 'origin/devel-0.12' into ui-0.11

d80813fb 10/25/2012 05:29 pm Stratos Psomadakis

Minor changes

f12085fa 10/24/2012 10:58 pm Stratos Psomadakis

Cleanse sensitive settings in debug output

In case of server errors prevent django from printing or emailing sensitive
settings.

ed275428 10/24/2012 01:27 pm Christos Stavrakakis

Merge branch 'master' into devel-0.12

Conflicts:
snf-cyclades-app/setup.py

6690e770 10/24/2012 12:47 pm Christos Stavrakakis

Do not import logging in common default settings

bdff90d3 10/24/2012 11:55 am Christos Stavrakakis

Move LOGGING_SETUP from common to webproject

eeffcbea 10/23/2012 04:28 pm Kostas Papadimitriou

Merge branch 'devel-0.12' into ui-0.11

147c3d12 10/19/2012 04:55 pm Christos Stavrakakis

Add support for dead-letter-exchange to amqp_puka

Also add support for custom headers when publishing messages.

257b694d 10/19/2012 04:52 pm Christos Stavrakakis

Implement basic_nack and basic_reject AMQP methods

Basic_nack method is not support by puka. We are implementing
basic_nack as basic_ack since they have the same effect when
multiple and requeue options are not used.

b1bb9251 10/18/2012 06:24 pm Christos Stavrakakis

Reconnect to different Broker if idle for too long

Modify snf-dispatcher and add a timeout option to basic_wait method. If
timeout is reached, the connection to the current RabbitMQ broker is
closed and dispatcher tries to connect to a different one.

This commit is supplementary of 6d27ead, which detects connection...

6d27eadd 10/18/2012 05:16 pm Christos Stavrakakis

Detect and handle connection problems in amqp_puka

Use the TCP keepalive feature in amqp_puka in order to detect connection
errors to the RabbitMQ broker, and retry to a different one. Also setup
the keepalive parameters to relative small values, to detect failures...

336cfa15 10/11/2012 06:58 pm Vangelis Koukis

Merge branch 'devel-0.11'

c24ca4e8 10/11/2012 06:17 pm Vangelis Koukis

Bail out if any settings file is unreadable

Log an error to stderr and die immediately if any settings file
under SYNNEFO_SETTINGS_DIR (/etc/synnefo by default) is unreadable.

Also remove use of braindead Python glob(), which ignores access failure
errors, and fails silenty....

af471421 10/11/2012 05:43 pm Christos Stavrakakis

Increase snf-manage logging level to warning

d01cd522 10/10/2012 03:19 pm Christos Stavrakakis

Various fixes about logging

Fix logging from snf-manage commands. Modify snf-manage implementation
in order to setup the loggers for all snf-manage commands. Configuration
is based on SNF_MANAGE_LOGGING_SETUP setting from snf-common or on
basicConfig if that setting is missing....

805e5b12 10/09/2012 05:48 pm Kostas Papadimitriou

Merge branch 'master' into ui-0.11

7b2ce6b4 10/09/2012 05:08 pm Vangelis Koukis

Merge branch 'devel-0.11'

9557ea30 10/09/2012 05:01 pm Vangelis Koukis

Fix duplicate return of HTTP connection into pool

Fix duplicate return of HTTP connection into pool on duplicate
invocation of conn.close().

Revert commit b9c834003, and make sure a connection object's _pool
attribute is re-initialized whenever it is retrieved from the pool....

b16db49b 10/09/2012 04:27 pm Kostas Papadimitriou

Merge branch 'devel-0.11' into ui-0.11

Conflicts:
snf-cyclades-app/synnefo/db/models.py
snf-cyclades-app/synnefo/logic/backend.py
snf-cyclades-app/synnefo/ui/static/snf/js/models.js

2ef10562 10/08/2012 02:30 pm Christos Stavrakakis

Change eventd and dispatcher AMQP retries

Set unlimited connection retries to AMQP hosts for snf-ganeti-eventd,
since death of snf-ganeti-eventd results in loss of events.
Also increase retries of snf-dispatcher.

b537ac01 10/08/2012 11:19 am Christos Stavrakakis

Fix bug in amqp_puka

Make AMQPConnectionError an exception

0e573e6b 10/05/2012 10:55 am Christos Stavrakakis

Restore Ganeti RAPI client to snf-common

Temporary commit in order to restore Ganeti RAPI client to snf-common
until snf-cyclades-app 0.11 is released.

3524241a 10/03/2012 12:22 pm Christos Stavrakakis

Pool Ganeti RAPI clients

- Move Ganeti RAPI client from snf-common to snf-cyclades-app/logic.
- Create GanetiRapiClientPool for pooling GanetiRapiClient objects
- Create context manager in db.models for pool handling
- Update code using the RAPI client

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

11976ee3 09/17/2012 07:24 pm Kostas Papadimitriou

Merge branch 'devel-0.11' into ui-0.11

Conflicts:
snf-common/synnefo/lib/astakos.py
snf-cyclades-app/synnefo/ui/static/snf/js/models.js

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

ecdf098e 09/03/2012 01:27 pm Sofia Papagiannaki

Define UserEvent

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

Do not send reserved_ips argument

In rapi CreateNetwork method

ecd1058e 08/31/2012 04:45 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()}

5a3f410b 08/09/2012 03:33 pm Kostas Papadimitriou

Merge branch 'devel-0.11' into ui-helpdesk

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

3ed8ff2b 08/01/2012 04:49 pm Kostas Papadimitriou

Merge branch 'master' into ui-helpdesk

Conflicts:
snf-common/Changelog

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