fix dependency snf-branding-app -> snf-branding
branding: include package static assets in setup.py
Update changelog
Add changelog entry about lazy networks and 'type' attributein network create API request.
astakosclient: Trick setup into loading version module
setup.py tries to load astakosclient.version modulebefore checking for astakosclient package dependencieswhich leads to importErrors.
Trick setup to load only version module by changing sys.path.
astakosclient: Use path given in astakos_url (if any)
Add snf-branding version file to gitignore
snf-branding: Remove version.py file
ci: Install snf-branding before astakos
ci: Add snf-branding to projects
astakos: Fix typo in tests
astakos: fix incomplete previous commit
commit 1439d6383113b151b6a3316e320a0418fa30d421
astakos: api calls authenticated via X-Auth-Token shall not affect cookie
CookieAuthenticationMiddleware.process_request() synchronizesthe astakos cookie with the request user.If an astakos cookie is set but there is no logged in user,the middleware deletes the cookie....
astakos: Split settings in separate modules
astakos: Update activation email content
astakos: Clean up user-list filter options
removed deprecated options `-p` and `-n`. Admins should use`--pending-moderation` and `--pending-verification` instead.
astakos: Allow admin to verify user from command line
using the new option `--verify` added in `user-modify` command
Merge branch 'feature-branding' into develop
Conflicts: snf-astakos-app/astakos/im/templates/im/account_pending_moderation_notification.txt snf-astakos-app/astakos/im/templates/im/group_creation_notification.txt snf-astakos-app/astakos/im/views.py
cyclades: Update proxy user services
use the common api.proxy method from snf-django-lib
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.
astakos: Let qh errors through when issuing commission
When registering pending apps, catch only NoCapacityError. No otherQuotaholderError is expected and should not be treated here.
astakos: Do not show obsolete user settings
Also fix printing user quota.
quotaholder: Ignore force option when releasing
Since negative usage makes no sense, we always check this lowerboundary when issuing a commission.
astakos: Force query eval when used in __in filter
Related to commit aee9a38
Also fix call of qh_sync_users in migration script.
astakos: Allow submitting application with no resources
cyclades: Move common code to seperate function
Move common between API method and management command for creating aserver to a separate function.
cyclades: Fix bug in flavor-modify command
Fix bug in flavor-modify command, which resulted in flavors being alwaysdeleted. Deleted option must be parsed to bool, otherwise is alwaysTrue.
helpdesk: Use 'mock' library to bypass auth
Use mock to library to bypass astakos authentication in helpdesk views.
webproject: Do not disable existing loggers
Do not disable by default all existing loggers.
astakos: check that request.user is a 'User'
Update astakos 'get_menu' API method, to check if request.user is aninstance of django User model. This view function called by astakoscontext processor. However, if astakos and helpdesk are installedtogether, the request.user will not hold an AnonymousUser, but a...
astakos: Update tests
Enforce Group entries flush. As a fix to strange errors raised while runningtests using sqlite database. The driver doesn't seem to be able to properlycleanup related database entries, a procedure that takes place after eachexecution of a TransactionTestCase test.
astakos: Typo fix
astakos: Fix provider_login_url template tag
Synnefo branding: Documentation correction & minor fixes
Merge branch 'develop' into feature-astakos-userflow
astakos: Adapt tests to 2.6-style unittest
Define assertGreater, assertIn, assertRaises in snf_django.utils.testing
common: Disable proxy in tests
Do not follow redirections in im tests.
robust version importing in docs build config
After changing sys.path, synnefo and synnefo.versions must be reloadedbecause if they have been cached, the updated sys.path will not beconsulted because importing synnefo and synnefo.versions will stop atthe cache in sys.modules
pithos: fix tests
Change erroneous import
astakos: User activation flow improvements
Major refactoring on user email verification/activation process---------------------------------------------------------------Activation logic moved from dispersed code in functions/view modules toActivationBackend methods. All user activation handling code in astakos views...
- In sync with new AstakosUser model- Remove nested settings wrappers to slightly increase tests performance
astakos: Remove deprecated AstakosUser fields
astakos: Avoid using dicts as default arguments
astakos: Remove obsolete code
Remove project_tests.py, empty package im.endpoints and fixtures
astakos: Remove membership policy settings
Available join and leave policies are internally defined and shouldnot be changed by settings. Move policy descriptions to presentation.py.
Do not convert to string the lookup key in templatetags/filters.py
astakos: Remove obsolete keyword argument ctx
astakos: Improve quota syncing
- Split code that lists and syncs quotas - Merge the latter with qh_sync_users - Move qh_sync_projects in quotas.py; sync only active members - Add missing select for update in project suspend - Clean up quotas.py
astakos: Remove two options from resource-import
--service: We do not support automatic importing of resources--conf: Use resource-modify to configure resource limit
Replace 'synnefo.lib.http' with 'objpool.http'
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.
cyclades: fix db migration
Migration 0066 should not run on a fresh installation.
astakos: keep top level api urls for this version
snf-django-lib: provide proxy functionality
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: change authenticate api call
``/astakos/api/authenticate`` calldoes not include any more resource usage in the reply.(``usage`` request parameter has become obsolete)The services in order to get the resource usage should call``/astakos/api/quotas`` instead.
Snf-branding documentation
ci: Install astakosclient before snf-django-lib
cyclades: Make cyclades work with pycrypto==2.6
In PyCrypto 2.6, it is mandatory to use an IV of 16 bytes when using AESencryption. This commit updates 'aes_encrypt' module to use a random IV.Also, a data migration is required to re-encrypt the old passwords, as...
pep8 fixes
Correct merging error
astakos: Rename astakos-quota command to quota
Also replace `quotas' with `quota' in strings and command line options.
ci: Add quotaholder_app to tests
astakos: Tests for quota API calls
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
branding: correct snf-branding-app dependencies
Merge branch 'develop' into feature-branding
Conflicts: snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.js snf-astakos-app/astakos/im/templates/im/base.html snf-astakos-app/astakos/im/templates/im/landing.html snf-astakos-app/astakos/im/views.py...
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.
Synnefo branding: Remove greek text & verbal fixes
Emails sent to Astakos Users do not contain greek translations any more.Minor verbal corrections are made and title attribute are added to logoslinks.
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.