- 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 3 commits
-
-
Christos Stavrakakis authored
Add 'created' and 'updated' datetime fields in Subnet model.
-
Dionysis Grigoropoulos authored
* Fix the name of a port not being saved * Check the length of the name of a port is within acceptable limits
-
Dionysis Grigoropoulos authored
* Add a function logic/utils.py to check the length of a string and raise an API fault with the corresponding message. * Check the length of the name of servers/ports/networks/subnets
-
- 09 Dec, 2013 2 commits
-
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
-
- 06 Dec, 2013 1 commit
-
-
Christos Stavrakakis authored
-
- 04 Dec, 2013 1 commit
-
-
Christos Stavrakakis authored
Do not have a default value from 'link' attribute of IP_LESS_ROUTED networks. Instead if the admin does not specify a value in network-create command, uniquely name the networks by with the BACKEND_PREFIX_ID and network id, e.g. snf-link-42.
-
- 29 Nov, 2013 2 commits
-
-
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.
-
Giorgos Korfiatis authored
Also add 2013 in package COPYRIGHT files.
-
- 22 Nov, 2013 2 commits
-
-
Giorgos Korfiatis authored
Introduce command enforce-resources-cyclades, which checks for quota violations and applies actions to enforce the limits. By default, it operates only on these resources: cpu, ram, floating_ip.
-
Christos Stavrakakis authored
Add 'name' attribute to newly created NICs. Currently, the name of the NICs will not be used to refer to NICs, as it will be in Synnefo 0.15. Names are added only to ease the migration to version 0.15. Also, this commit updates snf-dispatcher to preserve the name of the NIC, if any, when updating instance NICs. Finally, the commit updates handling of firewall tags by adding a second tag that contains the name of the NIC. The tags with the name of the NICs will be kept in Synnefo 0.15, and the old tags with the index of the NIC will be removed.
-
- 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.
-
- 15 Nov, 2013 1 commit
-
-
Christos Stavrakakis authored
Add basic support for quering a public IP address. All uses of this IP address are returned which are currently rendered to a dummy template.
-
- 14 Nov, 2013 1 commit
-
-
Dionysis Grigoropoulos authored
* Handle invalid user input
-
- 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.
-
- 07 Nov, 2013 1 commit
-
-
Christos Stavrakakis authored
Return [] instead of None, if the field is null.
-
- 06 Nov, 2013 5 commits
-
-
Christos Stavrakakis authored
When ports are created from the API they do not have an IPv6 address. The IPv6 address is only available after the MAC address of the NIC(port) is known which is only available after the message from the Ganeti backend has been received. However, dispatcher did not created correctly the IPv6 addresses. This commit fixes this issue along with some small code refactoring.
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
Fix bug in port tests that were introduced by latest changes in IPPool manager.
-
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.
-
- 04 Nov, 2013 2 commits
-
-
Christos Stavrakakis authored
* Do not delete the network from the DB if it has associated floating IPs. This should never be the case because a check is made before deleting the network, however this check is added for safety. * Do not allow deleting a network if there are still ports configured on on that network. Until now this check was for machines, but there may be ports that are not connected to any machine. * Delete subnet IP pools when network is deleted. * Get network in locked mode in network-remove cmd. * Log error if trying to release an IPv4 address that does not belong to any of the IP pools of the associated subnet. * Excluded deleted IPv4 addresses when reconciling IP pools. * Do not set the network action to destroy when removing network from some backend.
-
Dionysis Grigoropoulos authored
* Add snf-manage subnet-inspect * Update return_end and return_start function in IPPool
-
- 02 Nov, 2013 3 commits
-
-
Christos Stavrakakis authored
Look up of ports should check the port userid and not the network userid.
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
Extend POST /servers API call to support creation of servers that will be using existing ports. Networking of the instance is defined via the 'networks' attribute which can contain either network UUIDs or port UUIDs. In case of network UUIDs, the user can also request for a specific IPv4 address. For example: {"network": [{"uuid": 41, "fixed_ip": "192.168.2.0"}, {"port": 42}]} This patch also changes the 'floating_ips' attribute to contain not IPv4 addresses of floating IPs, but the UUIDs of the floating IPs that the user want to connect to the instance.
-
- 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 2 commits
-
-
Christos Stavrakakis authored
Fix bug when trying to allocate a specified IPv4 address. Only one of the IP pools will contain this address, so you must bypass InvalidValue exceptions until searching all pools. Also PoolManager raised 'EmptyPool' exception when trying to allocate from an empty pool. However, if someone tried to allocate a specific value, 'ValueNotAvailable' should be returned.
-
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 3 commits
-
-
Christos Stavrakakis authored
Test that you can not create or delete a port on a machine that is started if GANETI_USE_HOTPLUG is set to False.
-
Christos Stavrakakis authored
Neutron API defines the 'BUILD' status. This commit renames BUILDING state of NIC to BUILD.
-
Marios Kogias authored
Make changes to the floating-ips ip so that it complies with the Openstack Quantum API.
-
- 29 Oct, 2013 6 commits
-
-
Christos Stavrakakis authored
Temporary commit to change default offset and size of IPPoolTable factory.
-
Christos Stavrakakis authored
Refactor tests so that they are aware that a network can have multiple IP pools. Also, add extra check to PoolManager methods in order to check whether a value is contained in the pool.
-
Christos Stavrakakis authored
Fix default value for 'external' argument of release_address method of Network model. Also fix how is checked whether an IP pool contains an address.
-
Christos Stavrakakis authored
Fix reconciliation to work with multiple IP pools per network: * Fix reconcile-networks command to check if a reserved_ip in a Ganeti network is reserved in the pool that contains this IP (if any) * Fix reconcile-pools to reconcile each of the networks IP pools and take into account only those IP address that are contained in the pool.
-
Christos Stavrakakis authored
* Fix IP pools of subnets to take into account the 'offset' when searching if a pool contains an IP address and when converting from value to index and from index to value. * Fix the way subnets are created from 'logic/networks' * Rename 'validate_network_params' function to 'validate_subnet_params' and move it from 'networks' to 'subnets' packages.
-
Christos Stavrakakis authored
-