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
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.
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...
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.
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...
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.
deploy: Pep8 fixes
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
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
ci: Add an x2goplugin command to snf-ci
With this command snf-ci produces an html filewhich uses the x2goplugin to connect to the remotemachine.
snf-django: Add missing import
Various fixes to make tests work in hotfix branch
Copy test settings from develop branch
Update South dependency to >=0.7.3
Revert "deploy: Fix --dhcp option of network-create cmd"
This reverts commit 73607c335593146f3f4bf31960c9a7042598d510.
deploy: Support both wheezy and squeeze packages
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
snf-deploy: some minor fixes and typos
ci: Change deploy config files
Whenever we change deploy's config files, we also have tochange the snf-ci's schema files.
ci: Fix a bug
Flavor ids are integers so we have to turn theminto strings before comparing them with our value.
Remove obsolete autopkg_debian script
ci: Change pep8 script
Instead of pep8 testing all files, the scriptnow accepts a list of files to be checked.
ci: Exit if there are no file to check with pep8
ci: Check only .py files for pep8 errors
ci: Strip \" from `py_files'
We want to pass `py_files' to pep8 commandas arguments and not as one single string.
ci: add missing squeeze/wheezy conf files
snf-django: pep8 fixes
snf-deploy: fix a bug in --disable-colors option
snf-deploy: Fix pithos_url in register
New version of kamaki accepts the location ofimages to register as container:file instead of the oldone "pithos://uuid/location".
snf-burnin: Change exit code to 1 for errors
When burnin test cases fail, return 1 as exit code.
snf-burnin: `system-images-user' is not mandatory
`system-images-user' flag is not mandatory when oneuses the `show-stale' flag.
snf-burnin: Add a missing `return'
ci: Change run_burnin exit status
Make run_burnin snf-ci function to exit with the sameexit code as snf-burnin did.
deploy: Fix importing services to astakos
Use snf-manage service-export and service-import management commands toimport services and corresponding resources to astakos. Also, remove oldtemporary files that were used for this procedure.
deploy: By default use only file disk template
By default snf-deploy will not enable lvm and drbd storage. So, thedefault setting for flavors should include only 'file' disk template.
snf-deploy: Use filebased email_backend
Change the email backend from dummy to a filebased one.
snf-deploy: Remove ssh keys
Remove ssh keys from snf-deploy package.We can now generate new keys running `snf-deploy keygen'.
ci: Instruct snf-deploy to generate ssh keys
deploy: Automate service registration
Use script snf-service-export to assist registering service definitionsin astakos. Remove call to resource-import; its usage is covered byservice-import.
deploy: minor updates
Hard code latest kamaki version that does not break deploy.snf-manage network-create --dhcp
Add os per node
This is needed for heterogeneous setups.Depending on os the corresponding sources file is addedand the proper synnefo packages are installed (~wheezy or ~squeeze)
deploy: Refactor nfs
Switch to nfs v3.Explicitly use IP in /etc/exports and not subnet.
Subnet and gateway are only used by vlcuster and thusmove them from nodes.conf to vcluster.conf.
deploy: some fixes
kamaki register imagetmp wheezy sources for ganeti htools (not used any more)import_service
deploy: Allow access in db from localhost
Allow password-less access in DB from localhost, in order to easerunning of unittests.
deploy: Fix bug introduced by escape character
ci: Allow the use of local repo
Instead of cloning Synnefo from its official repo,user can choose (using --local-repo option, or by notsetting the synnefo_repo config parameter) to usehis local repo.
ci: Remove ssh_keys value from config file
ci: Install firefox
ci: Install x2goserver
ci: Remove forgotten debug message
ci: Automatic yes to apt-get prompts
ci: Improve flavors/images finder
Allow for search both by name (using regularexpressions) or by id.
ci: Fix bugs with path expansion
Python does not do any automatic path expansions.User has to call functions such as expanduser() andexpandvars().
Add uesr's id_rsa.pub file as default ssh_keys file.
ci: Add build ID to server name
ci: Implement file lock mechanism for temp_config
Before writing to temp config file, acquire a lockand re-read it's contents to make sure we don'toverwrite anything.
ci: Handle ssh access for demo.synnefo.org
deploy: Performance tune for postgresql
Turn off fsync, synchronous_commit and full_pages_writer to speed uppostgresql. DB is not no longer crash-safe, but this is no needed fortests.
Also, introduce 'testing_vm' setting to distinquish between the type of...
ci: Add --force-yes option to apt-get install
deploy: Set LC_COLLATE to 'C'
Update postgresql default template ('template1'), to have LC_COLLATE='C'and LC_CTYPE='C'. This is needed for test database that is created fromdjango, without the ability to set a different template.
ci: Verify values of image and flavor options
ci: Allow multiple commands in snf-ci script
Allow snf-ci script to accept a comma seperated list of commands to run.
ci: Include user images and config improvements
Include the user images in the list of images that are matched againstthe image name from the config file. Also, change config file to usearchipelago flavors and create instances from the SynnefoCI image.
snf-deploy: add flavor options in synnefo.conf
ci: update ci/schemas/one_node/synnefo.conf
ci: Better handling of build_ids
Now a new build id is created every time we issue acreate command and build_id is None. Any subsequentcommands will use this build_id.
In case we don't provide a build_id (None) and wetry to run a command other than create (that needs to...
ci: Update schema files
Package snf-deploy has add a new section (keys) in deploy.conf
deploy: Fix --dhcp option of network-create cmd