Statistics
| Branch: | Tag: | Revision:

root @ cddc2b2f

# Date Author Comment
cddc2b2f 10/09/2013 07:36 pm Dionysis Grigoropoulos

cyclades: Use a constant for name length of models

Use a constant for declaring the max length of the name of a
model

326c3ec8 10/09/2013 07:36 pm Christos Stavrakakis

cyclades: Replace FloatingIP with IPAddress

This commit just replaces all references to FloatingIP objects with
references to IPAddress object, in order to be able to just load the
code. But the code is left unchanged, so all tests will fail.

0247388f 10/09/2013 07:34 pm Christos Stavrakakis

cyclades: Update models_factory

Update models factory to match the new models.

Signed-off-by: Marios Kogias <>
Signed-off-by: Dionysis Grigoropoulos <>

06ffd11f 10/09/2013 07:33 pm Christos Stavrakakis

cyclades: Remove unused fields and model from DB

Remove unused 'ipv4' and 'ipv6' attributes from NetworkInterface model
and totally remove FloatingIP model. This information has been moved
in commit 972a428 to IPAddress model.

d484f6df 10/09/2013 07:33 pm Christos Stavrakakis

cyclades: Data migration from NIC to IPAddress

Migrate db data from NetworkInterface model to IPAddress model.

bdd0f1a6 10/09/2013 07:33 pm Christos Stavrakakis

cyclades: Major refactor on NIC model

Major refactor on db models concerning NetworkInterface models. A new
table, namely 'IPAddress' has been created to represent an IPAddress
(IPv4 or IPv6). Each IPAddress is related with a network and the subnet
from which it has been allocated. Also it contains 'floating_ip' attribute...

7b72b50d 10/09/2013 07:31 pm Christos Stavrakakis

cyclades: Remove unused fields from Network model

Remove unused fields from Network: subnet, subnet6, gateway, gateway6,
dhcp and pool. The following attributes have been moved to Subnet model
in commit 779c887. Also extend model with the 'external_router'...

4e3a6674 10/09/2013 07:31 pm Christos Stavrakakis

cyclades: Add new Subnet model

Add Subnet model containing Layer-3 characteristics for networks. Also,
extend IPPoolTable object to hold a reference to the Subnet that the
pool belongs to.

Signed-off-by: Dionysis Grigoropoulos <>

d8989b47 10/09/2013 07:31 pm Christos Stavrakakis

cyclades: Add DB data migration for subnets

Migrate attributes from old Network model to new Subnet model.

2b4f7cc5 10/09/2013 07:31 pm Christos Stavrakakis

deploy: Install snf-ganeti 2.8 from unstable

59d1ee86 10/09/2013 11:40 am Christos Stavrakakis

deploy: Install vncauthproxy before cyclades

Install snf-vncauthproxy beforing installing Cyclades, because Cyclades
depends on vncauthproxy.

81cb992d 10/09/2013 11:40 am Christos Stavrakakis

deploy: Update nfqueue-bindings-python dependency

258d1f78 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Do not delete FIPs if VM is deleted

Remove on delete CASCADE for floating IPs if the VirtualMachine is
deleted.

bfd04b01 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Include 'index' when comparing NICs

cb7b1c23 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Clear FloatingIP when deleting NIC

Override 'delete' method of NetworkInterface model, to clear the
'machine' flag of the corresponding NIC, if any.

0d069390 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Ignore Ganeti NICs with unknown ID

Do not process Ganeti NICs that do not have a valid ID and so are
unknown to Cyclades, because processing these NICs would require to
create them in DB and then rename them in Ganeti with the corresponding
identifier....

d0545590 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Use NIC UUID in firewall tags

Use NICs UUID instead of index to generate firewall tags. Make the
'set_firewall_profile' action to take the NICs ID as argument. Also,
update the firewall settings.

e5a92bec 10/09/2013 11:40 am Christos Stavrakakis

eventd: Do not send NICs twice

Fix bug introduced by rebasing, which resulted in NICs to be
sent twice.

c988fcca 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Change format of 'attachment' attribute

Change the format of the 'attachment' attribute. Until now, each
attachment had an identifier of the form 'nic-$vm_id-$nic_id'. This
commit changes the identifier to just '$nic_id', since from now on
is unique for the lifetime of a NIC.

121b8921 10/09/2013 11:40 am 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.

443315d6 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Add 'ip_type' attribute to NIC

Extend NetworkInterface model with the 'ip_type' attribute to show
whether the IP is a floating or fixed.

Signed-off-by: Christos Stavrakakis <>

a1baa42b 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Use UUIDs to update VM NICs

Callback functions of snf-dispatcher updated the NICs of a VM by
deleting all NICs from DB, and creating the new NICs that were described
in the message. However, since NICs have UUIDs, this is no longer
required. This commit update callbacks to update the NICs based on their...

e6fbada1 10/09/2013 11:40 am Christos Stavrakakis

gtools: Make eventd send job fields

Make snf-ganeti-eventd send 'job_fields' for instance and network
opcodes, and modify the corresponding backend functions and
snf-dispatcher callbacks.

3c52a9df 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Fix getting action from Ganeti opcode

Parse the fields of the Ganeti command, to distinquish between
'CONNECT' and 'DISCONNECT' in case of 'OP_INSTANCE_SET_PARAMS'.

220e3cc0 10/09/2013 11:40 am Christos Stavrakakis

gtools: Make snf-ganeti-eventd send NIC names

d7ff7f5a 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Make reconciliation timeouts constants

Remove hard-coded timeouts from code and make them constants. Also do
not perform reconciliation for recent building NICs.

cd7ed999 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Use NIC uuid when deleting NIC

7c714455 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Use Ganeti NIC UUIDs

Since Ganeti 2.8, it is supported to refer to devices (NICs and Disks)
not only by their index but also by their name or UUID. This commit
updates Synnefo to refer to devices by their name. Synnefo will set the
name of the devices which will be a UUID. We do not use Ganeti's UUIDs...

a9bb2a1a 10/09/2013 11:40 am Christos Stavrakakis

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
  • Group info is returned as list instead of string
e9d59f5e 10/09/2013 11:40 am Christos Stavrakakis

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
creation). This may result in unbalanced clusters, but `hbal` can be...

bc37fa88 10/09/2013 11:40 am Dimitris Aragiorgis

Remove deprecated network type in ganeti

Signed-off-by: Dimitris Aragiorgis <>

700b85be 10/09/2013 11:40 am Dimitris Aragiorgis

Pass network type info in tags during create

Signed-off-by: Dimitris Aragiorgis <>

89e92ee5 10/09/2013 11:40 am Dimitris Aragiorgis

Remove hotplug from InstanceCreate

Signed-off-by: Dimitris Aragiorgis <>

1d74f135 10/09/2013 11:40 am Dimitris Aragiorgis

New style format for modifying a NIC

Signed-off-by: Dimitris Aragiorgis <>

32e2716a 10/09/2013 11:40 am Christos Stavrakakis

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

457cc553 10/09/2013 11:40 am Christos Stavrakakis

cyclades: fix typo in snf-dispatcher

c4ed6248 10/09/2013 11:39 am Christos Stavrakakis

cyclades: Fix bug in floating IP test

98a01362 10/09/2013 11:29 am Christos Stavrakakis

cyclades: Fix bug for externally reserved IPs

Skip check if there are no externally reserved IPs in the Ganeti
backend.

62e6d12e 10/08/2013 05:16 pm Nanakos Chrysostomos

pithos: Fix typo in _get_permissions_path_bulk function

c0dc9e93 10/08/2013 04:02 pm Dimitris Aragiorgis

snf-deploy: Remove packages.conf

This is not needed any more because we have squeeze and wheezy ones

Signed-off-by: Dimitris Aragiorgis <>

04660f63 10/08/2013 04:02 pm Dimitris Aragiorgis

snf-deploy: fix snf-deploy ganeti

A typo and explicitely install drbd8-utils package for ganeti.

Signed-off-by: Dimitris Aragiorgis <>

2242394d 10/08/2013 04:02 pm Dimitris Aragiorgis

snf-deploy: fix strange behaviour of openssl

When used remotely via ssh it produces a strange (stdin)= before
the real output.

Signed-off-by: Dimitris Aragiorgis <>

093d25d8 10/08/2013 04:02 pm Dimitris Aragiorgis

snf-deploy: Fix image_dir setup

Signed-off-by: Dimitris Aragiorgis <>

b2334d13 10/08/2013 04:02 pm Dimitris Aragiorgis

snf-deploy: fix case of local binary package

ganeti-htools is a binary package that ends with amd64.deb
Thus we should not not search only for *all.deb

Signed-off-by: Dimitris Aragiorgis <>

4573511a 10/08/2013 03:34 pm Christos Stavrakakis

cyclades: Update admin-guide about managing pools

3407774b 10/08/2013 01:58 pm Kostas Papadimitriou

astakos: Additional login form test

test empty POST dict form submition

b8633f0c 10/08/2013 01:58 pm Kostas Papadimitriou

astakos: Cache cleanup for recaptcha tests to work

9eb2c9a6 10/07/2013 05:52 pm Kostas Papadimitriou

astakos: user-modify command enhancements

New option ``--delete`` to permanently delete a user entry.
New option ``--set-email`` to change user's email address.

a661dfb2 10/07/2013 05:52 pm Kostas Papadimitriou

astakos: Test ratelimit/recaptcha functionality

5b90c56d 10/07/2013 05:52 pm Kostas Papadimitriou

ui: Reboot required notification in networks view

c1f65a1e 10/07/2013 05:52 pm Kostas Papadimitriou

astakos: Set initial signup values if available

prefill third party signup form with initial values (first name, last name,
email) if available in the third party provider response.

828f802d 10/07/2013 05:52 pm Kostas Papadimitriou

ui: Exclude rebooting machines from network connect overlay

6a80a0ae 10/07/2013 05:52 pm Kostas Papadimitriou

astakos: Shibboleth EPPN migration functionality

Prior to this commit astakos used the mod_shib2 EPPN header value as the
unique identifier for associating shibboleth idp users to astakos user entries.

This commit alters this behaviour and from now on astakos resloves unique...

8b317a60 10/07/2013 02:54 pm Christos Stavrakakis

Merge branch 'feature-management-commands' into develop

c0a19025 10/07/2013 02:53 pm Christos Stavrakakis

cyclades: Update changelog

fc56ae0f 10/07/2013 02:50 pm Christos Stavrakakis

cyclades: Do not release externally reserved IPs

Do not automatically release an externally reserved IP if it is released
from a Ganeti backend. The IP should be released with snf-manage
network-modify management commands.

2a2f9ffa 10/07/2013 02:37 pm Christos Stavrakakis

cyclades: Refactor network-modify command

Refactor snf-manage network-modify command. Remove options that modified
link, mac_prefix, mode, enable_dhcp or state of the network. This
options modified only the network in DB and resulted in incosistencies
between Cyclades DB and Ganeti.

df8a7015 10/07/2013 02:37 pm Christos Stavrakakis

cyclades: Make (network, ipv4) unique for each NIC

Add a unique constraint to NetworkInterface model. This constraint
asserts that the same IPv4 address from the same network will no be
assigned to more than one NICs.

0ccb6461 10/07/2013 02:37 pm Christos Stavrakakis

cyclades: Refactor reconciliation of pools

