Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app @ 342acb45

# Date Author Comment
342acb45 11/04/2013 09:14 am Kostas Papadimitriou

cyclades: Register url for ports detail view

09b76b7e 11/02/2013 02:39 pm Christos Stavrakakis

cyclades: Fix permissions when looking up ports

Look up of ports should check the port userid and not the network
userid.

db908bb1 11/02/2013 02:30 pm Christos Stavrakakis

cyclades: Choose networks in server-create cmd

d7862097 11/02/2013 01:59 pm Christos Stavrakakis

cyclades: Port userid can not be null

99988465 11/02/2013 01:43 pm Christos Stavrakakis

cyclades: Create server with existing ports

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

ae2da8a2 11/02/2013 01:08 pm Christos Stavrakakis

cyclades: Fix double double creation of IP log

The port creation command called 'associate_port_with_machine' function
in order to associate the port with the machine and create an
IPAddressLog entry. However, this is already done by the connect
function which sends the job in the Ganeti backend. This resulted in...

4cbd934b 11/01/2013 04:17 pm Christos Stavrakakis

cyclades: Reconcile pools only for IPv4+dhcp subs

Perform IP pools reconciliation only for networks with an IPv4 subnet
that has enabled the dhcp option.

fae6e5f0 11/01/2013 04:17 pm Christos Stavrakakis

cyclades: Create ports without 'device_id'

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

6731a6ac 11/01/2013 04:10 pm Christos Stavrakakis

cyclades: Fix bug in floating-ip-list

dfbe006a 11/01/2013 11:55 am Christos Stavrakakis

cyclades: Specify IPv4 address in port-create cmd

7421d45e 11/01/2013 12:55 am Christos Stavrakakis

cyclades: Add 'SNF:floating_ip_pool' to networks

Extend network API methods to include the 'SNF:floating_ip_pool'
attribute which indicates whether floating IP can be allocated from the
network or not. Trying to allocate a floating IP from a network which is...

69c8d65d 11/01/2013 12:45 am Christos Stavrakakis

cyclades: Create port with specified IPv4 Address

Extend POST /ports API method to respsect 'fixed_ips' attribute. If this
attribute contains a valid IPv4 address, the new port will get this
address instead of trying to allocate one from the available IP pools of...

ff863a80 11/01/2013 12:45 am Christos Stavrakakis

cyclades: Add accounting for IP Addresses

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

691c98cf 11/01/2013 12:45 am Christos Stavrakakis

cyclades: Fix bugs relative to pool allocation

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

5055b4c7 11/01/2013 12:03 am Marios Kogias

cyclades: PEP8 Fix

51a681ac 10/31/2013 04:40 pm Marios Kogias

cyclades: Fix bug in port-create

Check if floating-ip belongs to the given network

5f9edd1e 10/31/2013 03:15 pm Marios Kogias

cyclades: Fix bug in snf-manage network-remove

Add decorator to convert api faults

4edfc376 10/31/2013 11:52 am Christos Stavrakakis

cyclades: Get floating IP without specifying pools

Extend GET /floatingips API method, to allow requests that do not
specify the 'floating_network_id' attribute. In this case it will try
to allocate a floating IP address from one of the available floating IP...

8b178e6b 10/30/2013 07:23 pm Christos Stavrakakis

cyclades: Fix server-create and server-inspect

Fix output of server-inspect command. Also, add --wait option to
server-create command and pretty-print the newly created server.

0723a85c 10/30/2013 06:29 pm Christos Stavrakakis

cyclades: --wait option to port-{create,remove}

6b8dc47c 10/30/2013 06:27 pm Christos Stavrakakis

cyclades: Common code for creating ports

Merge code for creating ports that was duplicated between
'logic.servers' and 'logic.ports' modules.

8c15a209 10/30/2013 06:27 pm Christos Stavrakakis

cyclades: Mock Ganeti in ports tests

f32e8021 10/30/2013 06:27 pm Christos Stavrakakis

cyclades: Mock GANETI_USE_HOTPLUG on ports tests

Test that you can not create or delete a port on a machine
that is started if GANETI_USE_HOTPLUG is set to False.

9a73f94d 10/30/2013 05:43 pm Marios Kogias

cyclades: Fix bugs in floating-ip tests

8b388efe 10/30/2013 05:30 pm Christos Stavrakakis

cyclades: Fix typo

