Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app @ 2796f26a

# Date Author Comment
dee2e82c 11/11/2013 03:29 pm Christos Stavrakakis

cyclades: Fix compatibility issues with networks

From version 2.7, Ganeti returns the network's UUID field in nics
'networks' attribute. Instead use 'networks.names' attribute to get
the network name.

66932293 11/11/2013 03:29 pm Christos Stavrakakis

cyclades: fix typo in snf-dispatcher

0dd40027 11/11/2013 03:29 pm Christos Stavrakakis

cyclades: Fix case where 'dfree' is None

If Ganeti has not enabled 'plain' or 'drbd' disk template, then it
reports 'dfree' as None. Fix this corner case by treating None as 0.

2796f26a 11/11/2013 03:29 pm Christos Stavrakakis

cyclades: Small fixes to network reconciliation

  • Pass missing argument to function
  • Fix corner case where there are no externally reserved IPs.
4b052f94 11/11/2013 03:29 pm Dimitris Aragiorgis

cyclades: New style format for modifying a NIC

Signed-off-by: Dimitris Aragiorgis <>

9c7c6a57 11/11/2013 03:29 pm Dimitris Aragiorgis

cyclades: Remove hotplug from InstanceCreate

Signed-off-by: Dimitris Aragiorgis <>

d9b5b020 11/11/2013 03:29 pm Dimitris Aragiorgis

cyclades: Pass network type info as network tag

Signed-off-by: Dimitris Aragiorgis <>

3f68fa52 11/11/2013 03:28 pm Dimitris Aragiorgis

cyclades: Remove deprecated network type in ganeti

Signed-off-by: Dimitris Aragiorgis <>

b36d45e6 11/11/2013 03:28 pm Christos Stavrakakis

cyclades: Use opportunistic locking

