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: 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
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
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.
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.
pithos: Optimize latest_attribute_keys
pep8 fixes
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