Commit 8bad2e9b authored by Stratos Psomadakis's avatar Stratos Psomadakis
Browse files

Correctly instantiate pithos backend pool

Plankton should explicitly pass quotaholder related args to the pithos
backend pool constructor (after the feature of deregistering images
without deleting them is implemented, plankton should only pass
quotaholder_enable=false to the constructor).

Refs #3357
parent f729b5c9
......@@ -63,6 +63,10 @@ from pithos.backends.base import NotAllowedError as PithosNotAllowedError
import synnefo.lib.astakos as lib_astakos
import logging
from synnefo.settings import (CYCLADES_USE_QUOTAHOLDER,
CYCLADES_QUOTAHOLDER_URL,
CYCLADES_QUOTAHOLDER_TOKEN)
logger = logging.getLogger(__name__)
......@@ -113,6 +117,9 @@ from pithos.backends.util import PithosBackendPool
POOL_SIZE = 8
_pithos_backend_pool = \
PithosBackendPool(POOL_SIZE,
quotaholder_enabled=CYCLADES_USE_QUOTAHOLDER,
quotaholder_url=CYCLADES_QUOTAHOLDER_URL,
quotaholder_token=CYCLADES_QUOTAHOLDER_TOKEN,
db_connection=settings.BACKEND_DB_CONNECTION,
block_path=settings.BACKEND_BLOCK_PATH)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment