pithos: fix syntax in sqlite backend
Merge branch 'tmp-pithos-tests' into feature-pithos-atomic-api
Conflicts: snf-pithos-app/pithos/api/util.py
pithos: Fix updated object size
If the updated object exceeded the size of the original objectthe object size was not computed correctly.
pithos: Fix tests challenging ETag
pithos: return always etag
Refs: #3554
If update md5 is deactivated Pithos does not return an etag header.Pithos in that case should return the merkle hash as etag
pithos: Fix tests
Merge branch 'tmp-pithos-tests' of https://code.grnet.gr/git/synnefo into tmp-pithos-tests
Conflicts: snf-astakos-app/astakos/api/tokens.py snf-astakos-app/astakos/im/tests/api.py snf-common/synnefo/settings/test.py snf-django-lib/snf_django/lib/api/__init__.py...
pithos: update tests
pithos: Change block size by configuration
This is useful for testing corner cases efficiently.
pithos: Fix control for satisfiable range
pithos: move transaction managment and quotaholder sync in frontend
Remove backend_method decorator and move logic in the pithos api method
pithos: remove hardcoded urls in tests
pithos api: Adjustable max number of items listed
Openstack storage api sets to 10000 the maximum number ofitems returned by the listing functions.However to test this behaviour is time consuming.Change this threadhold to be adjustable via the settings...
docs: minor fix in pithos api guide
pithos: WIP - rewrite pithos tests
astakos: modifications in POST /tokens (authenticate) api call
cyclades: Add migration file
Add migration file for floating IPs and VM task state.
cyclades: Fix exception message
Fix exception message when trying to connect an instance to a non-activepublic network.
burnin: Don't register images as public
Merge branch 'feature-floating_ips+resize' into develop
cyclades: Rename "public" to "SNF:ANY_PUBLIC"
Rename reserved work for automatically choosing a public network from"public" to "SNF:ANY_PUBLIC". Also add the setting description to conffiles.
cyclades: Remove PUBLIC_USE_POOL setting
Remove PUBLIC_USE_POOL setting, since in order to use floating IPs, thecyclades must be responsible for managing all IP pools.
cyclades: Fix bug in server-create command
Function for creating a server have been moved from api to logic.
cyclades: Check if a NIC is a floating IP.
Extend NetworkInterface model with a property showing if the IPv4address of the NIC is a floating IP or not. Also, simplify somerelevant code.
cyclades: Export OS-EXT-IPS:type for floating IPs.
Cyclades API should return "floating" for the OS-EXT-IPS:type attribute.
cyclades: Allowed serializations for floating IPs
cyclades: Choose floating-ips when creating server
Extend POST /servers API call, to take an optional attribute'floating_ips', which is a list of floating IP addresses. The serverwill have one NIC for each of this addresses after the'DEFAULT_INSTANCE_NETWORKS' and before any private networks that the...
Distinquish between networks and Floating IP pools
Extend Network model with the 'floating_ip_pool' boolean field, toindicate whether a Network can be a floating IP pool or not. Networksthat are floating IP pools must exist in all Backends, and so'snf-manage backend-add' should try to add them....
cyclades: Add ip pool option to network-create cmd
Add '--floating-ip-pool' option to 'network-create' management command.Networks that have this option set must be created to all Ganetibackends.
cyclades: Various fixes regarding floating IPs
Fix some issues regarding floating ips introduced by rebasing branch.
Fixes to tests
cyclades: Separate logic for networks from API
Remove code handling networks from network API views to logic.networks
cyclades: Make NIC representation more verbose
cyclades: Do not delete networks with floating IPs
Forbid network deletion in case the network has allocated floating IPs,no matter whether they are used by instances or not. Update'allocate_floating_ip' API method, to take exclusive lock on networkbefore reserving a floating IP, to avoid race condition between deleting...
cyclades: Auto allocate a floating IP
Make 'pool' attribute of POST /os-floating-ips request optional. Ifattribute is missing, the server will allocate a floating IP from one ofthe available public networks.
cyclades: Add 'floating-ip-list' management cmd
cyclades: Add network policy at server create
Add 'DEFAULT_INSTANCE_NETWORKS' setting that can be used by theadministrator to define the list of networks that each server that iscreated must be connected to. Each created VM will have a NIC connectedto each of these networks. This settings can include a list of network...
cyclades: Add tests for add/remove Floating IP
cyclades: Reserve a specific floating IP
Add extra optional 'address' attribute, in POST /os-floating-ips/request, to allow a user to reserve a specific floating IP. This requestwill fail if the user tries to allocate an IP address that is used byanothers user VM (it will succeed if they address is already used by...
cyclades: Do not release floating IPs
Update 'release_instance_nics' backend function which is called toprocess NIC modifications in the Ganeti backend, to not return aIPv4 address back to pool if this address is a floating IP.
cyclades: Update reconcilliation for floating IPs
Update network reconcilliation to consider floating IPs reconcilling IPpools. Floating IPs that are reserved and usused, will appear asasynced. This commit fixes this, by considering unused floating IPs as...
cyclades: Check if network exists in backend
Raise 503 if a user tries to add a floating IP to a VM that resides in aGaneti backend that the coressponding network does not exist.
cyclades: Add and remove networks from backends
Extend 'snf-manage network-modify' command with '--add-to-backend' and'--remove-from-backend' options, to create and remove an already createdpublic network from a Ganeti backend.
cyclades: Support many NICs when creating vms
Support arbitraty number of NICs when creating Ganeti instances.
cyclades: Add FloatingIP model
Add Floating IP model to represent a floating IP that has been reservedby a user. Each FloatingIP has an owner(UUID), an IPv4 address, thenetwork(pool) that has reserved from and the date is was reserved. Also,it may be related to a VirtualMachine, if there is some VM that uses...
cyclades: Make Floating IPs a quotable resource
Add 'cyclades.floating_ip' to quotable resources. Update helperfunctions and tests to include this resource.
cyclades: Implement /os-floating-ips API
Extend Cyclades API with /os-floating-ips endpoint. The API implementsthe following calls:
cyclades: Add tests for floating-ips API
cyclades: Implement /floating-ip-pools API
Add Compute OS API extension /floating-ip-pools. This API implementsonly the GET /floating-ip-pools, which returns the list of availableFloating IP pools. Currently, these pools are the public networks.
cyclades: Extend /servers with floating IP actions
Extend '/servers/action' API endpoint, to support 'addFloatingIP'and 'removeFloatingIP' actions.
cyclades: refactor reconciliation
Refactor reconciliation code to use namedtuples and improve performancefor retrieving info from database.
cyclades: reconciliation for resizing VMs
cyclades: Mark serial as resolved if auto_accept
Modify 'issue_commission' function to mark the QuotaHolderSerial objectas resolved, if auto_accept option is used.
cyclades: Remove custom init method from VM model
cyclades: Major refactor to api and logic apps
Major refactor to cyclades api and logic apps that removes most codefrom the api views and moves it to logic app, so that the same logiccode can be used by different apps (e.g. EC2 API). Code is moved into...
cyclades: Handle 'EmptyPool' in util method
Refactor cyclades code to handle 'EmptyPool' exception in'get_network_free_address' function.
snf_django: Fix bug in BaseAPITest
Include 202 in success responses.
snf_django: Mock quotaholder to BaseAPITest
Mock quotaholder in all of BaseAPITest calls.
cyclades: Add backend function for resizing vm
Add 'resize_instance' backend function for resizing a vm. This commandissues an OP_INSTANCE_MODIFY job with the specified beparams, whichcurrently are vcpus, minmem and maxmem.
Refs #3870
cyclades: Implement resize action API call
Implement resize API call, which is a POST at/servers/<server_id>/action' with body: {"resize": {"flavorRef": <flavor_id>}}
The resize can only be performed if the disk size and disk template ofthe new flavor are the same with the old one, and if the VM is in...
gtools: Make eventd send beparams and result
Update 'snf-ganeti-eventd' daemon to send the requested beparams incase of 'OP_INSTANCE_SET_PARAMS' opcodes. Also, if the opcode isin success state, send the 'result' attribute of Ganeti jobs.
cyclades: Handle Ganeti msgs for resized VMs
Handle 'OP_INSTANCE_SET_PARAMS' notifications from Ganeti that have'beparams' attribute, which corresponds to resized VMs. In suchcase, the corresponding flavor is found an the VM in DB is updated tohave this flavor....
cyclades: Make flavor representation more verbose
Update .gitignore file
cyclades: Fix assertion on mocked client
astakos: Change default region value in POST /tokens
Refs: 4086
astakos: Different image on login page
A different image is shown in the login page when the mainlogin method is 'local' and its form is already expanded.
astakos: Update tests
fix pithos:// redirect params extraction
astakos: Rename Region to region
Refs #4086
astakos: Return default region in POST /tokens
Update api call to return a default region for compatibilitywith the keystone api.
cyclades: Fix bug in testcase
Merge branch 'hotfix-0.14.2' into develop
Conflicts: snf-astakos-app/astakos/im/views/projects.py snf-cyclades-app/synnefo/logic/backend.py snf-django-lib/snf_django/lib/astakos.py version
snf-django: Add retry option to AstakosClient
API method decorator should initialize the AstakosClient with the retryargument set, in order to avoid errors caused by getting an oldconnection from pool.
Add release dates for version 0.14
Update NEWS for Synnefo 0.14
Merge branch 'release-0.14' into develop
Conflicts: snf-astakos-app/astakos/im/views/target/redirect.py snf-cyclades-app/synnefo/logic/backend.py version
docs: Update 0.14 upgrade guide
include reference to the update email configuration guide
cyclades: Fixes relative to reconciliation
Get available backends once and work only with them, since availablebackends may change during reconciliation. Also temporary remove supportfor communicating with each backend in a separate process.
astakos: Fix call of helper function
astakos: Disallow join/leave for non-alive projects
astakos: Correct plural in 1 pending membership
astakos: Fix listing of approved members
Include leave requested and suspended members in the list of approved.
Add proper logging for UserCache
pithos: fix empty account usage computation
Usage computation for empty accounts used to fail with:TypeError: 'NoneType' object is unsubscriptable
astakos: return uuid in weblogin
The weblogin used to return the user uuid.However, this in 0.14 version had been removed since the uuidcan be retrieved using the POST /tokens authentication method.However, the old pithos clients have no other wayto get the uuid, so we restore it temporarily.
pithos: improve performance of get_domain_list
Before it used to query the databasefor all the objects having the specific domainand finally filtered out the objects to which the user had no access.Now gets first the allowed_paths for the user and then...
astakos: Force usage registration during migration
Register usage for astakos.pending_app even if limit is exceeded.
cyclades: Fix --image-name option in server-list
Fix regressions in snf-manage list commands
Bump version to 0.14.2
pithos: compatibility code for django greater than 1.2
Change condition for being compatible with django 1.2 or greater
pithos: Fix partial content responses
Refs: #4063
Revert "cyclades: Speed up reconciliation"
This reverts commit cf2241c45a22dac71e31dbf32f4700c475804c12.
Bump version to 0.14.1