snf_django: Change error status code if request method is not valid
Return 405 (NotAllowed) instead of 400 (BadRequest)Add Allow header in the response containing the list of valid methods
pithos: Fix test
Merge branch 'feature-astakosclient-auth-url' into develop
Fix pep8 errors
Trim trailing slash from ASTAKOS_AUTH_URL
Endpoints no more end in slash.
upgrade-notes: Add note for new 'ASTAKOS_AUTH_URL'
snf-pithos-app: Use the new AstakosClient
snf-deploy: Use the new AstakosClient
docs: Use the new AstakosClient
Changelog: Use the new AstakosClient
astakosclient: Update documentation
astakosclient: Usage request parameter deprecated
Astakos' Authenticate Api Method has deprecated the `usage' requestparameter. Remove it from AstakosClient.
astakosclient: Fix astakosclient tests
ci: Extend tests.sh to run astakosclient unittests
ci: Prefer IPv4 over IPv6
Set up the newly created machine to prefer IPv4 connections(mainly for apt-get) over IPv6 connections.
astakosclient: Separate public/private POST /tokens
Introduce function authenticate(), which performs POST /tokens inprivate mode, i.e. giving a token to be checked for authentication.Function get_endpoints() performs the call in public mode, in orderto retrieve the endpoints....
astakos: Remove call GET /authenticate
Use POST /tokens to authenticate. Delete AstakosClient.get_user_info()and replace its uses by AstakosClient.authenticate().
snf-cyclades-app: Use the new AstakosClient
Change AstakosClient to use ASTAKOS_AUTH_URL as entry point to theAstakos service, instead of ASTAKOS_BASE_URL it was using until now.
Remove ASTAKOS_BASE_URL from Cyclades settings, replace it withASTAKOS_AUTH_URL. Modify Cyclades to determine ASTAKOS_ACCOUNT_URL and...
astakosclient: Complete redesign astakosclient
Accept auth_url as the default entry point andquery astakos endpoints to find out theaccount and ui urls.
astakos: Move astakos_services from astakosclient
Move astakos_services from astakosclient to astakos.api.services.
django-lib: Use the new AstakosClient
pithos: Eliminate AssertionError in views
Remove check for not allowed request method in view_method() decorator.Let the api_method() decorator handle such cases.
Refs: #4501
pithos: Handle database errors during permission updates
Refs: #4502
cyclades: pep8 fixes
cyclades: Fix userdata tests
Mock the 'snf_django.lib.astakos.get_user' function.The way it was done didn't seem to work.
pithos: Fix permission listing for objects containing / in their name
Add tests
cyclades: Fix userdata limit check
Argument passed to PublicKeyPair.user_limit_exceeded() was a dictrather that a string (user uuid). Django would happily convert itto a string and pass it through to the database query.
Also fix a minor bug in tests.
snf-ci: Run the unit tests for cyclades-userdata
ci: kamaki config.get_global method is deprecated
Use the newer config.get("global", ..) syntax.Fallback to the old one for older version of kamaki.
deploy: chown root.www-data /var/log/gunicorn
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
ci: Improve pep8 script
Rewrite the script in python.Invoke pep8 for a list of files given in the command line.Exclude files which are not python ones (their names don'tend with .py) or are not real files (i.e. have been removedduring the last commit).
pithos: Extend/fix tests
pithos: Update/fix sqlite backend module
snf-deploy: pep8 fixes
snf-deploy: Add fabric as a dependency
deploy: use execute() instead of fab
This way we have a unique execution environment betweensnf-deploy script and fabfile. Arguments and optionsare handled way more easily. Get rid of the twisted codethat was passing command line arguments to fabric....
deploy: just move fabfile into python module
This prepares the refactor that will take place in the following ones.
Revert "cyclades: Fix bug when deleting instances"
This reverts commit 8331c929facc5849b98e0fb945d047a4f4504b3a. Beforethis commit is applied we must extend DeleteInstance method ofGanetiRAPIClient to support the 'depends' attribute.
cyclades: Include paramiko as required dependency
paramiko is required in automatic ssh key generation
pithos: Do not report size change in move folder operation
Refs: #4154
cyclades: Fix bug when deleting instances
If OP_INSTANCE_REMOVE runs before OP_INSTANCE_CREATE the job will fail.Dispatcher will ask Ganeti if the instance exists, and if not it willrelease it's IPv4 address. However the instance may not exist because it...
astakos: Consider no base url in service register
Check whether component's base_url is None before assuming a string.
astakos: Fix system setup in stress test
pithos: Delete rejected quotaholder serials
astakos: Update docs
Remove obsolete ``usage`` parameter from ``authenticate`` api call
astakos: pep8 fixes
Merge branch 'develop' of https://code.grnet.gr/git/synnefo into develop
Merge branch 'feature-apidocs-personality-inject' into develop
cyclades: Fix check for backend disk_templates
Fix the way that is checked that the disk template of the flavor isincluded in the available disk templates of the backend. Using'contains' is wrong because you may searching for 'file' disk template,will there is enabled the 'sharedfile' disk template.
astakos: Update project-list help text
Cleanup project status description in management command project-list.
snf-ci: Bulid pithos-web-client package
Synnefo depends on pithos-web-client. Up until nowwe were downloading this package from apt.dev.grnet.gr.But when we make a change in Synnefo that also affectspithos-web-client, we have to upload a new version of...
Merge branch 'feature-astakos-wheezy' into develop
astakos: pep8 fix
astakos: Remove custom ForUpdateManager
Remove custom manager that implemented select_for_update(), since thisis already implemented in Django 1.4.
astakos: Use bulk_create in migrations
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...
Fix documentaiton for personality injection mode
Personality injection documentation was misleading, allowing strings aspersonality modes, when a personality mode could only be a number.
astakos: Separate templates in project creation
instead of including application form summary template in the application formview, render it from scratch. This resolves a bug caused when using django>1.2since block tags within the included templates are not supported....
pithos: pep8 fixes
cyclades: Fix bug in floating IP test
cyclades: Fix bug for externally reserved IPs
Skip check if there are no externally reserved IPs in the Ganetibackend.
pithos: Fix typo in _get_permissions_path_bulk function
snf-deploy: Remove packages.conf
This is not needed any more because we have squeeze and wheezy ones
snf-deploy: fix snf-deploy ganeti
A typo and explicitely install drbd8-utils package for ganeti.
snf-deploy: fix strange behaviour of openssl
When used remotely via ssh it produces a strange (stdin)= beforethe real output.
snf-deploy: Fix image_dir setup
snf-deploy: fix case of local binary package
ganeti-htools is a binary package that ends with amd64.debThus we should not not search only for *all.deb
cyclades: Update admin-guide about managing pools
astakos: Additional login form test
test empty POST dict form submition
astakos: Cache cleanup for recaptcha tests to work
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: Test ratelimit/recaptcha functionality
ui: Reboot required notification in networks view
astakos: Set initial signup values if available
prefill third party signup form with initial values (first name, last name,email) if available in the third party provider response.
ui: Exclude rebooting machines from network connect overlay
astakos: Shibboleth EPPN migration functionality
Prior to this commit astakos used the mod_shib2 EPPN header value as theunique identifier for associating shibboleth idp users to astakos user entries.
This commit alters this behaviour and from now on astakos resloves unique...
Merge branch 'feature-management-commands' into develop
cyclades: Update changelog
cyclades: Do not release externally reserved IPs
Do not automatically release an externally reserved IP if it is releasedfrom a Ganeti backend. The IP should be released with snf-managenetwork-modify management commands.
cyclades: Refactor network-modify command
Refactor snf-manage network-modify command. Remove options that modifiedlink, mac_prefix, mode, enable_dhcp or state of the network. Thisoptions modified only the network in DB and resulted in incosistenciesbetween Cyclades DB and Ganeti.
cyclades: Make (network, ipv4) unique for each NIC
Add a unique constraint to NetworkInterface model. This constraintasserts that the same IPv4 address from the same network will no beassigned to more than one NICs.
cyclades: Refactor reconciliation of pools
Move reconciliation of IP pools from 'snf-manage reconcile-networks'to 'snf-manage reconcile-pools'. Also change the way reconciliationworks: Instead of reconciling the IP pools in DB with the IP pools inGaneti, the new reconciliation just checks that:...
cyclades: Fix str representation for pool objects
cyclades: Refactor code for renaming a server
Created function for renaming a server.
cyclades: Fix server-modify management command
cyclades: Resize server from management command
Add the --flavor option in server-modify management command to resize aserver to a different flavor.
cyclades: Add --action option in server-modify cmd
Add --action option in server modify command, to start, stop or rebootan instance.
cyclades: Fix bug in backend_allocator
The 'disk_template' attribute for flavors of external disk templateincluded the name of the provider. The backend allocator tried to find abackend with an enabled 'ext_$(provider)' disk template. This commitfixes this by searching only for 'ext' in the enabled disk templates.
Revert "snf-deploy: Make public network a FIP pool"
This reverts commit d25a778a0d7890cefc354a1860f8996a0eb1fcaa.
snf-deploy: Make public network a FIP pool
deploy: Set default quota for floating IPs
ci: Fix install script
Check correctly for environment variable $VIRTUAL_ENV;pass option -N in `setup.py develop'.
snf-deploy: Change email backend file location
Change Django's filebased email backend locationfrom '/var/log/gunicorn/synnefo-mail/' to'/var/tmp/synnefo-mail/'. We do this due to permissionerrors.
Merge branch 'feature-pithos-performance-optimizations' into develop
pithos: Provide tests for requests with timestamps
pithos: Fix latest version list with specific timestamp
Return the sorted list of the latest attributes keys
cyclades: Add missing migration for commit 3bb0b11
snf-ci: Add --no-colors options
By default use a colorful output.
snf-ci: Check uniqueness of build_ids
If the user tries to overwrite a build_id that isalready in use, exit with an error message.