- 18 Dec, 2013 1 commit
-
-
Christos Stavrakakis authored
Fix migration that caused creation of Subnet for networks that did not had enabled the 'dhcp' option.
-
- 17 Dec, 2013 1 commit
-
-
Christos Stavrakakis authored
Add 'created' and 'updated' datetime fields in Subnet model.
-
- 09 Dec, 2013 2 commits
-
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
-
- 06 Dec, 2013 1 commit
-
-
Christos Stavrakakis authored
-
- 29 Nov, 2013 1 commit
-
-
Christos Stavrakakis authored
Since the size of IP pools is not automatically computed by the size of corresponding subnet, the data migration must add sizes to all existing IP pools.
-
- 20 Nov, 2013 2 commits
-
-
Christos Stavrakakis authored
Extend migration file to delete NICs that belong to VMs that have already been deleted. Such NICs may exist due to a bug in previous versions of Synnefo, and are totally useless. Also, they must be removed because they will appear as stale ports in the new network API.
-
Christos Stavrakakis authored
Migration value of 'firewall_profile' attribute from '' to None.
-
- 08 Nov, 2013 1 commit
-
-
Christos Stavrakakis authored
Use 'models.PROTECT' for 'on_delete' attribute for some ForeignKey relationship between networking models. This will create a more "strict" database and protect for unexpected data loss.
-
- 06 Nov, 2013 2 commits
-
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
Before implementing the Neutron API, each network had one IP pool that contained the whole subnet CIDR. This changed since now we have multiple IP Pools(with base and offset attributes) per network and this IP pools do not contain the network, broadcast and gateway addreeses. This commit fixes an old migration to add 'base' and 'offset' attribute to all IP pool objects, and adds an extra step to old and not-initialized pools in order to externally reserve those addresses.
-
- 02 Nov, 2013 1 commit
-
-
Christos Stavrakakis authored
-
- 01 Nov, 2013 1 commit
-
-
Christos Stavrakakis authored
Allow creation of ports that are not connected to any instance. Such ports will be in 'DOWN' state. To allow this, 'machine' attribute of NetworkInterface model has been made to allow null values. Finally, the 'logic.ports' module has been remove, and the corresponding code has been merged into 'logic.servers' module.
-
- 31 Oct, 2013 1 commit
-
-
Christos Stavrakakis authored
Create IPAddressLog DB table to hold information about allocation of IP addresses to virtual servers. The information that is currently saved contains the IP address, the ID of the virtual server, the ID of the virtual network along with the datetime that the address has been allocated and released from the server. An entry in this table is created every time a NetworkInterface card that has an associated IP address is created in DB. The entry is updated with the 'released_at' timestamp when the NIC is destroyed in Ganeti. Currently, only IP addresses from public networks (network.public=True) are stored in this table. This commit also includes a DB data migration for all already allocated IP addresses. However, the 'allocated_at' timestamp of this entries will not be correct.
-
- 30 Oct, 2013 1 commit
-
-
Christos Stavrakakis authored
Neutron API defines the 'BUILD' status. This commit renames BUILDING state of NIC to BUILD.
-
- 29 Oct, 2013 1 commit
-
-
Christos Stavrakakis authored
Add data migration for 'external_router' fields. This field is set to True for all 'public' networks.
-
- 09 Oct, 2013 8 commits
-
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
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.
-
Christos Stavrakakis authored
Migrate db data from NetworkInterface model to IPAddress model.
-
Christos Stavrakakis authored
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 to indicate whether it is a floating or static IP. Also the dummy SecurityGroup model has been created, although it will not currently be used. The NetworkInterface model has been extended with the 'name', 'device_owner' and 'security_groups' attributes. Signed-off-by:
Marios Kogias <marioskogias@grnet.gr>
-
Christos Stavrakakis authored
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' attribute. Signed-off-by:
Marios Kogias <marioskogias@grnet.gr>
-
Christos Stavrakakis authored
Migrate attributes from old Network model to new Subnet model.
-
Christos Stavrakakis authored
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 <dgrig@grnet.gr>
-
- 07 Oct, 2013 1 commit
-
-
Christos Stavrakakis authored
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.
-
- 03 Oct, 2013 1 commit
-
-
Christos Stavrakakis authored
-
- 01 Oct, 2013 1 commit
-
-
Christos Stavrakakis authored
Extend 'Backend' models with 'disk_template' attribute, that contains the list of disk templates that are available in each backend.
-
- 10 Sep, 2013 1 commit
-
-
Christos Stavrakakis authored
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.
-
- 07 Aug, 2013 1 commit
-
-
Christos Stavrakakis authored
-
- 24 Jul, 2013 1 commit
-
-
Christos Stavrakakis authored
-
- 22 Jul, 2013 1 commit
-
-
Christos Stavrakakis authored
-
- 02 Jul, 2013 1 commit
-
-
Christos Stavrakakis authored
Add migration file for floating IPs and VM task state.
-
- 31 May, 2013 1 commit
-
-
Christos Stavrakakis authored
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.
-
- 21 May, 2013 1 commit
-
-
Christos Stavrakakis authored
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. * Do not use hotplug at Xen backends, since it is not implemented. * Support different 'hvparams' for Xen and KVM backends. Update GANETI_CREATEINSTNACE_KWARGS setting to hold 'hvparams' for both Xen and KVM. * When getting instance console, check 'serial_console' hvparam only for Xen instances. Refs #3772
-
- 15 May, 2013 2 commits
-
-
Christos Stavrakakis authored
Migration 0066 should not run on a fresh installation.
-
Christos Stavrakakis authored
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 otherwise it will not possible to decrypt them.
-
- 30 Apr, 2013 1 commit
-
-
Christos Stavrakakis authored
* 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. Also add the corresponding database migrations.
-
- 22 Mar, 2013 1 commit
-
-
Christos Stavrakakis authored
Use "ACTIVE" as NIC's default state, to avoid addding a data migration.
-
- 21 Mar, 2013 1 commit
-
-
Christos Stavrakakis authored
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. This drawback of this approach is that if the Ganeti hooks never run (building ERROR), Cyclades will never associate the IPv4 address with a machine and therefore this address will never be released. This commit fixes this issue by creating the VM's public NIC in DB when creating the server. Also the NetworkInterface model is extended with a 'state' field to indicate if the NIC is active or still building. Finally, the corresponding API calls are modified in order to return only 'ACTIVE' NICs.
-
- 04 Dec, 2012 1 commit
-
-
Dimitris Aragiorgis authored
-