b7311f3d 10/30/2013 04:56 pm Dionysis Grigoropoulos

cyclades: Various refactors in subnets

  • Remove unused functions and imports from logic/subnets.py
  • Remove --network-id option from snf-manage subnet-modify and make
    it an argument
  • Fix --ip-version, --dhcp and --gateway options in snf-manage
    subnet-create...
1fb3293d 10/30/2013 04:31 pm Christos Stavrakakis

cyclades: Fix typo

b968e8e6 10/30/2013 04:23 pm Christos Stavrakakis

cyclades: Get VM for update when creating port

53b0ea25 10/30/2013 04:23 pm Christos Stavrakakis

cyclades: Fix floating ips API response

Return 'floatingips' instead of 'floating_ips'.

d610698e 10/30/2013 04:23 pm Christos Stavrakakis

cyclades: Do not allow updating a floating IP

Do not allow attaching and detaching floating IPs to instance with
Neutron floating IP API. Instead floating IPs will be attached/detach to
instances using the /ports API, by specifying the address of the
floating IP in the 'fixed_ips' attribute.

b9364b15 10/30/2013 03:27 pm Marios Kogias

cyclades: Fix bug in floating-ips api tests

b48697f0 10/30/2013 02:26 pm Christos Stavrakakis

cyclades: Fix stale references to moved function

4911365b 10/30/2013 01:14 pm Christos Stavrakakis

cyclades: Fix bug in network test

96feddae 10/30/2013 12:56 pm Christos Stavrakakis

cyclades: Update state of NICs if VM creation fail

Set the state of NICs(ports) to ERROR if the OP_INSTANCE_CREATE job
fails.

3a6be177 10/30/2013 12:51 pm Christos Stavrakakis

cyclades: Rename Port state from BUILDING to BUILD

Neutron API defines the 'BUILD' status. This commit renames BUILDING
state of NIC to BUILD.
e4f484da 10/30/2013 12:43 pm Marios Kogias

cyclades: Update floating-ips api

Make changes to the floating-ips ip so that it complies with the
Openstack Quantum API.

d5a4a8d1 10/30/2013 12:36 pm Christos Stavrakakis

cyclades: Common module for pretty-printing

Create common module for pretty-printing database objects. Currently it
contains only functions for pretty-printing networks and ports.

0711e5aa 10/30/2013 12:56 am Christos Stavrakakis

cyclades: Fix default values for IP pool

Temporary commit to change default offset and size of IPPoolTable
factory.

3b2984dc 10/30/2013 12:40 am Christos Stavrakakis

cyclades: Make tests work with multiple IP pools

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.

e59cda53 10/29/2013 11:20 pm Christos Stavrakakis

cyclades: Fix bugs in IP pools

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.

2c2d4f0a 10/29/2013 08:22 pm Christos Stavrakakis

cyclades: Fix tests for ports

  • Mock GanetiRapiClient
  • Fix some wrong checks about response codes
  • PEP8 fixes
53162472 10/29/2013 07:46 pm Christos Stavrakakis

cyclades: Improve subnet-list management command

Remove unnecessary functions.

e537f85f 10/29/2013 07:41 pm Christos Stavrakakis

cyclades: Fix subnet-list management command

Remove stale imports

f82dfec6 10/29/2013 07:38 pm Christos Stavrakakis

cyclades: Various fixes to networks/subnets/pools

  • 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'...
0e0a6ef9 10/29/2013 07:38 pm Christos Stavrakakis

cyclades: Fix reconciliation for network and pools

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...
9c15e488 10/29/2013 07:36 pm Christos Stavrakakis

cyclades: Fix output of port-inspect command

65566d61 10/29/2013 06:50 pm Dionysis Grigoropoulos

cyclades: Add snf-manage subnet-update

  • Add snf-manage subnet-update. For the time being only the name of
    subnet can be updated.
99718617 10/29/2013 04:03 pm Dionysis Grigoropoulos

cyclades: Small bug fixes in logic/subnets.py

cfc33ff7 10/29/2013 04:03 pm Dionysis Grigoropoulos

cyclades: Add snf-manage subnet-create command

6f99f94f 10/29/2013 04:03 pm Dionysis Grigoropoulos

cyclades: Bug fixes in snf-manage subnet-list

  • Subnet-list now prints correctly the user ID and network ID of a subnet
  • Remove non-existing field "created"