Move reconciliation of IP pools from 'snf-manage reconcile-networks'
to 'snf-manage reconcile-pools'. Also change the way reconciliation
works: Instead of reconciling the IP pools in DB with the IP pools in
Ganeti, the new reconciliation just checks that:...

d793786b 10/07/2013 02:37 pm Christos Stavrakakis

cyclades: Fix str representation for pool objects

a52cc1b4 10/07/2013 02:37 pm Christos Stavrakakis

cyclades: Refactor code for renaming a server

Created function for renaming a server.

91f7a08c 10/07/2013 02:37 pm Christos Stavrakakis

cyclades: Fix server-modify management command

  • Change --set-suspended and --unsuspended to --suspended=True|False
  • Removed --set-deleted as snf-manage server-remove can be used.
  • Removed option for modifying the state of a server.
60a71437 10/07/2013 02:37 pm Christos Stavrakakis

cyclades: Resize server from management command

Add the --flavor option in server-modify management command to resize a
server to a different flavor.

35f2fc07 10/07/2013 02:37 pm Christos Stavrakakis

cyclades: Add --action option in server-modify cmd

Add --action option in server modify command, to start, stop or reboot
an instance.

5d1f6b84 10/07/2013 12:48 pm Christos Stavrakakis

cyclades: Fix bug in backend_allocator

The 'disk_template' attribute for flavors of external disk template
included the name of the provider. The backend allocator tried to find a
backend with an enabled 'ext_$(provider)' disk template. This commit
fixes this by searching only for 'ext' in the enabled disk templates.

09ab7b18 10/04/2013 05:26 pm Christos Stavrakakis

Revert "snf-deploy: Make public network a FIP pool"

This reverts commit d25a778a0d7890cefc354a1860f8996a0eb1fcaa.

d25a778a 10/04/2013 04:46 pm Christos Stavrakakis

snf-deploy: Make public network a FIP pool

c3139cfd 10/04/2013 04:46 pm Christos Stavrakakis

deploy: Set default quota for floating IPs

010e6c43 10/03/2013 06:37 pm Giorgos Korfiatis

ci: Fix install script

Check correctly for environment variable $VIRTUAL_ENV;
pass option -N in `setup.py develop'.

ed0dd751 10/03/2013 05:55 pm Ilias Tsitsimpis

snf-deploy: Change email backend file location

Change Django's filebased email backend location
from '/var/log/gunicorn/synnefo-mail/' to
'/var/tmp/synnefo-mail/'. We do this due to permission
errors.

77582ddd 10/03/2013 05:36 pm Nanakos Chrysostomos

Merge branch 'feature-pithos-performance-optimizations' into develop

8b5c1106 10/03/2013 03:17 pm Sofia Papagiannaki

pithos: Provide tests for requests with timestamps

ae0a4858 10/03/2013 02:52 pm Nanakos Chrysostomos

pithos: Fix latest version list with specific timestamp

Return the sorted list of the latest attributes keys

7da2d1bd 10/03/2013 02:45 pm Christos Stavrakakis

cyclades: Add missing migration for commit 3bb0b11

106659f1 10/03/2013 12:02 pm Ilias Tsitsimpis

snf-ci: Add --no-colors options

By default use a colorful output.

329705c8 10/03/2013 11:37 am Ilias Tsitsimpis

snf-ci: Check uniqueness of build_ids

If the user tries to overwrite a build_id that is
already in use, exit with an error message.

c3c8297e 10/03/2013 11:19 am Christos Stavrakakis

cyclades: Add 'server-remove' management command

Implement server-remove management command that deletes an instance from
a Ganeti backend. The command will wait by default for the
OP_INSTANCE_REMOVE job to complete, except if --wait=False is used.

87835e94 10/02/2013 11:27 pm Nanakos Chrysostomos

pithos: Fix timestamps

3bb0b117 10/02/2013 04:27 pm Christos Stavrakakis

cyclades: Add 'on_delete' to all ForeignKeys

Add 'on_delete' argument to all ForeignKeys. The value of this
argument depends on the type of each relation.

dd45dcae 10/02/2013 04:12 pm Giorgos Korfiatis

docs: Improve development environment setup

Do not let `setup.py develop' automatically resolve dependencies,
because it fails to pick the right version when multiple versions
are available. Non-synnefo dependencies are expected to have been
previously installed by `snf-deploy'....

73756651 10/02/2013 04:05 pm Christos Stavrakakis

cyclades: Fix bug in update_cluster callback

Decorate 'update_cluster' callback with 'handle_message_delivery' to
handle acknowledgement of messages.

2c21381e 10/02/2013 04:05 pm Christos Stavrakakis

cyclades: Remove custom ForUpdateManager

Remove custom manager that implemented select_for_update(), since this
is already implemented in Django 1.4.

26515bc1 10/02/2013 04:05 pm Christos Stavrakakis

cyclades: Remove custom ProtectedDeletedManager

Remove custom ProtectedDeletedManager. Instead use the
ForeignKey.on_delete attribute that has been introduced in Django 1.4.

7f857fcc 10/02/2013 02:17 pm Ilias Tsitsimpis

deploy: Exit with message and not with code

d38bdeb7 10/02/2013 02:06 pm Ilias Tsitsimpis

snf-deploy: Exit when fab command fails

The previous approach (using the return value from
os.system for sys.exit) was false. For more information, see
`how-to-bypass-the-0-255-range-limit-for-sys-exit-in-python'
on stackoverflow.

