Merge branch 'api-current'
Network id can be non-numeric
Add missing XML template
Conflicts: invitations/invitations.py
Merge branch 'faidon/misc-fixes'
Conflicts: settings.d/50-invitations.conf
Merge branch 'api-current' of https://code.grnet.gr/git/synnefo into api-current
Use log.exception to report exceptions
Logging configuration
Remove RAPI GetInstanceConsole() call
Remove RAPI GetInstanceConsole() call, because it returns apotentially unusable endpoint based on cluster-wide vnc_bind_address,usually 0.0.0.0 or 127.0.0.1. Until this is fixed on the Ganeti side,we construct a console info reply based on the primary node and network...
Remove util/vapclient.py
vncauthproxy ships its own client as vncauthproxy.client. Remove our ownembedded copy and use that instead.
Make server deletion complete asynchronously
Make server deletion complete asynchronously, by only settingthe deleted flag for an instance of the VirtualMachine model whenan OP_INSTANCE_REMOVE operation completes successfully at the backend.
This means that DELETE /servers/id returns HTTP 204, the server...
Conflicts: api/middleware.py
Don't check for expiration if we have no user
Merge branch 'ui-0.5'
Add exclude for API calls in AAI middlware
Fixes 3 failed tests
Merge branch 'api-current' into helpdesk-gui
Conflicts: aai/shibboleth.py
Merge remote-tracking branch 'origin/api-current' into ui-0.5
Conflicts: api/util.py logic/backend.py
Log request URL and user for all API calls
Bugfix
Always initialize `u`
Add a Get Server Stats API method
Update API to return 4 kinds of graphs
Also temporarily disable encryption of backend id.
Refs #527
Limit the number of VMs a user can create
Controlled by the MAX_VMS_PER_USER setting.
Fixes #703
Deleting an image now just changes its state
list_images with changes-since is now able to show deleted images.
Minor refactoring
Mostly cosmetic changes to the auth middlewares
Conflicts: settings.py.dist
Add a PROTECTED firewall profile
Refs #659
Forbid destructive actions from the helpdesk GUI
Mark requests with impersonated users as readonly and check access on all API method invocations
PEP-8 compliance
Do not randomize the owners used for the tests
Merge branch 'master' of https://code.grnet.gr/git/synnefo into api-current
Conflicts: api/images.py api/networks.py contrib/ganeti-hooks/kvm-vif-bridge db/fixtures/images.json db/models.py logic/backend.py logic/tests.py settings.py.dist tools/cloud
Add initial support for firewall profiles
Add a public attribute to Images
list_images now returns images that either match the owner, orthat are marked as public.
Fixes #555
Database migration needed.
Add proper license headers
Merge branches api-current and ui-0.4, minor fixes
Merge branches api-current and ui-0.4: * Fix merge conflicts * Fix minor bug in reconciliation mgmt command * Add comments in settings.py.dist * minor PEP8 fixes
Merge branch 'images-0.4'
Make Network and NetworkLink relation explicit
DB migration needed.
Style fixes to be more PEP8 compliant
Network improvements
Bugfixes
Connect networks API with the Ganeti
A database migration is needed....
Refactor networks
Add expires field for auth token
Refs: #483
Ignore updated field
API was changed to include an updated field in networks.
Add XML output for networks
Additionally:- Return created and updated timestamps too.- Bugfix in XML of image
Fixes #553
Update timestamps when metadata/networks change
Applies to servers and images.
Fixes #525
Initial commit for Image Support in Synnefo
Add Image Support in Synnefo, more specifically: * Add fixtures for 4 actual images * Add two more fields in Image model (backend_id, format) * Commit South migration for Image model * Modify create_instance() in logic/backend.py to pass OS parameters...
Fix redundant whitespace at end of lines
Remove all unecessary whitespace at end of lines.Seehttp://stackoverflow.com/questions/5257553/coloring-white-space-in-git-diffs-output
for a way to have git highlight redundant whitespace automatically.
Merge branch 'api-current' into ui-0.3
Conflicts: api/tests.py
Fix test token duration, minor bug in API
Modify db/fixtures/initial_data.json and settings.py.dist tofix the duration of the test token.
Fix minor bug in api/util.py when no valid SynnefoUsercould be found or the provided X-Auth-Token was invalid.
Simple test for requests with out X-Auth-Tokens
Move and fix test cases to the appropriate locations
Split aai middleware into two instances
One instance guards the API (and returns 401 if the user is unauthorized), one protects the other content and redirects to Sibboleth
Change networks to use numeric ids
Fixes #457
Add tests for networks and some bug fixes
Fixes #409
Rename server argument to serverRef
Improved image tests
Previous commit was incomplete
Add initial networks support
Refs #409
Add support for users
Fixes #423
Merge branch 'auth-mechanism' of https://code.grnet.gr/git/synnefo into api-current
Raise if vm is deleted or being built
Fixes #351
Code clean up
Merge branch 'master' into auth-mechanism
Change console req/response format, add unit tests
Change the format of JSON requests and replies for gettinga server console over VNC. Fix the cloud command-line tool tounderstand the new format.
Add unit tests for api/actions.py:get_console().
Add a quick-n-dirty method of detecting if we're running unit...
Fix API calls that depend on specific server ids
Fixes #417
Improve metadata tests
Refs: 417
Clarify the units of ram and disk
Support dynamic port allocation for VNC console
Add new version of vapclient.py from commit 48b1400effof vncauthproxy (dynamic port pool allocation, JSON controlrequests and replies).
Modify api/actions.py to request dynamic port allocationand handle error conditions gracefully.
Add tests for server metadata API methods
User-defined exceptions should inherit Exception
Conflicts: api/fixtures/api_test_data.json api/tests.py
Rename auth to aai and put all aai related stuff in it
manage.py had trouble running tests from auth (confirmed with[verigak]), and is also a good idea to have all aai stuff inone reusable place ([vkoukis]'s idea)
Only return the updated metadata
Handle errors in API action for VNC console
Handle errors in the get_console() server action and returnappropriate cloudFaults.
Remove the vncauthproxy/ directory, since vncauthproxyhas its own repository under https://code.grnet.gr.
Add new version of util/vapclient.py from commit 035424b630...
Fix one API test failing with PostgreSQL backend
One API test (test_servers_details) was too restrictive and failedwith the PostgreSQL backend. It assumed consistent, by-id orderingbetween DB and API server list replies, and failed although there was1-1 correspondence between the two replies....
All Shibboleth-based tests pass
Now, we need to test it against a real installation
Query for greater since or equal
Make most tests pass
Add a check for the return code
Date header is only required for the test-server
Add a Date header in responses
Make use of it in tests.
Check for values inside servers
Merge branch 'api-current' into api-tests
Add empty models.py
Django requires it.
New test
Fixes to pass some shibboleth related tests
We import getfqdn, not socket
Use more specific exceptions
Merge branch 'api-current' of https://code.grnet.gr/git/synnefo into api-tests
Use server's FQDN in API reply for VNC console
Fix breakage in get_console() action
Really delete the VM if CreateInstance() fails
Fix bugs in api/server.py:create_server()
Fix bugs in server creation, in api/server.py:create_server().More specifically: * Make sure to save() the vm object before calling vm.backend_id * Delete the vm instance if the RAPI call fails for any reason * Use different variable names for the server name at the API level...