cyclades: Remove custom ForUpdateManager
Remove custom manager that implemented select_for_update(), since thisis already implemented in Django 1.4.
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
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.
deploy: Fix parsing of the service token
Merge branch 'feature-component-base-url' into develop
astakos: Fix service update
When registering a service that already exists, update its attributes.
astakos: Remove trailing slash from example URLs
Since endpoint URLs do not end with slash any more, adapt base and ui URLexamples for uniformity.
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.
docs: Upgrade sketch for 0.15
Merge branch 'feature-disk-templates' into develop
cyclades: Refactor backend-update-status cmd
The command has been changed to no longer take any arguments or options.Instead, this command always updates the resources and the enabled disktemplates of all online Ganeti backends.
Allocate VMs based on enabled disk-templates
Remove the ARCHIPELAGO_BACKENDS setting. Instead allocate VMs based onthe disk-templates that are enabled and allowed in ipolicy for eachbackend. The command 'snf-manage backend-update-status' can be used to...
cyclades: Display disk-templates in backend-list
cyclades: Extend Backend model with disk_templates
Extend 'Backend' models with 'disk_template' attribute, that containsthe list of disk templates that are available in each backend.
cyclades: Add SeparatedValuesList field
Add custom field for storing a list of values in DB. The valuesare stored as a TextField separated by a delimiter.
snf-ci: Create new section, even with -n option
snf-deploy: Return the correct exit code
snf-deploy uses os.system to execute it's fabfile. We haveto use sys.exit() for the python script to return with thesame exit code as the one returned by fabric script.
snf-ci: Fix a race condition
When creating a new build_id to be used by snf-ci,we have to lock the ci_temp_conf file.
snf-deploy: Remove misplaced `raise'
snf-deploy Use symbolic debian_base_url
For debian_base_url use a link that always resolvesto the latest image.
snf-deploy: Abort has been changed to True
By default abort when a command is failed to be executed.
snf_django: Decode the mocked userid to a unicode object
snf-deploy: Remove old keys before generating new
When creating new ssh keys if the key already exists,ssh-keygen prompts the user if he want to overwrite it.To avoid prompting the user, delete all the old keys,before generating new ones (the user has...
snf-deploy: Add `generated' note to resolv.conf
Add a note on top of /etc/resolv.conf file to inform usersthat this file has been changed by snf-deploy and theimmutable bit has been used.
Conflicts: snf-deploy/fabfile.py
deploy: Pep8 fixes
deploy: Modify dir for filebased email_backend
Allow user to modify the directory that willbe used for the filebased email backend by Django.
Also move the EMAIL_BACKEND option from astakos tocommon.
Revert "wheezy: Rename depricated HttpRequest attribute"
This reverts commit cfc4b87c301504627e6a75ab2e4d32c8cd7a6e15. Thiscommit is reverted because it breaks compatibility with Django 1.2. Thisshould be applied for Synnefo 0.15.
Revert "wheezy: fix is_safe attribute of template filters"
This reverts commit 730fb3b0a0607bba95b90db1c6154cb7febb9187. Thiscommit is reverted because it breaks compatibility with Django 1.2. Thisshould be applied for Synnefo 0.15.
Revert "wheezy: Remove setup_environ"
This reverts commit a813a25117f3db14d5517f630d6d0e163a58b0f8. Thiscommit is reverted because it breaks compatibility with Django 1.2. Thisshould be applied for Synnefo 0.15.
reconciliation: Strip Ganeti IP addresses
Strip spaces from Ganeti IP addresses, since they are not automaticallyignored in newer versions of ipaddr.
Fix a python syntax error
In python 2 we cannot have keyword-only arguments (PEP 3102).And even if we could, this was not the right way todeclare a python function.
docs: Update quick install guide
cyclades: Return the newest vm object upon creation
The server_command decorator commits the just created object and retrievesit back from the database. Return the latter, because the former is stalein memory.
Merge branch 'feature-admin-guide-corrections' into develop
cyclades: Remove commit_manually decorator
Replace commit_manually decorator with commit_on_success. Since networkis no longer created in DB in the API request, the manually decorator isno longer needed.
astakos: Replace commit_manually decorator
Replace commit_manually decorator with commit_on_success, since thefunctions that were using this decorator did not really needed it.
astakos: Fix `save() got unexpected argument'
From Django documentation:""" It’s also important that you pass through the arguments that can bepassed to the model method – that’s what the *args, **kwargs bit does.Django will, from time to time, extend the capabilities of built-in...
astakos: Don't use `user.__dict__'
In Django 1.4 the `request.user' returns a SimpleLazyObject insteadof a LazyUser. The equivalent of `user.__dict__' is now`user._wrapped.__dict__'. In order to be backward compatiblewe are requesting explicitely the attributes we want and not...
ci: Frist try to use SynnefoCIWheezy image
ci: Fix addition of Ganeti RAPI user
'openssl' 1.0.1e-2 prefixes the output with "(stdin)= ". Because of thisregistration of a new Ganeti RAPI user failed. This commit fixes this byremoving the prefix, before adding it to Ganeti RAPI users file.
docs: Remove snf-image.rst
Make all snf-image references link directly to the officialsnf-image documentation
docs: Remove obsolete installation instructions
Remove the instructions about the need to run snf-image-update-helperafter the installation of snf-image. This command is ran in the postinstallation phase of the debian package.
docs: Update the links to snf-image's documetation
The snf-image documentation is hosted under: http://www.synnefo.org/docs/snf-image/
deploy: Install rabbitmq from Debian repos
Now that squeeze-backports has 2.8.4-1~bpo60+1 andwheezy has 2.8.4-1 version we can install rabbitmq-serverfrom the official Debian repos.
astakos: Fix project identification in test
Test was mistakenly using application id rather than project id insome occasions.
astakos: Fix quota API test
Sort list before comparing, since ordering in the response data isnot specified. Triggered when run with postgres.
ci: Use -U when installing with pip
Add messages context processor to default settings
wheezy: Temporary disable reconciliation tests
Temporary disable reconciliation tests because they still run withfixture data, that are not loaded correctly.
wheezy: HttpResponse has no _is_string attribute
ci: Fix database engine
ci: Fix a bug with config_file relative filepath
wheezy: fix _patch_resolve to comply with Django
Class RegexURLPattern doesn't contain `_get_callback' method any moreand resolve the callback when we try to retrieve it.
wheezy: urls module doesn't export defaults
wheezy: Djangos manage has completely changed
We have to review our code that used to manage synnefosince Djangos management modules have changed.
For now, commenting out two lines seems to do the trick.
wheezy: Update Django dependency to <=1.4.5
wheezy: Django database engine has been changed
wheezy: is_hop_by_hop has been removed from Django
Implement our own is_hop_by_hop function.
wheezy: mail_admins method in Django has changed
An extra parameter (html_message) has been added.
deploy: For local command set capture flag to True
fabric: Changed in version 1.0: Changed the default value of capturefrom True to False.
ci: Support wheezy installation
deploy: Don't use hardcoded version of postgresql
astakos: Remove duplicate project query
Enrolling a user in a project now returns 409 if the project doesnot exist, rather than 404.
ci: Do not run pithos tests by default
deploy: Do not import services twice
Commit 65c656c resulted in double importing services, since thiswas already fixed in commmit 3c62626.
ci: Add xterm into published applications
Published applications are used by X2Go and makes it possible todisplay a menu with a list of the available remote applicationsfor the user, which when started behaves like a locally installedapplication.
Fix missing import and broken test