pithos: initialize prefixes from service catalog
service catalogs: autofill endpoints from BASE_URL
pithos: add service-export-pithos command
make synnefo URLs consistent and configurable
https://service.deployment.vendor.tld/service-base/api-prefix/hard/path |___________________________________| |__________| |________| |_______| BASE_HOST BASE_PATH PREFIX Hardcoded...
docs: Update list of pithos commands
Also list in a separate section the pithos-manage-accounts commands
Catch QuotaLimit exception when reconciling resources
This can happen, if the actual usage registered by a service exceedsthe quota limit.Advise the user to try the --force option.
pithos: fix tests
Change erroneous import
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.
pithos: use common proxy functionality for astakos services
Remove pithos.api.delegate moduleKeep top level api urls for this version
pithos: change resource usage retrieval
Replace ``astakosclient.get_info()`` with ``astakosclient.get_quotas()``
astakos: WIP move all api calls under ``/astakos/api``
Refs: #3340
pithos: use AstakosClient to delegate user services to astakos
pithos, cyclades: Name reconciling commissions
Use commission name "RECONCILE" to distinguish such operationsin the quotaholder provision log.
pithos: Change reconcile-resources-pithos command
in order to conform with the respective Cycladescommand
pithos: Define and export resources in json format
Provide management command resource-export-pithos.
pithos: Add name in reconciling commission
Merge branch 'feature-quotas-pithos' into feature-quotas
Conflicts: snf-cyclades-app/synnefo/plankton/backend.py snf-pithos-app/README snf-pithos-app/pithos/api/util.py
pithos: Update merged code
pithos: Update pithos management commands
Refs: #3625
pithos: manage_accounts support for both sqlalchemy and sqlite
pithos: Rename backend quotaholder properties
Refer to astakosclient instead of quotaholder
WIP astakosclient for quotas in pithos
pithos: Utilize astakosclient for quota handling
Refs: #3625, #3650
snf-pithos-app: Use astakosclient
pithos: remove redundant settings
Remove 'PITHOS_USER_CATALOG_URL' and 'PITHOS_USER_FEEDBACK_URL' and'PITHOS_USER_LOGIN_URL' settings, since all of them can be derived from'ASTAKOS_URL' setting.
PEP8 style fixes
pithos: Change default container quota policy
Set PITHOS_BACKEND_CONTAINER_QUOTA to 0(to disable by default the container quota check)instead of setting to something big
Refs: #3543
pithos dispatcher: change erroneous import
Change pithos default container policy quota to unlimited
pithos: Change conflict handling in object write
Pithos in case of missing blocks during smart object write(using hashmap) used to raise an api fault with payloadthe list with the missing blocks serialized in json format.
However, the common api_method decorator in case of api fault...
Fix API decorator response Content-Type
Remove check for response Content-Type, since 'django.http.HttpResponse'has always a default Content-Type of 'text/html; charset=utf-8'. Viewsdefining their response 'Content-Type' should set the'override_serialization' attribute of response to 'True'.
pithos: optionally fix unresolved commissions
provide --fix option for the pithos-reconcile-commissions command
Refs: #3594
Fix pithos-usage command help
Refs: #3591
Update pithos-usage command to list/reset diverging quotas
Fix pithos-reconcile-commissions command
Get pending commissions specifically for pithos
Provide a pithos-reconcile-commissions command
Make 'api_method' to take astakos_url as argument
Add ASTAKOS_URL to pithos.api.settings
Improve settings related to ASTAKOS url
Rename 'PITHOS_AUTHENTICATION_URL' setting to 'ASTAKOS_URL'. Also remove'PITHOS_AUTHENTICATION_USERS' from docs (it was removed from code incommit 8df4fae).
Modify 'ASTAKOS_URL' to point to the node hosting the Astakos service...
Improve pithos-usage command performance
Merge branch 'feature-snf-django' into develop
Conflicts: docs/older/Changelog.pithos-app snf-astakos-app/astakos/im/api/__init__.py snf-pithos-app/pithos/api/util.py
Deactivate pithos md5 update by default
Refs: #3554
Make pithos backend pool size configurable
Refs: #3561
Move astakos lib from snf-common to snf-django-lib
Use 'python-objpool' instead of 'synnefo.lib.pool'
Use the python-objpool package for pooling resources as object, insteadof the pooling code that existed in snf-common ('synnefo.lib.pool')
Refs #3524
Move parsedate module to snf_django
Add ASTAKOS_URL setting to PITHOS
Common 'api_method' decorator, needs the ASTAKOS_URL setting toauthenticate with Astakos. Create this setting for Pithos basedon PITHOS_AUTHENTICATION_URL.
Remove PITHOS_AUTHENTICATION_USERS setting
Remove this setting as it introduces unnecessary complexity. Also,it will need to be supported by snf-astakos-client. If needed bytests to bypass communication with astakos, a mocking library shouldbe used.
Use common 'api_method' decorator in pithos api
Add fault.xml template to pithos and astakos
Move cloud faults to 'snf_django.lib.api.faults'
Gather all faults from all synnefo projects into common'snf_django.lib.api.faults'.
minor refactor object_list for clarity
Change pithos api public object handling
Expose public URL information only to the object owners.
Change pithos public URL implementation
Refs: commit: 56f3c759
Do not include encoded serial in the public URL.
Change PITHOS_PUBLIC_URL_MIN_LENGTH setting toPITHOS_PUBLIC_URL_SECURITY.
Log public set/unset functions.
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)...
Change pithos public implementation
Public URLs should consist of a random part.A public URL should be unique and should not beequal to any deleted public URL.Finally publishing a public object has no effect.Therefore, to generate a new public URL for an...
Eliminate mutable default arguments
Integrate Pithos usage listing and reseting,globally and per-user.
Refs: #3309
Substitute pithos-reset-usage withpithos-usage management commandand extend it to list also account usage.
Fix pithos get object metadata response headers
X-Object-Modified-By header was accidentallyeliminated in the response
Remove pithos logger from pithos settings
Loggers for all synnefo components should be configured insnf-webproject setting file '10-snf-webproject-logging.conf'.
Clear pithos InternalServerError response
Do not include in the InternalServerError responsethe actual error.
Fix inadvertent use of shared objects
Fix inadvertent use of shared objects in synnefo/lib/astakos.py andpithos/api/delegate.py, since current use is racy when running multiplerequests under gunicorn. Create a private, per-request copy instead.
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...
fix and better document quota export/import
Rename synnefo.local -> example.synnefo.org
As determined by a spontaneous committee, based on
- .local is used
- 'example' strongly hints to configuration action
- synnefo.org is under control.
Bug fixing
cleanup astakos settings
cleanup pithos settings
Explicitly enabled/disable pithos quotaholder component
Use PITHOS_USE_QUOTAHOLDER setting
Add missing pithos setting documentation
More pithos documentation
Fix pithos configuration
Update pithos-reset-usage command
Enable reset pithos usage for specific accounts
Change default pithos url settings
Point to astakos host.
rename to pithos-reset-usage.py
Fix pithos sharing translation
Perform only one split to separate group owner from name
Add missing uuid translation
Translate X-Source-Account if TRANSLATE_UUIDS is set
pep8 compliance
Change pithos-manage-accounts options
Do not call user_catalogs if AUTHENTICATION_USERS is set
Check for None in is_uuid
Provide command for managing pithos duplicate accounts
ui compatibility: translate uuids to display names
Fix get_user argument
Change pithos service user_catalogs url
Change pithos user catalog api call path
Pithos set usage send only current quota (not history/deleted)
pithos-set-quota: rename and refactor for clarity and correctness
Quotaholder error handling during sending existing pithos usage
If quotaholder fails if a pithos account is not registered,retry by sending the usage for the rest.
Catch quota errors in pithos server
Fix pithos settings
Pithos: handle quotaholder exception errors
Change default astakos service urls in pithos settings.
Update docs and settings
Fix urls
Change astakos /login/redirect path to /login
Fix name error