Update Copyright for project-related changes
Update Copyright for files merged into develop in 2014 concerning the newprojects mechanism.
astakos: Fix unbound reference
astakos: Omit base projects by default in listing
Add option `--base-projects' to include base projects in the output ofproject-list management command.
astakos: Make project-list a ListCommand
Use --filter-by to filter by owner and name.
Refs #5014
astakos: Adapt resource reconciliation
Assume base project when reconciling astakos resources.
astakos: Add command project-modify
Add a management command that directly modifies an initialized project.
astakos: Refactor resource-modify
Remove interactive operations, rename default-quota to base-default.
astakos: Modify resource project default
Add support in resource-modify for changing the project_default.
astakos: Sync project-based quota
Update quota code to take into account the differentiated sources.There is no more need to lock the user when updating quota; lockingthe project is now adequate.
Update quota listing in management commands; introduce option --quota in...
astakos: Improve printing in quota-verify
Also add option to delete project and user holdings that do not correspondto actual astakos entities.
astakos: Disable setting user base quota
Remove functionality from management commands `quota' and `user-modify'for setting base quota. They will now be handled through projects.
astakos: Adapt to new project/app scheme
astakos: Add project default in resources
Add field `project_default' in resources. This will serve as a skeleton tofill project quota (both project-level and member-level limits) forresources not specified by the application.
The field is initialized by consulting the default base quota (field...
astakos: Identify projects with a uuid
Introduce field `uuid'; use it to refer to projects in the API and themanagement commands.
cyclades: Improvements to Astakos stats
Improve the exposed stats from the Astakos API and the way they aredisplayed in 'stats-astakos' management command.
Catch EOF in astakos/quota commands
Abort operation when raw_input raises an EOFError.
Fix stdout/stderr write in astakos/quota commands
Write actual command output and user prompts to stdout; error and progressmessages to stderr.
astakos: Disallow deletion of accepted users
astakos: List quota for accepted users only
Don't attempt to show quota for non-accepted users, since they don't haveany.
astakos: Associate only accepted users with projects
Allow project enrollment and ownership only for users that are accepted,not just email_verified.
Also change base quota only for accepted users.
astakos: Refactor user creation
Provide auth.make_user() as the single way to create a new user. Thisfunction is responsible to set all automatically generated fields, such asusername, uuid, and token. Clean up AstakosUser.save(), that used toupdate these fields, and remove AstakosUser.__init__(). Remove trigger...
astakos: Reset user sign flags when adding new terms
When new terms are added, set has_signed_terms=False for all users, forcingthem to accept the new terms. If there are no terms, a new user is createdwith has_signed_terms=True.
With this change we can skip querying the terms when authenticating a user,...
astakos: Remove stack traceback
astakos: Preserve visibility flags on register
When re-registering an existing resource, do not override the visibilityflags. They may have been modified by the administrator.
Also fix field naming in resource-list.
astakos: Enhance quota listing
Enable filtering quota by resource, over limit status, usage andlimit values.
astakos: Modify base quota in bulk
Add option `--all' in command user-modify to support setting base quotafor all users. Exceptions can be specified with `--exclude'.
Also select user for update in user-modify.
astakos: Make limits possibly infinite
Register new resources with unlimited quota.
astakos: Rename --limit to --default-quota
Use a more descriptive name for this resource-modify option. Also changeresource-list column `limit' to `default_quota'.
astakos: Preserve existing quota on default change
View the resource defaults as a skeleton to be consulted when acceptinga new user. All users keep their quota in AstakosUserQuota.
Operate resource-modify in bulk, in order to avoiding updating thequotaholder separately for each resource.
astakos: Add resource visibility flags
Rename flag `allow_in_projects' to `ui_visible'. Add flag `api_visible'.The former entails the latter.
astakos: Restrict resource access in API
Make available in the API only resources with api_visible=True.
astakos: Split quota commands
Introduce quota-list and quota-verify.
Remove resource import/export commands
They have been subsumed by the respective service import/export commands.
astakos: Avoid multiple user lookups in quota sync
Also, remove unneeded param of astakos_users_quotas.
cyclades: Export Astakos detailed stats from API
Add new 'astakos_admin' service to export basic statistics about Astakosservice. The stats are exported via the '/admin/stats/detail' API endpoint.Access to this view is only allowed to the users that belong to specific...
astakos: Command to export Astakos statistics
Add new 'snf-manage stats-astakos' management command to export basicstatistics about Astakos, like number of total, active and verified users perauthentication mechanism, together with resource usage for each resource. The...
Merge branch 'master' into develop
Conflicts: Changelog astakosclient/astakosclient/keypath.py ci/utils.py docs/admin-guide.rst snf-astakos-app/astakos/im/cookie.py snf-astakos-app/astakos/im/functions.py snf-astakos-app/astakos/im/quotas.py snf-astakos-app/astakos/im/views/projects.py...
astakos: Handle quota for accepted users
A user is accepted if moderated=True and is_rejected=False. Onlyaccepted users have entries in the quotaholder.
astakos: Update project-list help text
Cleanup project status description in management command project-list.
astakos: Remove custom ForUpdateManager
Remove custom manager that implemented select_for_update(), since thisis already implemented in Django 1.4.
astakos: Remove custom commit_on_success decorator
Prior to 1.3, django wouldn't set the transaction dirty upon a DBexception and thus wouldn't trigger a rollback, resulting in a danglingaborted DB exception. See https://code.djangoproject.com/ticket/9964...
astakos: user-modify command enhancements
New option ``--delete`` to permanently delete a user entry.New option ``--set-email`` to change user's email address.
astakos: Correctly set user password in user-add
password field contains the user password in hashed format. The proper wayto populate the field is by using the set_password method of the user object.
astakos: Handle quota for moderated users only
At some points, verified users where mistakenly assumed.
astakos: Avoid spaces in field names
Rename fields in component-list management command so that they do notcontain spaces.
astakos: Store base URL in component
Deployer should provide it when adding a new component. Service endpointsoriginating from a component are expected to match its base URL; otherwise,a warning is issued during service registration. Re-registration with...
astakos: Show component details
Introduce management command `component-show', which lists componentattributes, including a list with the related registered services.
astakos: Simplify project schema
Applications now point to a project (rather than an extra model Chain).A Project is created upon submitting an application; it always points toa single `reference' application.
Model Chain is kept as a sequence to generate project ids.
astakos: Improve logging for Projects and Applications
Introduce model ProjectLog as well as fields in ProjectApplicationin order to record all actions.
astakos: Allow re-activation of terminated projects
Define function `reinstate' to re-activate a terminated project. If itsname is taken by another active project, it fails.
Fix stale import statements
Commit 7cfc0ce moved code from webproject to snf_django. This commitfixes some stale imports that skipped renaming.
snf-django: Move ListCommand to snf-django
snf-webproject contained the generic ListCommand, and because of this ithad a dependency from snf-django-lib. This commit moves this command fromsnf-webproject to snf-django-lib and removes this dependency. Also,...
astakos: Adapt reconcile-resources to new-style services
astakos: Register resources with services
If service-import finds resource definitions included in a servicedefinition, it imports them, too.
astakos: Add command to remove a component
astakos: Record the service originating a resource
Add field service_origin in model Resource as well as in theresource definitions, indicating the service where the resourcecomes from. It is not a foreign key, in order to allow deletinga component/service, without affecting registered resources and...
astakos: Cleanup and pep8 fixes in commands
astakos: Support reading from stdin in import commands
In commands resource-import and service-import, read from standard inputwith `--json -'.
astakos: Improve argument handling in commands
astakos: Purge services for a given component
Provide option `--purge-services' in command component-modify.One can always use service-import to register the services again.
common: Export only services specified as public
Employ helper function `filter_public' in service-export-* commands.Also set `pithos_ui' service to non-public and clear version of`astakos_ui'.
astakos: Add commands to handle components
astakos: Import new-style services and resources
astakos: add service-export-astakos command
astakos: Remove invitation management commands
Also add a notice in docs that inviting is currently disabled.
docs: Update list of astakos commands
Also fix some help messages.
astakos: rename full-cleanup command to cleanup-full
astakos: Rename group/authpolicy commands
- removed `user-` prefix for shorter command names- condensed auth-policy to authpolicy
astakos: Add missing import in management command
astakos: Update user-add command
removed activate option. User status can be changed using additionaluser-modify commands (--verify, --accept etc.)
astakos: Add confirmation step in service-add
Since there is no way to delete a registered service, confirmationis needed to register a service.
Add also a `--no-confirm' option to bypass this check in service-addas well as in user-modify.
astakos: Disable service renaming
Service name is significant: UI presentational data are indexed byit; resource names are prefixed by it.
astakos: Fix args reading in service-add
Service URL and API URL where set the other way around.Also add checks for the URLs being in use.
astakos: Show value even for unknown resource
Do not fail when looking up the unit, if resource is not found.
astakos: Fix permissions of service-add.py
Unset execute bit for file service-add.py
astakos: Remove commands deleting services and resources
We do not support removing a registered service or resource.
astakos: Add new command service-show
Leave the most important fields of Service in service-list;show all fields with service-show.
astakos: provide get_endpoints api call
astakos: Support changing resource's allow_in_projects
astakos: Cleanup management commands' common file
astakos: Support units in resource-related commands
Add library synnefo.util.units for parsing numerical valueswith an optional unit suffix and printing integer values basedon a given style.
Styles `b', `kb', `mb', etc allow printing in the respective multiples...
astakos: unified settings handling
Import astakos settings module instead of importing specific settings
astakos: Include project membership info in commands
`user-show --projects': Memberships and ownerships for a given user in separate tables `project-show --members': Members of the given project
astakos: Improve output of quota commands
astakos: Filter project listing by name or owner
Use a custom way to retrieve and filter project data; ListCommand isnot suitable when multiple tables must be consulted.
astakos: service-remove change to accept service id
instead of name
astakos: Add AstakosUser status_display property
the property provides a status outline of the current user status.
astakos: Remove code handling UserSetting
Keep UserSetting model; to be removed in a future version.
astakos: Lock chain for projects, user for syncing
Lock project's chain for every operation affecting either a project oran application. Subsequently, lock user when needing to sync or to issuecommission to update pending_app quota.
In views, replace locking qh_add_pending_app with check_pending_app_quota,...
astakos: do not catch send mail errors
The user should not be informed if for any reasonthe server can not send an email.
Revert "astakos: fix send mail error handling"
This reverts commit 903ce7dccb44db3d3e5fd280a7683747dfa37d7f.
astakos: fix send mail error handling
Restore SendMailError, ChangeEmailError and SendFeedbackError exceptions(deleted by previous commit) since they are still used.
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
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: Do not show obsolete user settings
Also fix printing user quota.
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...
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