| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / db / migrations @ df8a7015

# Date Author Comment
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.

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

cyclades: Add missing migration for commit 3bb0b11

c9976c84 10/01/2013 11:37 am Christos Stavrakakis

cyclades: Extend Backend model with disk_templates

Extend 'Backend' models with 'disk_template' attribute, that contains
the list of disk templates that are available in each backend.

051e47f8 09/10/2013 03:29 pm Christos Stavrakakis

cyclades: Make index field of NIC optional

Change 'index' field of NIC model to be optional, because the index of
building NICs is unknown. Also, change all API responses to return only
the active NICs.

0c09b1c0 08/07/2013 11:08 am Christos Stavrakakis

cyclades: Import settings from django.conf

e8d31c74 07/24/2013 09:15 pm Christos Stavrakakis

cyclades: Remove wrong model attribute

410d2877 07/22/2013 05:58 pm Christos Stavrakakis

cyclades: Add migration file for IPv6 networks

259459b0 07/02/2013 04:01 pm Christos Stavrakakis

cyclades: Add migration file

Add migration file for floating IPs and VM task state.

6dafedf6 05/31/2013 05:12 pm Christos Stavrakakis

cyclades: Add 'drained' flag to Network

Extend Network model with the 'drained' attribute, to indicate whether a
network should be used in public IP allocation when creating servers.
This option is only useful for public networks.

bd87213f 05/21/2013 02:07 pm Christos Stavrakakis

cyclades: Sypport backends with Xen hypervisor

Support Ganeti backends with Xen hypervisor:
  • Extend 'Backend' model with the 'hypervisor' attribute, which
    currently can be 'kvm' or 'xen'. Use 'kvm' as default value to
    easy database migration. Also add the corresponding schema migration....
e4ce2d35 05/15/2013 06:35 pm Christos Stavrakakis

cyclades: fix db migration

Migration 0066 should not run on a fresh installation.

3dbd9457 05/15/2013 05:05 pm Christos Stavrakakis

cyclades: Make cyclades work with pycrypto==2.6

In PyCrypto 2.6, it is mandatory to use an IV of 16 bytes when using AES
encryption. This commit updates 'aes_encrypt' module to use a random IV.
Also, a data migration is required to re-encrypt the old passwords, as...

97fffe10 04/30/2013 05:05 pm Christos Stavrakakis

Refactor QuotaHolder serial model

  • Merge 'accepted' and 'rejected' field to 'accept' field.
  • Add 'resolved' field, indicating whether this commission has been
    accepted/rejected to Quotaholder
  • Remove custom save() method. Handle 'pending' field manually....
ef54eee4 03/22/2013 02:19 pm Christos Stavrakakis

Fix NIC's default state

Use "ACTIVE" as NIC's default state, to avoid addding a data migration.

939d71dd 03/21/2013 05:05 pm Christos Stavrakakis

Create public NIC when creating VM

Until now, a server's public NetworkInterface was not created in the DB
until the arrival of the message from Ganeti hooks. However, the IPv4
address of the NIC is reserved before sending the OP_INSTANCE_CREATE
job to Ganeti....

1ef9dac4 12/04/2012 04:51 pm Dimitris Aragiorgis

Migration files for network types

b8b676a1 11/26/2012 05:58 pm Christos Stavrakakis

Add migration file for quotaholderserial

190d155f 11/09/2012 03:51 pm Christos Stavrakakis

Add indexes to VirtualMachine and Network

Add indexes to VirtualMachine userid and deleted columns
Add indexes to Network userid, deleted and public columns

038d6772 10/30/2012 01:00 pm Christos Stavrakakis

Merge branch 'ui-0.11' into devel-0.12

ab419f67 10/30/2012 12:49 pm Christos Stavrakakis

Remove depricated settings and update migrations

1e2cc762 10/29/2012 02:28 pm Kostas Papadimitriou

Merge remote-tracking branch 'origin/devel-0.12' into ui-0.11

698306b8 10/23/2012 05:24 pm Christos Stavrakakis

Fix compatibility issues with python-bitarray

72fa634b 10/23/2012 04:29 pm Kostas Papadimitriou

Reapply diagnostics migrations

eeffcbea 10/23/2012 04:28 pm Kostas Papadimitriou

Merge branch 'devel-0.12' into ui-0.11

ecabca41 10/17/2012 12:53 pm Christos Stavrakakis

Do not create bridge for public network

dd2689f9 10/17/2012 11:37 am Christos Stavrakakis

Bridge indexes must start from 1

6f011a2d 10/10/2012 01:02 pm Christos Stavrakakis

Change and fix migration files

Change network migration, so that it does not allocate a new bridge to
existing network. Instead it keeps the bridges from the old NetworkLink

Remove network_mac_prefix migration because there are no networks with
mac prefixes....

b16db49b 10/09/2012 04:27 pm Kostas Papadimitriou

Merge branch 'devel-0.11' into ui-0.11


fdc94944 09/20/2012 12:14 pm Christos Stavrakakis

Refactor IP pools

Treat IP pool the same way as bridge and mac-prefix pools. The pool is
removed from the Network table and moved to an IPPoolTable containing the
IP pools for all networks. Also added support for external reservations.

Migration files for transfering the pool to the new tables are included....

03992c72 09/19/2012 01:16 pm Christos Stavrakakis

Refactor bridge and mac-prefix pool tables