Use opportunistic locking, introduced in Ganeti 2.7, to allow parallel creation
of VMs in the Ganeti backend. When this option is set, Ganeti iallocator
will allocate the VM only to nodes that not locked (e.g. by other VM...

2b4becab 11/11/2013 03:28 pm Christos Stavrakakis

gtools: Fix compatibility issues with ganeti-2.7

  • SimpleConfigReader has been removed. Use SimpleStore
  • QUEUE_DIR has been moven from ganeti.constants to ganeti.pathutils
  • _QueuedJob.Restore takes 2 more arguments
  • cyclades: Group info is returned as list instead of string
94ea30c8 11/11/2013 03:26 pm Christos Stavrakakis

cyclades: Fix bug in network reconciliation

Skip reconciliation for a network that does not exist in the DB, if
reconciliation is running without the '--fix' option.

c4b9ea4c 11/07/2013 03:42 pm Christos Stavrakakis

cyclades: Retrieve image names only if needed

Retrieve images from plankton only if the user asked for the image name.
Otherwise just display the image ID. This will significantly speed up
the execution time of 'server-list' management command.

01f5f8d9 11/04/2013 03:20 pm Christos Stavrakakis

cyclades: Workaround for race condition in Ganeti

Workaround for race where OP_INSTANCE_REMOVE starts executing on Ganeti
before OP_INSTANCE_CREATE. If this is the case, OP_INSTANCE_REMOVE will
not wait for locks, instead it will fail because the instance has not...

3d5906fe 10/16/2013 06:21 pm Giorgos Korfiatis

Resolve some undefined names

Add missing imports; remove call to sqlite3_changes; set key and val
in render_meta.

53c6b592 10/04/2013 06:17 pm Christos Stavrakakis

cyclades: Fix broken test

Mock getting image from plankton.

43d5633e 10/04/2013 05:29 pm Christos Stavrakakis

cyclades: Fix broken tests from commit #8936368

Commit #8936368 used the "size" attribute of images. This commit
fixes mocked images of tests to contain this attribute.

89363686 10/04/2013 05:21 pm Christos Stavrakakis

Pass hashmap instead of location to snf-image

Update Cyclades, to pass as 'img_id' the hashmap('checksum') of the
image, instead of the location URL. In that way, snf-image does not any
access to the Pithos database.

8299ef23 09/27/2013 04:50 pm Christos Stavrakakis

Revert "wheezy: Rename depricated HttpRequest attribute"

This reverts commit cfc4b87c301504627e6a75ab2e4d32c8cd7a6e15. This
commit is reverted because it breaks compatibility with Django 1.2. This
should be applied for Synnefo 0.15.

4a021fd1 09/27/2013 04:50 pm Christos Stavrakakis

Revert "wheezy: fix is_safe attribute of template filters"

This reverts commit 730fb3b0a0607bba95b90db1c6154cb7febb9187. This
commit is reverted because it breaks compatibility with Django 1.2. This
should be applied for Synnefo 0.15.

27724645 09/27/2013 04:50 pm Christos Stavrakakis

Revert "wheezy: Remove setup_environ"

This reverts commit a813a25117f3db14d5517f630d6d0e163a58b0f8. This
commit is reverted because it breaks compatibility with Django 1.2. This
should be applied for Synnefo 0.15.

68d7a31d 09/27/2013 04:34 pm Christos Stavrakakis

reconciliation: Strip Ganeti IP addresses

Strip spaces from Ganeti IP addresses, since they are not automatically
ignored in newer versions of ipaddr.

cfc4b87c 09/27/2013 03:22 pm Christos Stavrakakis

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 it
actually provided the body of the HTTP request. It’s been renamed to...

730fb3b0 09/27/2013 03:22 pm Christos Stavrakakis

wheezy: fix is_safe attribute of template filters

In Django 1.4 'is_safe' and 'needs_autoescape' attributes has been made
keyword arguments of @register.filter

a813a251 09/27/2013 03:22 pm Christos Stavrakakis

wheezy: Remove setup_environ

From Django docs:
"""
This function temporarily modified sys.path in order to make the parent
“project” directory importable under the old flat startproject layout.
This function is now deprecated, as its path workarounds are no longer...

a1d0f147 09/27/2013 10:49 am Christos Stavrakakis

cyclades: Remove commit_manually decorator

Replace commit_manually decorator with commit_on_success. Since network
is no longer created in DB in the API request, the manually decorator is
no longer needed.

eb99b367 09/25/2013 12:40 am Christos Stavrakakis

wheezy: Temporary disable reconciliation tests

Temporary disable reconciliation tests because they still run with
fixture data, that are not loaded correctly.

a6b17d33 09/24/2013 05:16 pm Christos Stavrakakis

wheezy: urls module doesn't export defaults

f82ed034 09/24/2013 05:16 pm Christos Stavrakakis

wheezy: Update Django dependency to <=1.4.5

2c6ac437 09/24/2013 12:30 pm Christos Stavrakakis

Fix missing import and broken test

dfc9d184 09/24/2013 11:17 am Christos Stavrakakis

Update South dependency to >=0.7.3

05485332 09/18/2013 05:35 pm Kostas Papadimitriou

helpdesk: Fix network interface queryset

232763df 09/17/2013 04:23 pm Kostas Papadimitriou

helpdesk: Exclude nics of deleted vms

when helpdesk users search using ip address

f2080d16 09/17/2013 02:33 pm Christos Stavrakakis

cyclades: Mock vm removal if creation fails

In case creating a VM fails before the OP_INSTANCE_CREATE job is
enqueued in Ganeti, the VM and its NICs must be deleted, and the
resources must be released from Quotaholder, which is exactly what is
done when a VM is deleted from Ganeti. Instead of duplicating the code,...

ea9b0fb9 09/17/2013 01:26 pm Christos Stavrakakis

cyclades: Fix bug during server creation

Commit #32a0b85, modified server creation, by refetching the object from
DB after issuing commission to quotaholder. However, the new object is
not having the 'config_url' attributed, which is added to the vm object...

4772cff2 09/16/2013 05:26 pm Kostas Papadimitriou

Merge branch 'feature-ui-footer-extra-message' into hotfix-0.14.6

bdb4641c 09/16/2013 02:53 pm Giorgos Korfiatis

cyclades: Fix unbound reference

Set backend to None if not specified.

9ab3c6a3 09/16/2013 10:18 am Olga Brani

branding: new setting FOOTER_EXTRA_MESSAGE

FOOTER_EXTRA_MESSAGE setting appears above Copyright message at the
Compute templates and the Dashboard UI. Accepts html tags.

25891abc 09/13/2013 04:37 pm Christos Stavrakakis

cyclades: Simplify code

Simplify code by removing unnecessary temp variable.

db3037f1 09/12/2013 06:29 pm Giorgos Korfiatis

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 been
released.

32a0b855 09/12/2013 06:29 pm Giorgos Korfiatis

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 resource
object becomes stale: its lock is released and another thread may acquire...

347b2ba1 09/12/2013 06:26 pm Giorgos Korfiatis

common: Strip trailing slash from endpoints

Remove trailing slash from the endpoints' publicURL field in service
definitions. These values end up in the response of POST /tokens, and,
according to the keystone API, should not end in slash. A trailing slash...

a8333def 09/11/2013 05:06 pm Christos Stavrakakis

cyclades: Add newline

198d91c3 09/06/2013 12:22 pm Christos Stavrakakis

cyclades: Fix bug in snf-dispatcher logic

This commit reverts commits #07602322 and #30514662 which introduced a
bug in dispatcher's logic. These commit fixed the issue that, in a case
the Cyclades DB is unsynced with Ganeti, a resource that does not exist...

49044e69 08/30/2013 12:01 pm Christos Stavrakakis

Move context_processors from common to middleware

c8078df2 07/19/2013 01:43 pm Kostas Papadimitriou

cyclades ui: Enable RDP clipboard sharing by default

in default RDP connection profile served by synnefo

a6213c91 07/12/2013 11:51 am Kostas Papadimitriou

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...

801bc0b3 07/11/2013 03:50 pm Kostas Papadimitriou

cyclades ui: Update OS images names

use libguestfs naming convention

redhat -> rhel
suse -> opensuse (also cloned as sles)

e3f006b0 07/11/2013 02:30 pm Christos Stavrakakis

plankton: Make pithos backend pool size a setting

Make the pool size of the pithos backends a configurable setting,
namely PITHOS_BACKEND_POOL_SIZE.

07602322 07/08/2013 03:05 pm Christos Stavrakakis

cyclades: Fix corner case in snf-dispatcher

Same as commit 0514662, but for servers.

46e8886e 07/08/2013 12:02 pm Christos Stavrakakis

cyclades: Add disk template to flavors fixture

05146623 07/04/2013 11:24 am Christos Stavrakakis

cyclades: Fix corner case in snf-dispatcher

Delete network from DB when job fails but the action of network is
DESTROY. This case appears when someone tries to remove a network that
has been deleted from Ganeti backend, but not yet from DB.

291c782f 07/03/2013 08:22 pm Christos Stavrakakis

cyclades: Fix misleading message in network-remove

82d23461 07/03/2013 02:43 pm Christos Stavrakakis

reconciliation: Get servers from DB ater ganeti

Change server reconciliation, to get the instances from DB after getting
instances from Ganeti, to decrease the possibility for races.

952b2a48 07/02/2013 03:00 pm Christos Stavrakakis

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, because
otherwise, the lock of the vm (select_for_update) is released too early....

40d4f27d 06/28/2013 11:05 am Christos Stavrakakis

cyclades: Fix --image-name option in server-list

15c05cb7 06/28/2013 11:05 am Stratos Psomadakis

Fix regressions in snf-manage list commands

b12ab2d0 06/25/2013 03:23 pm Christos Stavrakakis

Revert "cyclades: Speed up reconciliation"

This reverts commit cf2241c45a22dac71e31dbf32f4700c475804c12.

e7391395 06/25/2013 02:26 pm Christos Stavrakakis

cyclades: Fix bug in setup.py

muliprocessing is included in python 2.6

cf2241c4 06/25/2013 11:36 am Christos Stavrakakis

cyclades: Speed up reconciliation

Speed up reconciliation by using mulitprocessing to get in parallel
the instances from all Ganeti backends.

e8aa2f64 06/21/2013 05:42 pm Christos Stavrakakis

cyclades: Fix bug in allocating archipelago VMs

This commit fixes a bug that caused backend allocator to send
archipelago VMs backends to backends not in ARCHIPELAGO_BACKENDS
setting. The flavor disk template is parsed before the backend
allocation, so the disk_template at this point is ext and not ext_vlmc,...

ae6e8a65 06/19/2013 05:33 pm Olga Brani

cyclades: Fix VMs console incorrect background

a86a4433 06/19/2013 03:36 pm Georgios D. Tsoukalas

cyclades: remove VMAPI_BASE_URL references

2a54127d 06/19/2013 03:20 pm Christos Stavrakakis

vmapi: Return cloud faults from vmapi endpoint

vmapi skippede from commit 269ac8d.

e63050ca 06/19/2013 02:30 pm Christos Stavrakakis

cyclades: Speed up server reconciliation

Speed up reconciliation, by increasing the time interval to get Ganeti
job status for VMs in building state.

40d53b77 06/19/2013 11:07 am Christos Stavrakakis

cyclades: Fix deadlock when creating servers

Fix deadlock between snf-dispatcher and backend allocator, by making
snf-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...

0c0498c8 06/18/2013 07:02 pm Kostas Papadimitriou

helpdesk: Typo fix

d4e33598 06/18/2013 06:45 pm Kostas Papadimitriou

cyclades: Set supported serialization in stats view

fe7b1d66 06/17/2013 05:41 pm Christos Stavrakakis

cyclades: Implement show extension API endpoint

Dummy implementation of /extensions/<alias> endpoint that always returns
404.

6966e8df 06/17/2013 05:00 pm Christos Stavrakakis

cyclades: Implement /extensions API endpoint

5ba43517 06/17/2013 03:57 pm Christos Stavrakakis

cyclades: Validate MAC prefix in pool-create cmd

c0720b78 06/17/2013 01:35 pm Kostas Papadimitriou

cyclades: api_method_not_allowed typo's

16437e4d 06/17/2013 01:35 pm Kostas Papadimitriou

cyclades: Test invalid http method endpoint calls

c25cf3ea 06/17/2013 12:58 pm Christos Stavrakakis

cyclades: Sync API tests with latest API changes

27c0d6c5 06/14/2013 06:35 pm Kostas Papadimitriou

helpdesk: Include UI_MEDIA_URL in template context

variable used as prefix for vm os icon urls

5a8a6df2 06/14/2013 06:35 pm Kostas Papadimitriou

helpdesk: Detect existing accounts with no active vms

73fbaad3 06/14/2013 06:11 pm Christos Stavrakakis

cyclades: Fix typo in links

60ba7fc6 06/14/2013 04:06 pm Kostas Papadimitriou

cyclades ui: In sync with latest API changes

Handle updated servers/detail response format.

27e57c27 06/14/2013 03:54 pm Christos Stavrakakis

cyclades: Add 'links' to images API

1b696c26 06/14/2013 03:52 pm Christos Stavrakakis

cyclades: Add 'links' to compute endpoints

Add 'links' attribute to API responses for servers, networks, flavors
and images endpoints.

936e0be3 06/14/2013 03:52 pm Christos Stavrakakis

cyclades: Add 'user_id' and 'tenant_id' to API

Add 'user_id' to API responses, and add a dummy 'tenant_id' to be equal
with the 'user_id'. Also always include metadata.

1f638a85 06/14/2013 03:52 pm Christos Stavrakakis

cyclades: Add 'addresses' to servers API response

f8352d29 06/14/2013 03:52 pm Christos Stavrakakis

cyclades: Make servers response compatible with OS

125c682c 06/13/2013 06:40 pm Christos Stavrakakis

plankton: Handle case of images without name

c802789d 06/13/2013 06:40 pm Christos Stavrakakis

cyclades: Remove obsolete settings

Remove obsolete GANETI_DISK_TEMPLATES and DEFAULT_GANETI_DISK_TEMPLATE
settings.

b0c95903 06/13/2013 05:47 pm Giorgos Korfiatis

cyclades: Rename poolsize settings for uniformity

Rename ASTAKOS_POOLSIZE to CYCLADES_ASTAKOSCLIENT_POOLIZE;
expose it to the conf file.

b2222a7f 06/13/2013 05:10 pm Christos Stavrakakis

cyclades: Pass disk origin for all 'ext' flavors

a6143787 06/13/2013 04:42 pm Georgios D. Tsoukalas

cyclades: remove API_ROOT_URL from conf

1295f78a 06/13/2013 01:44 pm Kostas Papadimitriou

cyclades: Enable jsonp response in admin stats api

a7091289 06/13/2013 01:15 pm Olga Brani

cyclades: Remove "help" url in empty vms page

52168d57 06/13/2013 11:42 am Kostas Papadimitriou

Include snf-webproject in snf-*-app required packages

webproject contains django command line utils which are imported from synnefo
apps packages.

49c0d427 06/13/2013 11:38 am Kostas Papadimitriou

webproject: Disable APPEND_SLASH setting by default

4a8667dc 06/12/2013 05:33 pm Christos Stavrakakis

cyclades: Implement /admin/stats API call

Implement API call to server statistics about servers and networks.

f7d0a71c 06/12/2013 03:36 pm Georgios D. Tsoukalas

cyclades: add test for 400 in wrong Plankton paths

a3accf03 06/12/2013 03:36 pm Georgios D. Tsoukalas

cyclades: add tests for 400 on wrong Compute paths

8af7f2d5 06/12/2013 02:30 pm Kostas Papadimitriou

cyclades ui: Invalid statement fix

269ac8de 06/12/2013 02:28 pm Christos Stavrakakis

Ensure we return cloud faults under any API prefix

7a0c725d 06/12/2013 02:01 pm Kostas Papadimitriou

cyclades ui: Fix endpoint urls

remove trailing slashes

66855d86 06/12/2013 12:44 pm Georgios D. Tsoukalas

cyclades: fix variable name in plankton tests

5b6af211 06/12/2013 11:41 am Georgios D. Tsoukalas

cyclades: fix URLs in cyclades/vmapi tests

fdb15edb 06/12/2013 11:00 am Georgios D. Tsoukalas

cyclades: fix URLs in cyclades/image tests