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...
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.
wheezy: Temporary disable reconciliation tests
Temporary disable reconciliation tests because they still run withfixture data, that are not loaded correctly.
wheezy: urls module doesn't export defaults
Fix missing import and broken test
helpdesk: Fix network interface queryset
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,...
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...
Merge branch 'feature-ui-footer-extra-message' into hotfix-0.14.6
cyclades: Fix unbound reference
Set backend to None if not specified.
branding: new setting FOOTER_EXTRA_MESSAGE
FOOTER_EXTRA_MESSAGE setting appears above Copyright message at theCompute templates and the Dashboard UI. Accepts html tags.
cyclades: Simplify code
Simplify code by removing unnecessary temp variable.
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...
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...
cyclades: Add newline
cyclades: Fix bug in snf-dispatcher logic
This commit reverts commits #07602322 and #30514662 which introduced abug in dispatcher's logic. These commit fixed the issue that, in a casethe Cyclades DB is unsynced with Ganeti, a resource that does not exist...
Move context_processors from common to middleware
cyclades ui: Enable RDP clipboard sharing by default
in default RDP connection profile served by synnefo
cyclades ui: Prefer os meta to identify connection user
How vm connection user gets resolved:
- Use the last user in `users` vm metadata if exists- Use the last user in `users` vm image metadata if exists- Use root if vm's image osfamily metadata is Linux...
cyclades ui: Update OS images names
use libguestfs naming convention
redhat -> rhelsuse -> opensuse (also cloned as sles)
plankton: Make pithos backend pool size a setting
Make the pool size of the pithos backends a configurable setting,namely PITHOS_BACKEND_POOL_SIZE.
cyclades: Fix corner case in snf-dispatcher
Same as commit 0514662, but for servers.
cyclades: Add disk template to flavors fixture
Delete network from DB when job fails but the action of network isDESTROY. This case appears when someone tries to remove a network thathas been deleted from Ganeti backend, but not yet from DB.
cyclades: Fix misleading message in network-remove
reconciliation: Get servers from DB ater ganeti
Change server reconciliation, to get the instances from DB after gettinginstances from Ganeti, to decrease the possibility for races.
cyclades: Wrap diagnostic creation in transaction
Fix bug in snf-dispatcher causing wrong updates of VMs from ganeti.Creation if instance diagnostics must run inside a transaction, becauseotherwise, the lock of the vm (select_for_update) is released too early....
cyclades: Fix --image-name option in server-list
Fix regressions in snf-manage list commands
Revert "cyclades: Speed up reconciliation"
This reverts commit cf2241c45a22dac71e31dbf32f4700c475804c12.
cyclades: Speed up reconciliation
Speed up reconciliation by using mulitprocessing to get in parallelthe instances from all Ganeti backends.
cyclades: Fix bug in allocating archipelago VMs
This commit fixes a bug that caused backend allocator to sendarchipelago VMs backends to backends not in ARCHIPELAGO_BACKENDSsetting. The flavor disk template is parsed before the backendallocation, so the disk_template at this point is ext and not ext_vlmc,...
cyclades: Fix VMs console incorrect background
vmapi: Return cloud faults from vmapi endpoint
vmapi skippede from commit 269ac8d.
cyclades: Speed up server reconciliation
Speed up reconciliation, by increasing the time interval to get Ganetijob status for VMs in building state.
cyclades: Fix deadlock when creating servers
Fix deadlock between snf-dispatcher and backend allocator, by makingsnf-dispatcher take an exclusive lock to the backend which hosts the vm,before trying to get the exclusive locks to the IP pools in order to...
helpdesk: Typo fix
cyclades: Set supported serialization in stats view
cyclades: Implement show extension API endpoint
Dummy implementation of /extensions/<alias> endpoint that always returns404.
cyclades: Implement /extensions API endpoint
cyclades: Validate MAC prefix in pool-create cmd
cyclades: api_method_not_allowed typo's
cyclades: Test invalid http method endpoint calls
cyclades: Sync API tests with latest API changes
helpdesk: Include UI_MEDIA_URL in template context
variable used as prefix for vm os icon urls
helpdesk: Detect existing accounts with no active vms
cyclades: Fix typo in links
cyclades ui: In sync with latest API changes
Handle updated servers/detail response format.
cyclades: Add 'links' to images API
cyclades: Add 'links' to compute endpoints
Add 'links' attribute to API responses for servers, networks, flavorsand images endpoints.
cyclades: Add 'user_id' and 'tenant_id' to API
Add 'user_id' to API responses, and add a dummy 'tenant_id' to be equalwith the 'user_id'. Also always include metadata.
cyclades: Add 'addresses' to servers API response
cyclades: Make servers response compatible with OS
plankton: Handle case of images without name
cyclades: Remove obsolete settings
Remove obsolete GANETI_DISK_TEMPLATES and DEFAULT_GANETI_DISK_TEMPLATEsettings.
cyclades: Rename poolsize settings for uniformity
Rename ASTAKOS_POOLSIZE to CYCLADES_ASTAKOSCLIENT_POOLIZE;expose it to the conf file.
cyclades: Pass disk origin for all 'ext' flavors
cyclades: Enable jsonp response in admin stats api
cyclades: Remove "help" url in empty vms page
webproject: Disable APPEND_SLASH setting by default
cyclades: Implement /admin/stats API call
Implement API call to server statistics about servers and networks.
cyclades: add test for 400 in wrong Plankton paths
cyclades: add tests for 400 on wrong Compute paths
cyclades ui: Invalid statement fix
Ensure we return cloud faults under any API prefix
cyclades ui: Fix endpoint urls
remove trailing slashes
cyclades: fix variable name in plankton tests
cyclades: fix URLs in cyclades/vmapi tests
cyclades: fix URLs in cyclades/image tests
cyclades: fix URLs in compute/servers tests
cyclades: fix URLs in compute/networks tests
cyclades: fix URLs in compute/images tests
cyclades: fix URLs in compute/flavors tests
Fix compatibility issues with factory_boy
Update models_factory to use factory.DjangoModelFactory instead offactory.Factory.
cyclades: fix compute api /versions
cyclades: Retry requests to quotaholder
Cyclades UI: minor textual change in networks
cyclades: Rename service token
Rename CYCLADES_ASTAKOS_SERVICE_TOKEN to CYCLADES_SERVICE_TOKEN foruniformity.
cyclades: Use api_patterns to register API urls
cloudbar: Automatic active service detection
automatically detect which cloudbar menu is active by matching the currentwindow location with the registered service url.
cyclades: Sensible root url redirects
Rename astakos_keystone to astakos_identity
cyclades: rename type 'cyclades_vmapi' to 'vmapi'
cyclades: Missing import
cyclades ui: Improvements in ui url settings
- Use get_public_endpoint to resolve each service url- Depend on cyclades_settings for services objects
plankton: Update api version prefix
v1 -> v1.0
cyclades: Fill endpoints to astakos_services object
enable modules that include object from cyclades_setting to access endpointurls.
cyclades: compute version v1.1 -> v2.0 in URLs
cyclades: fix syntax error in service list
cyclades: Fix syntax errors in resource definition
cyclades: add version 'v1.0' to vmapi URLs
Incorporate all resources into service definitions
- Add 'service_origin' key in resources, as the normative name of the service that exported it.- Keep resources backwards compatible, export-resource-service reads resources from the service list.
cyclades: fix URLs in vmapi
cyclades: plankton/image version 'v1' -> 'v1.0'
cyclades: add version 'v1' in plankton/image URLs
cyclades: Remove obsolete delegate
Also remove setting UI_ACCOUNTS_API_URL
cyclades, pithos: Update resource definitions
Include service_type in each resource dict.
cyclades: informative CYCLADES_BASE_URL default