Redesign the implementation of pools and map mac-prefix and bridge pools
to that design.

Each pool type is mapped to a table in the database, and each row of
that table is a pool of that type. All pool tables must contain the...

7cfbbf32 09/07/2012 05:36 pm Christos Stavrakakis

New method for creating BackendNetwork entries

Create a new method to the Network model, in order to create the
BackendNetwork entries tha correspond to this network. Also remove
the custom save method, since when multiple public network will be
supported, we want them to be correlated with specific backends.

6ce1fc56 08/08/2012 07:58 pm Kostas Papadimitriou

Virtual machine diagnostics models and migrations

Initial commit for VirtualMachineDiagnostics model and the corresponding
south migrations script.

601ce073 07/27/2012 09:26 pm Christos Stavrakakis

Fix bug in migration file

Do not allocate a bridge from the pool for deleted networks.

d0411c0a 07/27/2012 02:57 pm Christos Stavrakakis

Fix migration files

Fix south migration files. In data migrations, access the Models from
the orm, instead importing Models from synnefo.db. This is necessary as
the orm provides access to the version of the models that existed when
the migration file was created.

3165f027 07/27/2012 02:57 pm Christos Stavrakakis

Implement MAC Prefix Management

In order to guarantee uniqueness of MAC address accross all backends,
synnefo assignes a unique mac prefix to each network in each backend.

A mac-prefix of 20 bits, which is picked from the MacPrefixPool, is
assigned to each Network. The mac-prefix of the network in each...

4e5e8cc9 07/26/2012 06:29 pm Christos Stavrakakis

Warning about missing setting to migration file

18151abe 07/24/2012 02:27 pm Christos Stavrakakis

Fix bugs in migration files

2a8a60d5 07/23/2012 11:49 am Christos Stavrakakis

Increase the size of backend password_hash

cc3f266e 07/23/2012 11:49 am Christos Stavrakakis

Add support for IPv6

- Extend the Network model with fields for holding the IPv6 subnet and
- Update network API methods.
- Modify ganeti hooks to return IPv6 address for all network interfaces.
IPv6 is now derived from the IPv6 subnet of the network in Ganeti,...

77f0fa63 07/23/2012 11:49 am Christos Stavrakakis

Implement IP management

Delegate IP management to synnefo, in order to be able to allocate IP
addresses accross multiple Ganeti backends. This is achieved by creating a
Pool of IPs for each Network, in the form of a bitarray, which is stored
in the DB as a base64 string....

30e0ed74 07/23/2012 11:48 am Christos Stavrakakis

Encrypt Backend password

Use cipher to encrypt the passwords of the Ganeti backends in the DB.
Encryption/decryption is based on a configurable key, defined by the
ENCRYPTION_KEY setting. After modifying this setting, synnefo will be
unable to decrypt already stored passwords, and passwords must be...

0196d9a3 07/23/2012 11:43 am Christos Stavrakakis

Add dirty bit to NetworkInterface

Extend NetworkInterface model with a dirty bit, indicating whether
the index of the NIC is consistent with the one in Ganeti. This flag is
set when deleting a NIC, and is switched off after processing the
notification from Ganeti. Removing a NIC with the dirty bit on is not...

b79f759f 07/23/2012 11:39 am Christos Stavrakakis

Print warning about subnet value during migration

3b56bbe4 07/23/2012 11:39 am Christos Stavrakakis

Set index of NetworkInterface model to not null

e6a42a96 07/23/2012 11:36 am Christos Stavrakakis

Major modifications to Network model

Since Ganeti version 2.6, Ganeti is aware of private networks. We take
advantage of this by propagating network handling to Ganeti. Network
model is expanded to include information about the type of network
(public routed, physical vlan, private filtered), subnet, gateway, dhcp,...

fd65ab41 07/23/2012 11:36 am Christos Stavrakakis

Implement BackendNetwork model

Create a new model, to represent the state of each network in each

aed9b901 07/23/2012 11:32 am Christos Stavrakakis

Create Backend model to represent a ganeti backend

- Create Backend model holding info about credentials, status and resources
- Add Backend as foreign key to VirtualMachine
- Create a cache of Backend clients (RAPI) for better performance

c4e55622 06/06/2012 04:56 pm Christos Stavrakakis

Update modules interacting with AMQP

Update all modules which are interacting with the RabbitMQ messaging system to
use the AMQPClient in order to use highly available queues in active/active

Extend messages to include a unique identifier in order to handle...

f10a0657 03/07/2012 05:43 pm Kostas Papadimitriou

New migrations for cyclades-app

Fixes some flavor constrains issues

a97eecfb 02/24/2012 03:23 pm Giorgos Verigakis

Fix the data migration

Use the uniq field instead of the id.

9290cfab 02/08/2012 01:34 pm Giorgos Verigakis

Renumber the migrations

4fd2095b 02/08/2012 01:27 pm Giorgos Verigakis

Merge remote-tracking branch 'origin/master' into astakos-integration


b1af40e2 02/06/2012 04:24 pm Giorgos Verigakis

Update the Flavor's unique_together constraint

A DB migration is required.

d28eeb0f 02/03/2012 04:35 pm Giorgos Verigakis

Move migrations to new location

9c0ac5af 01/30/2012 06:55 pm Kostas Papadimitriou

Renamed snf-app to snf-cyclades-app