astakos: Return empty dict when no user quotas found
snf_django: Use wraps in transaction decorator
This is to preserve name of called function.
astakos: Return resource object upon creation
astakos: Indent json output of resource export
cyclades: Various fixes to tests
ci: Add 'quotas' app to tests
common: Remove obsolete 'queue' module
Merge branch 'feature-no-hooks' into develop
gtools: remove obsolete hooks
Remove obsolete hooks from Cyclades Ganeti tools. Hooks were only usedto send the notify Cyclades about the NICs of instances, which is nowperformed by eventd.
eventd: pep8 fixes
dispatcher: Handle NICs in callbacks.
Update 'update_db' callback to handle instance NICs together withinstance status.
Also update the relevant tests.
gtools: Handle case of eventd not in master
Handle the case the 'snf-ganeti-eventd' is not running in Ganeti masternode, but in a master candidate. In such a case, we can not get a Ganeticlient. Until Ganeti conf daemon is implemented, we manually load and...
gtools: remove hook from entry points
cyclades: simplify comparison of NICs
Remove 'snf-events-net' queue and binding
Remove 'snf-events-net' queue (together with the corresponding routingkey and binding) from the queues that snf-dispatcher is consumingmessages. This queue is no longer needed, because messages for instanceNICs will be sended by snf-ganeti-eventd to 'snf-events-op' queue....
gtools: Make eventd send instance NICs
Update eventd daemon to get the instance NICs by querying Ganeti andsend them to Cyclades.
cyclades: Fix deadlock when connecting vms
Fix deadlock caused by 'get_or_create' method, since it acquires animplicit shared lock. Take an exclusive lock on network to fix thisdeadlock.
cyclades: Fix stale 'DeletedError' exception
cyclades: Fix typo in comment
cyclades: Fixes relevant to lazy networks
cyclades: Simplify reconcile-networks checks
Refactor and simplify checks of reconcile-networks to take advantageof lazy networks.
cyclades: Fix bug in management command
Do not try to issue commission for networks without user (e.g. publicnetworks), when deleting them.
astakos: Fix call to util function send_feedback
quotaholder: Unify included data in overLimit errors
Replace `available' with `usage' and `limit' in NoQuantityErrorto make it similar to NoCapacityError.
astakos: Remove command user-set-initial-quota
To change base quota for a specified user: snf-manage user-modify user --set-base-quota resource limit
To import base quota in batch from a file: snf-manage astakos-quota --import-base-quota filename
Rename `initial' to `base quota' in command output....
astakos: remove obsolete code
astakos: update commands in README
pithos: remove dependency from synnefo.lib.queue.Receipt
astakos: List quotas in user-show with `--quotas'
Refs #3530
Use the same utility function as astakos-quota. Update the latterto a SynnefoCommand.
astakos: Use DateTimeField for enhanced precision
Refs #3717
Replace instances of DateField in ProjectMembership andProjectMembershipHistory.
Revert "astakos: Fix bug in getting membership"
This reverts commit 7ce770be9fd9668fff4088eff2421cbeb0cc311e.
Update astakos tests to use membership id.
Merge branch 'feature-lazy-networks' into develop
cyclades: update tests for lazy networks
cyclades: Update 'backend-add' for lazy networks
Do not create private networks when adding a new backend. Since,"lazy networks" this is no longer needed.
cyclades: Implement lazy networks
Implement "lazy networks", which are not created to all Ganeti backendsupon creation, but only when an instance that resides in a Ganeti isconnected to that network.
Update 'create_network' to create the Network object in DB without...
Merge branch 'feature-quotas' into develop
Conflicts: docs/dev-guide.rst
cyclades: add commissioning to create/remove cmds
Update create/remove management commands to issue commission whenneeded.
astakos: Remove an obsolete function
Remove synnefo.lib.commissioning
astakos: include resource presentation info in authenticate response
If option parameter ``usage`` is passed then the response shouldcontain also the resource presentation information(as it used to be in the past)
Merge branch 'feature-astakos-urls' into feature-quotas
astakos: remove astakos.im.api module
Replace all AstakosCallpoint references
astakos: remove user argument from the api methods
User request.user field (set by user_for_token decorator)
astakos: WIP move all api calls under ``/astakos/api``
Refs: #3340
astakos: Change user_for_token decorator
user_for_token after successful user authenticationsets the request user attributeThe wrapped methods no more need the ``user`` argument:they can get the token holder by the request object
astakos: rename api utility methods
pithos: use AstakosClient to delegate user services to astakos
astakos: fix user api utility calls
fix typo
astakos: Fix one test
Fix race condition in one of Astakos tests.
Add 'ASTAKOS_POOLSIZE' setting.
helpdesk: Fix helpdesk tests
astakos: Various fixes to tests
Do not user 'assertItemsEqual' method of unittest is only supported inpython 2.7.
Also, some arguments have been renamed.
astakos: Fix bug in getting membership
Search based on 'person__id' and not 'id'.
Merge branch 'tmp-pithos-db-escape-warning' into develop
Improve mocked quotaholder
Mock 'resolve_commissions' call.
cyclades: Fix vmapi test
Use 'urljoin' to compute the 'config_url' parameter.
Merge branch 'feature-api-docs' into develop
Minor Conflict: docs/cyclades-api-guide.rst
cyclades-api-guide: minor fixes/remove whitespaces
astakos: Remove deprecated Project methods
add_member, remove_member were not used.
webproject: Do not ljust values in vertical mode
Left-justifying resulted in long wrapped empty lines, when a valueexceeded the line size.
astakos: Visually separate apps in project-show
astakos: Handle prompt for additional login methods
astakos: Exclude non existing services form Service.catalog
Always return services that exist in database. If a known service existsuse the predefined presentation data as base dict upon which we build upthe returned info by merging the data stored in service model and the...
cyclades ui: Remove deprecated setting
astakos: Proper string type check
using basestring also handles unicode objects
cyclades ui: Expose and use the new astakos quota api
- Removed /userdata/quota view in respect of astakos quotas api delegate views served in the same urls used by astakos api (/astakos/api/quotas, /astakos/api/resources). Base url is configurable using the...
astakos: Control project members by membership id
astakos: Add reason for all actions on applications
For cancel and dismiss, it is for now just a placeholder.
astakos: Cleanup some project methods
astakos: Make submit_application arguments explicit
Remove synnefo.lib.quotaholder
Use astakosclient to access the quotaholder instead.
astakos: Remove unneeded import of a constant
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
astakos: Cleanup input of submit_application
Form passes only a tuple (name, limit) for each selected resource,omitting presentational data.
astakos: Handle pair of exceptions properly
astakos: Remove unused project_error_view
pithos: Remove unnecessary logging in public url unset
pithos: Define and export resources in json format
Provide management command resource-export-pithos.
pithos: Remove obsolete settings from database migrations
Use astakosclient to retrieve user information
pithos: Add name in reconciling commission
cyclades: Fix import of urlparse
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
Merge branch 'feature-quotas-pithos' of https://code.grnet.gr/git/synnefo into feature-quotas-pithos
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
pithos:Ensure serial registration before commission
Commit transaction before accepting the commissionand delete registered serials after successful commission.
Refs: #3594
pithos: extend sqlite library for commission reconciliation
Merge branch 'tmp-allow-in-projects' into feature-quotas
astakos: Resources metadata improvements
- Allow admin to overwrite default resources presentation data using ASTAKOS_RESROUCES_META setting. dict_merge is used to accomodate admin from declaring all available metadata parameters.- Enforce allow_in_projects resource policy in project application...
common: Recursive dictionary merge helper method
ci: Remove snf-quotaholder-app from ci/config
ci: install snf-django before webproject
Try to intall 'snf-django-lib' before 'snf-webproject', since thewebproject depends to snf-django.