Add neutron router api and test
Missing create new router. This is simply a vm creation
Start router api
Remove migration file
Fixes after first review
cyclades: Neutron API add subnet tests, bug fixes
cyclades: Neutron API add more subnet tests
Fix conflicts
Add more network tests. PEP8 corrections
cyclades: Neutron API improvements
Add more subnet tests and fix some bugs in subnets_view.py
Add ModelFactory and tests
cyclades: Neutron API changes
Add forgoten stuff about Neutron APIFix a typo in subnet_views.py
Add missing App in django and update some subnet tests
cyclades: Neutron api, poc subnet implementation
Start neutron api
Add views for network, subnet, port. Fix urls. Create first versionof /networks. Start testing networks
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
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
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...
astakos: Add missing cyclades service in script
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...
Bump up version to 0.14.6rc1
ci: update ci/schemas/one_node/synnefo.conf
snf-deploy: add flavor options in synnefo.conf
pithos: Acquire locks in alphabetical path order in copy object
Revert "pithos: Use pithos backend as context manager"
This reverts commit 23b41f6fefa1a066748810c4642e58e18a4b83f9.
snf-pithos-backend: Change SQLAlchemy version
Change SQLAlchemy dependency version to matchwith the one found in Debian wheezy.
pithos: Use pithos backend as context manager
Substitue pre_exec() and post_exec()
_lookup_container() locks the container pathbut it was not called by some write backend methodswhich expected the container path to be locked.
In those cases optionally _lookup_object() callsthe _lookup_container() in order to lock the container path....
Revert "pithos: conditional select for update in lookup account"
This reverts commit 8a7ddfb0545348849d99fb686fec51659cbead58.
Select for update is not useful in case of account creation.If there is no such account, 0 rows are returnedso there are no rows locked.
cyclades: Add newline
astakos: fix verification message
The new registration process of Astakos allows to verify the newuser's email before actually activating the user:
1. User signs up providing an email2. A verification email is sent to the user (with verification link)...
cyclades: fix typos
cyclades: Update NICs even if job failed
Make snf-ganeti-eventd send the NICs of the instance not only onsuccess, but also if the job has failed or has been canceled. Also,update snf-dispatcher to handle those messages. This step is required toclear BUILDING NICs that fail.
cyclades: Store action to the VM
cyclades: Fix bug in reconciliation
VMs at building error that do not exist in Ganeti must not be reportedas stale. The VM is stale only if the user has asked to destroy the VM,and so the action is DESTROY.
Update objpool dependency to version 0.3
cyclades: Create NIC before send job to Ganeti
Create NICs in building state before enqueuing corresponding jobs toGaneti. This has already been done when creating the instance, but notwhen connecting it to other networks.