316787ab 10/29/2013 04:03 pm Dionysis Grigoropoulos

cyclades: Update docstrings, remove old functions

  • Update docstrings in api/subnets.py and logic/subnets.py
  • Remove duplicate and unused functions from logic/subnets.py
c068e75d 10/29/2013 04:03 pm Dionysis Grigoropoulos

cyclades: Update snf-manage subnet-create

Update snf-manage subnet-create. Previous version was pushed without
being tested, thus it wasn't working at all.

8646e606 10/29/2013 04:03 pm Dionysis Grigoropoulos

cyclades: Fix some bugs in subnets

  • Fix a bug, where a user could change the name of a subnet without
    being the owner of said subnet.
  • Fix two bugs in snf-manage subnet-create. Fix no-dhcp option and a
    potential crash if the user specified an invalid IP version type....
014df29c 10/29/2013 03:40 pm Christos Stavrakakis

cyclades: Remove stale references to vm.router

87105bf9 10/29/2013 03:06 pm Christos Stavrakakis

cyclades: Remove stale reference to 'router'

a859190b 10/29/2013 02:57 pm Christos Stavrakakis

cyclades: Fix output of network-inspect command

437e1eee 10/29/2013 02:42 pm Christos Stavrakakis

cyclades: Create network in backend if missing

Automatically create a network in a Ganeti backend if missing.
Currently, this was done only for private networks. This commit changes
this to be done for any kind of networks.

a15114a0 10/29/2013 02:26 pm Christos Stavrakakis

cyclades: Default name for ports and subnets

3d63d954 10/29/2013 02:22 pm Christos Stavrakakis

cyclades: Set external_router for public networks

Set 'external_router' attribute of created networks to True, if a
network is a public network.

7f7f49e3 10/29/2013 02:20 pm Christos Stavrakakis

cyclades: Add migratrion for external_router field

Add data migration for 'external_router' fields. This field is set to
True for all 'public' networks.

495e2be8 10/29/2013 02:17 pm Christos Stavrakakis

Revert "cyclades: Add /routers api"

This reverts commit 69dadbe4e3223dc4d8cbaa5b09dde755c15679ed. Temporary
remove the /routers API.

9c74cc19 10/25/2013 04:25 pm Marios Kogias

cyclades: Fix POST /ports

Modify port create api call. If the user gives a public network
he has to give a valid floating ip as well.

79f4eec0 10/25/2013 03:41 pm Christos Stavrakakis

cyclades: Use existing IP when creating port

Extend port creation with the option to use an existing IPAddress. This
will be used to create a port with an existing Floating IP. Also, extend
port-creata management command with the '--floating-ip' option.

6d5c0344 10/25/2013 03:03 pm Christos Stavrakakis

cyclades: Fixes to port-create command

Verbal and code-style fixes to port-create command.

54f13218 10/25/2013 02:30 pm Christos Stavrakakis

cyclades: PEP8 fix

666b9edc 10/25/2013 12:35 am Marios Kogias

cyclades: Fix snf-manage floating-ip-list

A minor fix to the snf-manage floating-ip-list command to comply
to the new models

d9c36253 10/25/2013 12:35 am Marios Kogias

cyclades: snf-manage floating-ip-attach

snf-manage floating-ip-attach <address> --machine <server_id/router_id>

b3106aa4 10/25/2013 12:35 am Marios Kogias

cyclades: snf-manage floating-ip-dettach <address>

a1ab4e66 10/25/2013 12:35 am Marios Kogias

cyclades: Fix bug in snf-manage network-modify

There was no field floating_ips, ips instead.

69dadbe4 10/25/2013 12:35 am Marios Kogias

cyclades: Add /routers api

  • Add support for /routers api calls
  • Add tests for the api
9d1e6480 10/25/2013 12:35 am Marios Kogias

cyclades: snf-manage floating-ip-release <address>

7bff4d2f 10/25/2013 12:33 am Marios Kogias

cyclades: Add a port deletion test

0e4ec1f5 10/25/2013 12:33 am Marios Kogias

cyclades: Fix snf-manage port-create command

In order to create a new port on a server you give --server <server_id>
In order to create a new port on a router you give --router <router_id>

f29f1326 10/25/2013 12:33 am Marios Kogias

cyclades: Start the snf-manage floating-ip commands

  • Add snf-manage floating-ip-create command
