Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / db @ 698306b8

# Date Author Comment
698306b8 10/23/2012 05:24 pm Christos Stavrakakis

Fix compatibility issues with python-bitarray

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

3718c0f1 10/17/2012 10:55 am Christos Stavrakakis

Restore IP Pool creation for corner cases

941992c4 10/16/2012 11:30 pm Christos Stavrakakis

Create IPPool when creating Network

Create the IPPool associated with each Network, when creating it. Until
now, IPPools were created on first demand. However, because the Network
object is not accessed in exclusive mode, concurrent access to the
Network model resulted in a race condition. More than one workers may...

dab038a2 10/16/2012 01:38 pm Christos Stavrakakis

Fix typos

3e5675f0 10/10/2012 01:05 pm Christos Stavrakakis

Release mac_prefix only if network is MAC_FILTERED

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

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

4216cd83 10/04/2012 06:18 pm Christos Stavrakakis

Fix bug about RAPI client pooling

Modify the pooled_rapi_client context manager to handle exceptions
and release the client in any case. Also modify uses of reconciliation
to handle exceptions inside the scope of the context manager

2cea7f38 10/04/2012 01:42 pm Christos Stavrakakis

Fix wrong call in VirtualMachine get_client

cc50e51a 10/04/2012 01:39 pm Christos Stavrakakis

Add missing arguments in Backend's get_client

cfd70896 10/03/2012 04:04 pm Christos Stavrakakis

Remove user provided names from models unicode

Remove user provided names from models representation, as the user
may provide a value that can affect the admin terminal. Fix suggested
by vkoukis.

bf5c82dc 10/03/2012 01:09 pm Christos Stavrakakis

Add extra logging

3524241a 10/03/2012 12:22 pm Christos Stavrakakis

Pool Ganeti RAPI clients

- Move Ganeti RAPI client from snf-common to snf-cyclades-app/logic.
- Create GanetiRapiClientPool for pooling GanetiRapiClient objects
- Create context manager in db.models for pool handling
- Update code using the RAPI client

adc46059 09/28/2012 12:19 pm Christos Stavrakakis

Perform allocations in separate transactions

Add ForUpdateManager to the Backend model, in order to guarantee
exclusive order when allocating a VM.

Use manual transactions when allocating Backend and public IP for a new
VM, since these allocations need exclusive access (SELECT..FOR UPDATE)...

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

2dbe7563 09/20/2012 12:14 pm Christos Stavrakakis

Add tests for PoolManager(s)

121c7507 09/20/2012 12:14 pm Christos Stavrakakis

Fix bugs in IPPool

- Do not always reserve gateway
- Initial reservations must be in reserved map

af6a3bc5 09/19/2012 01:16 pm Christos Stavrakakis

Unique mac-prefix only for mac-filtered networks

b533e9b2 09/19/2012 01:16 pm Christos Stavrakakis

Add logging to synefo.db.models

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.

0224049a 07/27/2012 09:48 pm Christos Stavrakakis

Add check for maximum secret encryption key

SECRET_ENCRYPTION_KEY can be up to 32 bytes long, since bigger keys are
not supported by AES encryption. Add comment to the setting and better
message to exception.

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.

ca8b1c21 07/27/2012 07:28 pm Christos Stavrakakis

Rename setting

Rename ENCRYPTION_KEY to SECRET_ENCRYPTION_KEY to prevent from being
displayed at django debug traces.

8731a246 07/27/2012 07:20 pm Christos Stavrakakis

Revert "Start pool indexing from 0"

This reverts commit 2f998a3756c6fc7ddce9e0f83dea738e473320b8.

2f998a37 07/27/2012 03:41 pm Christos Stavrakakis

Start pool indexing from 0

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

3ee8033d 07/26/2012 06:29 pm Christos Stavrakakis

Release resources of Network only on deletion

Assert that this is an 'real' deletion of a Network before releasing
it's resources. Without this patch, a resource used by an other Network
could be released, if someone called the Network.update_state function...

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

Fix bugs in migration files

864bed43 07/23/2012 11:49 am Christos Stavrakakis

Implement model manager using row-level db locking

Implement ForUpdateManager that uses SELECT .. FOR UPDATE statement in
order to acquire row-level exclusive locks to DB. Essentially this
manager backports the select_for_update() method that is implemented in...

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

Increase the size of backend password_hash

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

Use ForUpdateManager to Pool objects

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

6dd70a5c 07/23/2012 11:49 am Christos Stavrakakis

New management command for creating a network

Create a management command for creating networks. Also remove
the initial_data.json, since it is currently not necessary.

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

839e2bd0 07/23/2012 11:48 am Christos Stavrakakis

Update network settings

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

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

Common functions for instance/network backend name

98cc8237 07/23/2012 11:39 am Christos Stavrakakis

Release resources when deleting network

Set as available in the pool the bridge and mac prefix that was
used by the deleted network.

0b827aa4 07/23/2012 11:39 am Christos Stavrakakis

Bug fixes concerning networks

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

f5b4f2a3 07/23/2012 11:33 am Christos Stavrakakis

Use the Backend client instead of global RAPI

Replace use of global RAPI client, with the cached client from the
VirtualMachine or Backend model.

Dispatch network actions to all backends.

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

924d8085 07/23/2012 11:32 am Christos Stavrakakis

Rename backend_id to backend_vm_id

Rename backend_id field of VirtualMachine model to avoid conflict between the
backend that hosts the VM and the id that the VM will have on the backend.

1bce82c0 07/23/2012 11:32 am Christos Stavrakakis

Fix white space and PEP8

28f83276 07/09/2012 03:38 pm Kostas Papadimitriou

Merge branch 'simplequotas' into queues+minor_net

ce55f211 07/02/2012 08:25 pm Kostas Papadimitriou

Simple per user quota mechanism for networks/vms

- New dict setting VMS_USER_QUOTA to allow setting per user quota
(overrides MAX_VMS_PER_USER setting)
- Private networks quota mechanism (based on MAX_NETWORKS_PER_USER and
NETWORKS_USER_QUOTA settings)...

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

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

Conflicts:
snf-cyclades-app/synnefo/api/util.py

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

Update the Flavor's unique_together constraint

A DB migration is required.

fd00a867 02/03/2012 05:33 pm Giorgos Verigakis

Remove obsolete files that were restored due to merge

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

Move migrations to new location

cc875294 02/02/2012 05:10 pm Giorgos Verigakis

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

Conflicts:
runtests.sh
snf-cyclades-app/synnefo/aai/__init__.py
snf-cyclades-app/synnefo/aai/fixtures/auth_test_data.json
snf-cyclades-app/synnefo/aai/middleware.py
snf-cyclades-app/synnefo/aai/models.py...

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

Renamed snf-app to snf-cyclades-app