09aa843b 10/02/2013 12:50 pm Christos Stavrakakis

deploy: Add python-django to wheezy conf files

0500dae6 10/02/2013 12:21 pm Christos Stavrakakis

snf-deploy: Manually install django

Manually install python-django in order to get the correct version.

7585f464 10/02/2013 11:24 am Ilias Tsitsimpis

ci: Use ci_wheezy.conf as the default ci config

569f852b 10/02/2013 10:47 am Nanakos Chrysostomos

pithos: Remove unused variable.

5feb9900 10/01/2013 09:16 pm Christos Stavrakakis

cyclades: Add missing queue

QUEUE_CLUSTER must be included in QUEUES.

a8ae6989 10/01/2013 08:27 pm Christos Stavrakakis

cyclades: Make disk_templates work with Ganeti<2.8

'enabled_disk_templates' cluster attribute has been added in Ganeti 2.8.
If this attribute is missing, return the ipolicy disk templates.

e4011adc 10/01/2013 08:06 pm Christos Stavrakakis

cyclades: Fix typo

c3362463 10/01/2013 07:44 pm Christos Stavrakakis

cyclades: Fix bug in custom field

Rename get_db_prep_value to get_prep_value. In django 1.4 the second one
is just a wrapper for the first one.

7435e91f 10/01/2013 06:59 pm Christos Stavrakakis

deploy: python-django squeeze-backports

6b256427 10/01/2013 06:56 pm Christos Stavrakakis

Request Django=>1.4, <1.5

Drop support for Django 1.2. Remove compatibility code that were used in
order to support Django 1.2 and 1.4. Finally update django documentation
link in the docs.

b694875c 10/01/2013 06:56 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...

00c7a496 10/01/2013 06:56 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

a0abbade 10/01/2013 06:56 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...

0a70d2c5 10/01/2013 06:16 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.8' into develop

Merge hotfix-0.14.8 which ports Synnefo to wheezy and Django 1.4.5

Conflicts:
ci/ci_squeeze.conf
ci/ci_wheezy.conf
ci/schemas/one_node_squeeze/packages.conf
ci/schemas/one_node_squeeze/squeeze.conf
ci/schemas/one_node_squeeze/wheezy.conf...

09d07554 10/01/2013 05:45 pm Christos Stavrakakis

docs: Add docs about disk_templates attribute