bf42a16c 10/24/2013 06:32 pm Dionysis Grigoropoulos

cyclades: Add snf-manage subnet-list command

5d83d2ff 10/24/2013 04:49 pm Dionysis Grigoropoulos

cyclades: Bug fixes in subnets

9cd6d7e9 10/24/2013 03:33 pm Dionysis Grigoropoulos

cyclades: Update api/subnets.py to use logic files

9eb0710b 10/24/2013 12:36 pm Dionysis Grigoropoulos

cyclades: move subnets.py from api to logic

Move api/subnets.py to logic/subnets.py, for further code refactoring

a17ce1de 10/24/2013 10:38 am Dionysis Grigoropoulos

cyclades: Add get_subnet in management/common.py

00eb7f51 10/18/2013 04:34 pm Christos Stavrakakis

cyclades: Add message to exceptions

1aec0223 10/18/2013 04:33 pm Christos Stavrakakis

cyclades: Fix bug in port-inspect command

4ac628d3 10/18/2013 04:16 pm Christos Stavrakakis

cyclades: Fix network inspect management command

86961519 10/18/2013 03:44 pm Christos Stavrakakis

cyclades: Add backend code to Ports API/logic

Add backend code to create and remove ports from Ganeti backends. Also
add some imporovements and fixes to logic, API code and management
commands.

fe3b2809 10/18/2013 02:50 pm Christos Stavrakakis

cyclades: Fix bug when creating networks

9f6760ee 10/18/2013 01:16 pm Christos Stavrakakis

cyclades: PEP8 fixes

a1d3bc8a 10/18/2013 01:13 pm Christos Stavrakakis

cyclades: Hack-ish commit for old IP pools

411e5025 10/16/2013 06:53 pm Dionysis Grigoropoulos

cyclades: Update subnet tests

097009bf 10/16/2013 06:28 pm Dionysis Grigoropoulos

cyclades: s/slac/enable_slac in api/subnets.py

868e4ce0 10/16/2013 01:57 pm Dionysis Grigoropoulos

cyclades: Fix a typo in api/subnets.py

911a1bc1 10/16/2013 01:26 pm Dionysis Grigoropoulos

cyclades: Various fixes in api/subnets.py

4445f97a 10/16/2013 01:26 pm Dionysis Grigoropoulos

cyclades: Fully support ip pools in subnets

5fa91dc4 10/16/2013 11:37 am Marios Kogias

cyclades: Add snf-manage port-inspect command

This command will provide info about the port concerning the DB and
the Ganeti state. For now, it provides only DB info.

0069a20c 10/16/2013 11:19 am Marios Kogias

cyclades: Add snf-manage port-remove command

f16aa9e6 10/15/2013 01:20 am Marios Kogias

cyclades: Add logic ports.py

Created a new file for ports in logic directory. This will have
the code about port manipulation in the backend. For now it is just
used for db filling.
Use the new function 'create' in the ports API.

a1713485 10/15/2013 01:20 am Marios Kogias

cyclades: snf-manage port-create

  • Create new command snf-manage port-create
  • Create new function util.get_security_group
be7c5377 10/14/2013 08:19 pm Christos Stavrakakis

cyclades: Fix some network management commands

  • Fix network-list to properly display networks. Add optionally
    'subnets' fields to display the IDs of all subnets
  • Fix network-modify to externally reserve the IPs in DB
  • Fix network-create to not require a name and subnet4 or subnet6...
3278725f 10/14/2013 05:56 pm Christos Stavrakakis

cyclades: Refactor backend code for new networks

  • Optimize DB queries by using prefetch related for NIC IPs.
  • Do not try to construct new NIC if it does not exist in Cyclades DB.
  • Update tests
01adca6b 10/14/2013 05:42 pm Dionysis Grigoropoulos

cyclades: Neutron API, update tests for IP Pools

a996065e 10/14/2013 05:42 pm Dionysis Grigoropoulos

cyclades: Update subnets.py to support IP Pools

Update subnets.py to use the two functions introduced in commit 2a1e6fb

97ca522f 10/14/2013 05:42 pm Dionysis Grigoropoulos

cyclades: Update subnets.py to support slac

IPv6 subnets now support a boolean attribute called slac.
If a request for a subnet contains both a slac field and an enable_dhcp
field, only the slac one will be used. If no slac field is found for an
IPv6 subnet, the field enable_dhcp will be used instead....