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: 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: Abort has been changed to True
By default abort when a command is failed to be executed.
snf-deploy Use symbolic debian_base_url
For debian_base_url use a link that always resolvesto the latest image.
snf_django: Decode the mocked userid to a unicode object
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.
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...
deploy: Pep8 fixes
Conflicts: snf-deploy/fabfile.py
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.
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
ci: Fix a bug with config_file relative filepath
deploy: Don't use hardcoded version of postgresql
ci: Support wheezy installation
deploy: For local command set capture flag to True
fabric: Changed in version 1.0: Changed the default value of capturefrom True to False.
astakos: Remove duplicate project query
Enrolling a user in a project now returns 409 if the project doesnot exist, rather than 404.
deploy: Do not import services twice
Commit 65c656c resulted in double importing services, since thiswas already fixed in commmit 3c62626.
pithos: Change error handling in views
The view_method decorator used to check the response status:in case of unexpected response used to returnInternal Server Error (500).This commit changes this behavior andthe view_method decorator returns whatever the api_method decorator...
pithos: Update tests
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.
snf-django: pep8 fixes
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.
pithos: Fix failing test
snf_django: Fix encoding in mocked userid
ci: add missing squeeze/wheezy conf files
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
ci: Strip \" from `py_files'
We want to pass `py_files' to pep8 commandas arguments and not as one single string.
astakos: Remove 0.14-specific migration script
cyclades: Fix wrong quotas when creating server
Catch exception when talking to Ganeti inside 'server_command',otherwise the pending commission will be rejected. Also, accept thecommission in case of build, because the VM will be created in DB.
ci: Check only .py files for pep8 errors
ci: Exit if there are no file to check with pep8
cyclades: Helper function for commissioning
Create 'quotas.handle_resource_commission' function for handlingcommissions for VMs and Networks.
cyclades: Handle errors during vm creation
Commit #f2080d1 mocked an OP_INSTANCE_REMOVE when enqueuing anOP_INSTANCE_CREATE job to Ganeti failed. However, this may result inreleasing IPs that may get reserved in Ganeti, because we can neverreally know if the job has reached Ganeti or not (e.g. timeout). For...
cyclades: Add missing commit_on_success decorator
ci: Change pep8 script
Instead of pep8 testing all files, the scriptnow accepts a list of files to be checked.
Remove obsolete autopkg_debian script
ci: Fix a bug
Flavor ids are integers so we have to turn theminto strings before comparing them with our value.
ci: Change deploy config files
Whenever we change deploy's config files, we also have tochange the snf-ci's schema files.
deploy: Support both wheezy and squeeze packages
snf-deploy: some minor fixes and typos
deploy: some fixes
kamaki register imagetmp wheezy sources for ganeti htools (not used any more)import_service
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: 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
cyclades: Add quotas for build server action
cyclades: refactor server creation command
Split the server creation command in more steps in order to bedecorated with the 'server_command' function and follow the logic of allother server commands. The main change is that the commission job is notaccepted when the VM is stored in DB, but when the OP_INSTANCE_CREATE...
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
snf-deploy: Use filebased email_backend
Change the email backend from dummy to a filebased one.
Minor improvements to wording in the upgrade notes
Merge branch 'feature-dev-guide' into develop
Improve dev-guide
Update the developer's guide to include an initial section abouthow to set up a developing environment.
pithos: Fix tests broken after merge
cyclades: Apply old commits to moved files
Code from file 'api/servers.py' has been moved to 'logic/servers.py'.During the merge of hotfix-0.14.6 the develop, this code was lost. Thiscommit applies commits #f2080d1, #ea9b0fb, #32a0b85 to the new file.
Merge branch 'master' into develop
Conflicts: Changelog version
Bump version to 0.14.7
Update NEWS and Changelog
helpdesk: Fix network interface queryset
Merge branch 'hotfix-0.14.6' into develop
Conflicts: Changelog docs/admin-guide.rst snf-cyclades-app/synnefo/api/management/commands/network-remove.py snf-cyclades-app/synnefo/api/servers.py snf-cyclades-app/synnefo/api/tests/servers.py snf-cyclades-app/synnefo/logic/backend.py...
Merge branch 'hotfix-0.14.6'
Bump version to 0.14.6
Bump version to 0.14.6rc3
helpdesk: Exclude nics of deleted vms
when helpdesk users search using ip address
cyclades: Mock vm removal if creation fails
In case creating a VM fails before the OP_INSTANCE_CREATE job isenqueued in Ganeti, the VM and its NICs must be deleted, and theresources must be released from Quotaholder, which is exactly what isdone when a VM is deleted from Ganeti. Instead of duplicating the code,...
snf-django-lib: AssertionError in proxy
When we use proxy, we have to check that path starts withthe given proxy_base, and raise an AssertionError otherwise.
The check was there but it was wrong (there was missinga not) and also no exception was raised.
cyclades: Fix bug during server creation
Commit #32a0b85, modified server creation, by refetching the object fromDB after issuing commission to quotaholder. However, the new object isnot having the 'config_url' attributed, which is added to the vm object...
pithos: Fix pithos-manage-account command
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.
cyclades: Make GanetiRapiClient work with gevent
GanetiRapiClient uses PyCurl, a Python interface to libcurl, andperforms blocking requests, so does not work well with gevent. Thiscommit makes GanetiRapiClient to use 'Requests' HTTP library that isgreenlet-safe.
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.
Bump version to 0.14.6rc2
branding: update admin-guide docs
pithos: Add missing locks
_lookup_container() locks the container pathbut it was not called from some write backend methodsthat expect the container path to be locked.
In such cases optionally _lookup_object() callsthe _lookup_container() in order to lock the container path.
pithos: Fix partial content responses
Refs: #4063
Merge branch 'feature-ui-footer-extra-message' into hotfix-0.14.6
ci: Change run_burnin exit status
Make run_burnin snf-ci function to exit with the sameexit code as snf-burnin did.
cyclades: Fix unbound reference
Set backend to None if not specified.
Fix resolve of branding footer extra message value
use getattr on django settings module
Disable extra footer content by default
snf-burnin: Add a missing `return'
snf-burnin: `system-images-user' is not mandatory
`system-images-user' flag is not mandatory when oneuses the `show-stale' flag.
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.
branding: new setting FOOTER_EXTRA_MESSAGE
FOOTER_EXTRA_MESSAGE setting appears above Copyright message at theCompute templates and the Dashboard UI. Accepts html tags.
snf-deploy: fix a bug in --disable-colors option
cyclades: Simplify code
Simplify code by removing unnecessary temp variable.
docs: Design of resource-pool projects
docs: Make plankton index page obsolete
cyclades: Do not release resources if already deleted
Ensure that a commission to release vm resources is issued only once.If a vm is marked `deleted', then resources must have already beenreleased.
cyclades: Do not save stale objects after a commit
Call to issue_and_accept_commission saves the resource object (eg a vm)and commits the transaction. This has the side-effect that the resourceobject becomes stale: its lock is released and another thread may acquire...
pithos: Clear pithos_public endpoint's versionId
pithos_public service is not an API and should not be versioned; thepublic URLs operated by pithos do not include a version segment, anyway.
Also make its type more specific, since type `public' is too generic.
common: Strip trailing slash from endpoints
Remove trailing slash from the endpoints' publicURL field in servicedefinitions. These values end up in the response of POST /tokens, and,according to the keystone API, should not end in slash. A trailing slash...