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.
cyclades: Add 'server-remove' management command
Implement server-remove management command that deletes an instance froma Ganeti backend. The command will wait by default for theOP_INSTANCE_REMOVE job to complete, except if --wait=False is used.
pithos: Fix timestamps
cyclades: Add 'on_delete' to all ForeignKeys
Add 'on_delete' argument to all ForeignKeys. The value of thisargument depends on the type of each relation.
docs: Improve development environment setup
Do not let `setup.py develop' automatically resolve dependencies,because it fails to pick the right version when multiple versionsare available. Non-synnefo dependencies are expected to have beenpreviously installed by `snf-deploy'....
cyclades: Fix bug in update_cluster callback
Decorate 'update_cluster' callback with 'handle_message_delivery' tohandle acknowledgement of messages.
cyclades: Remove custom ForUpdateManager
cyclades: Remove custom ProtectedDeletedManager
Remove custom ProtectedDeletedManager. Instead use theForeignKey.on_delete attribute that has been introduced in Django 1.4.
deploy: Exit with message and not with code
snf-deploy: Exit when fab command fails
The previous approach (using the return value fromos.system for sys.exit) was false. For more information, see`how-to-bypass-the-0-255-range-limit-for-sys-exit-in-python'on stackoverflow.
deploy: Add python-django to wheezy conf files
snf-deploy: Manually install django
Manually install python-django in order to get the correct version.
ci: Use ci_wheezy.conf as the default ci config
pithos: Remove unused variable.
cyclades: Add missing queue
QUEUE_CLUSTER must be included in QUEUES.
cyclades: Make disk_templates work with Ganeti<2.8
'enabled_disk_templates' cluster attribute has been added in Ganeti 2.8.If this attribute is missing, return the ipolicy disk templates.
cyclades: Fix typo
cyclades: Fix bug in custom field
Rename get_db_prep_value to get_prep_value. In django 1.4 the second oneis just a wrapper for the first one.
deploy: python-django squeeze-backports
Request Django=>1.4, <1.5
Drop support for Django 1.2. Remove compatibility code that were used inorder to support Django 1.2 and 1.4. Finally update django documentationlink in the docs.
wheezy: Rename depricated HttpRequest attribute
From django docs:""" HttpRequest.raw_post_data renamed to HttpRequest.body
This attribute was confusingly named HttpRequest.raw_post_data, but itactually provided the body of the HTTP request. It’s been renamed to...
wheezy: fix is_safe attribute of template filters
In Django 1.4 'is_safe' and 'needs_autoescape' attributes has been madekeyword arguments of @register.filter
wheezy: Remove setup_environ
From Django docs:""" This function temporarily modified sys.path in order to make the parent“project” directory importable under the old flat startproject layout.This function is now deprecated, as its path workarounds are no longer...
Merge branch 'hotfix-0.14.8' into develop
Merge hotfix-0.14.8 which ports Synnefo to wheezy and Django 1.4.5
Conflicts: ci/ci_squeeze.conf ci/ci_wheezy.conf ci/schemas/one_node_squeeze/packages.conf ci/schemas/one_node_squeeze/squeeze.conf ci/schemas/one_node_squeeze/wheezy.conf...
cyclades: Callback for cluster modifications
Extend snf-dispatcher callbacks with one to run every time anOP_CLUSTER_ opcode is executed in a Ganeti backend.
docs: Add docs about disk_templates attribute
astakos: Avoid spaces in field names
Rename fields in component-list management command so that they do notcontain spaces.