Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / api @ 8e057ed0

# Date Author Comment
8e057ed0 01/09/2014 02:23 pm Christos Stavrakakis

cyclades: Allow snapshots only for ext_ template

Do not allow taking a snapshot from a volume, if the disk template is
not ext_*.

4944a1f8 01/09/2014 02:23 pm Christos Stavrakakis

cyclades: Various fixes for volumes and snapshots

6c291f42 01/09/2014 02:22 pm Christos Stavrakakis

cyclades: Initialize 'volume' app

Initialize new 'volume' app, which will implement the block storage API
of Cyclades.

aff81af3 12/19/2013 06:05 pm Christos Stavrakakis

cyclades: Fix typo

ce2cf379 12/19/2013 05:26 pm Christos Stavrakakis

cyclades: Fix typo

bdedfd9d 12/19/2013 05:22 pm Christos Stavrakakis

cyclades: Add 'userid' and 'public' to subnets

Extend 'Subnet' model with 'userid' and 'public' attributes. This is
required in order to avoid an expensive join when listing subnets. This
commit also includes a database migration for existing subnets.

bf58eed3 12/19/2013 04:36 pm Dionysis Grigoropoulos

cyclades: Set detail=True by default

  • Set detail=True by default for networks and ports
  • Update subnets to support /detail
01def7a4 12/19/2013 04:36 pm Dionysis Grigoropoulos

cyclades: Properly handle subnet/floating_ip IDs

  • Propery handle IDs that weren't an integer
03d430b5 12/18/2013 07:17 pm Christos Stavrakakis

cyclades: Comment out unused tests

Security groups are not working yet. Comment out relevant tests.

b7e79bf3 12/18/2013 11:51 am Christos Stavrakakis

cyclades: Do not prefetch related in get()

883c1f94 12/17/2013 05:11 pm Christos Stavrakakis

cyclades: Optimize network related DB queries

Use 'prefetch_related' and 'select_related' to optimize DB queries.

e0b9a688 12/17/2013 12:03 pm Dionysis Grigoropoulos

cyclades: Fix bugs in port creation

  • Fix the name of a port not being saved
  • Check the length of the name of a port is within acceptable limits
e1fab40f 12/09/2013 06:07 pm Christos Stavrakakis

cyclades: Fix locking issue in port create

Lock VM before locking network, because otherwise a deadlock may occur
with code of snf-dispatcher.

8b7c2fc3 12/09/2013 05:00 pm Christos Stavrakakis

cyclades: Fix typo error

734acd05 12/09/2013 12:24 pm Christos Stavrakakis

cyclades: Only IPv4 addresses in port forwarding

Fix bug that caused calling of port forwarding setting with IPv6
addresses.

d614fa31 12/08/2013 01:59 pm Christos Stavrakakis

cyclades: Get network lock when creating a port

Take the network lock before creating a port in the network. Not taking
the lock may result in a race condition between creating the port and
deleting the network. Also, it can cause a DB deadlock.

2aba7764 12/03/2013 02:44 pm Sofia Papagiannaki

snf_django: Change error status code if request method is not valid

Return 405 (NotAllowed) instead of 400 (BadRequest)
Add Allow header in the response containing the list of valid methods

bd16bf3e 12/02/2013 04:03 pm Stratos Psomadakis

Encrypt instance ids in the stats URLs

475d4a85 11/29/2013 04:00 pm Christos Stavrakakis

cyclades: Move all management commands to logic

Move all management commands from 'api/management/commands' to
'logic/management/commands'.

ac17f307 11/27/2013 06:15 pm Christos Stavrakakis

cyclades: Change default value for dhcp

c653a1cf 11/27/2013 04:11 pm Christos Stavrakakis

cyclades: Fix stale import

9cec0c17 11/27/2013 12:21 pm Christos Stavrakakis

cyclades: Change behaviour of servers fqdn

Change behaviour of 'CYCLADES_SERVERS_FQDN' setting: * If this setting is set to 'None', do not fall back to the public IP
address of the machine. * Return the value of the setting even if the machine has no public...

78a37c7f 11/26/2013 01:44 pm Christos Stavrakakis

cyclades: Fix typo in management command

1709a768 11/25/2013 04:25 pm Dionysis Grigoropoulos

cyclades: Fix a bug in logic/subnets.py

  • Don't allow creation of subnets on a network that is initilized in a
    backend
57c57b88 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: Typo fixes

0f89715b 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: Update some snf-manage commands

  • Update network-remove, server-remove, floating-ip-remove, port-remove
    to extend RemoveCommand class added in commit
    ec15e2ab68f90dcc7310863c9293708055fbfb7d
20fc5c41 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: Update some snf-manage *-remove commands

  • Add support for removal of multiple targets in snf-manage
    port-remove, server-remove, network-remove and floating-ip-remove
    commands
d27b16cc 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: Verbal fixes on some snf-manage commands

2bd38823 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: More verbal fixes

28ac6e86 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: Update snf-manage network-create

  • Allow the creation of a network without specifying any subnets
91430ce0 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: Better handling of deleted subnets

  • Fix a bug where snf-manage subnet-list printed deleted subnets too
  • Fix a query, that also returned deleted subnets
ef761fe4 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: Update success code on subnet create

406968dc 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: Catch an unhandled exception

eb5f7eb0 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: Fix a bug in logic/subnets.py

  • Fix a potential crash if the gateway IP was the last available IP of
    the subnet
  • Create the corresponding test
83157287 11/25/2013 01:13 pm Dionysis Grigoropoulos

Add a new function to assert success code 201

  • Add assertSuccess201 function
  • Use this new function in test/subnets.py
2a58c29b 11/24/2013 02:53 pm Christos Stavrakakis

cyclades: Add default owner for port

Consider as default owner for a port the owner of the machine that the
port will be connected to.

2dc27ac1 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Add resource visibility flags

Rename flag `allow_in_projects' to `ui_visible'. Add flag `api_visible'.
The former entails the latter.

c2e41963 11/22/2013 01:16 pm Christos Stavrakakis

cyclades: Small fixes to server-import command

7bbe4333 11/20/2013 12:05 pm Ilias Tsitsimpis

cyclades: Catch exception in verify_personality

The verify_personality function assumes that the contents of a
personality is encoded in base64 and tries to decode them. But if the
client didn't encode them a TypeError `Incorrect padding' will be
raised. Catch this exception and raise a BadRequest.

5083fc47 11/15/2013 02:13 pm Christos Stavrakakis

Rename 'cpu' and 'ram' resources

Rename CPU and RAM relative resources to avoid data migrations.
Specifically, the resources that are renamed are the following:

  • cpu -> total_cpu
  • ram -> total_ram
  • active_cpu -> cpu
  • active_ram -> ram
6e73f499 11/14/2013 12:14 pm Christos Stavrakakis

cyclades: Allow deletion of ports from public nets

Move check about deleting a port from a public network. This check is
only enforced in the API, but is allowed in logic layer, e.g. snf-manage
commands.

a5a15eba 11/14/2013 12:14 pm Christos Stavrakakis

cyclades: Add '--active' filter to ip-list cmd

Add filter to display only IPs that are currently active.

64209939 11/14/2013 12:14 pm Christos Stavrakakis

cyclades: Rename attribute to 'router:external'

Rename 'external_router' attribute of network to 'router:external' as
defined in the API.

5b9f9c52 11/14/2013 08:41 am Dionysis Grigoropoulos

cyclades: Fix a bug in api/subnets.py

  • Allow users to view subnets that are attached to a public network
42e041f0 11/13/2013 07:41 pm Christos Stavrakakis

cyclades: Fix location of 'ip-list' command

3bb5e4b7 11/13/2013 02:26 pm Marios Kogias

cyclades: Fix and rename snf-command

Replace snf-manage floating-ip-history with ip-list
snf-manage ip-list (--address <ip_address>) (--server <server-id>)
This is a normal ListCommand so it can take other options like
--filter-by.

046c8f11 11/13/2013 10:39 am Christos Stavrakakis

cyclades: Rename option

Rename '--allocation-pools' option to '--allocation-pool'.

55b3d06b 11/13/2013 08:41 am Christos Stavrakakis

cyclades: Fix broken tests

Fix some tests that broke because of recent changes in astakosclient.
The 'token' argument has been removed, so all mocking arguments are
shifted by one.

9b5dd109 11/12/2013 05:21 pm Christos Stavrakakis

cyclades: sed 's/astakos_url/astakos_auth_url/g'

9835a70d 11/12/2013 01:44 pm Christos Stavrakakis

cyclades: Replace ASTAKOS_BASE_URL

Replace ASTAKOS_BASE_URL with ASTAKOS_AUTH_URL.

a1dae38d 11/12/2013 01:34 pm Christos Stavrakakis

Merge branch 'feature-cyclades-networks' into develop

Conflicts:
snf-cyclades-app/synnefo/api/management/commands/server-inspect.py
snf-cyclades-app/synnefo/app_settings/urls.py
snf-cyclades-app/synnefo/logic/backend.py
snf-cyclades-app/synnefo/logic/backend_allocator.py...

ddffd973 11/12/2013 01:06 pm Christos Stavrakakis

cyclades: Fix some broking tests

2e0f135c 11/12/2013 02:22 am Marios Kogias

cyclades: Rename snf-manage floating-ip-state

New name is snf-manage floating-ip-history <floating-ip-address>
Get info about which servers this ip is or was connected to.

44bd008a 11/11/2013 04:43 pm Dionysis Grigoropoulos

cyclades: Fix a bug in network and subnet create

  • Fix a bug if the user specified no allocation pools
  • Fix a wrong error message in logic/subnets.py
0d1f9117 11/11/2013 04:00 pm Dionysis Grigoropoulos

cyclades: Add a new function in logic/subnets.py

  • Add a function in logic/subnets.py that parses allocation pools
  • Add a new option in snf-manage network-create for allocation pools
  • Update subnet-create to use the new function
55480205 11/11/2013 03:23 pm Dionysis Grigoropoulos

cyclades: Fix --allocation-pool in subnet-create

Update the way allocation-pools work in subnet-create. Now,
--allocation-pool can be used multiple times, each time for a different
pool. Eg.,
snf-manage subnet-create --network-id 1 --cidr 192.168.42.0/24...

80a548e3 11/11/2013 12:59 pm Christos Stavrakakis

Merge branch 'master' into develop

Conflicts:
Changelog
astakosclient/astakosclient/keypath.py
ci/utils.py
docs/admin-guide.rst
snf-astakos-app/astakos/im/cookie.py
snf-astakos-app/astakos/im/functions.py
snf-astakos-app/astakos/im/quotas.py
snf-astakos-app/astakos/im/views/projects.py...

210e5933 11/11/2013 11:11 am Christos Stavrakakis

cyclades: Simplify code of 'api.subnets' module

e5841f52 11/10/2013 06:58 pm Marios Kogias

cyclades: Fix bug in floating-ip-remove

Add decorator convert_api_faults

0fc4b580 11/10/2013 06:57 pm Marios Kogias

cyclades: snf-manage floating-ip-state

snf-manage floating-ip-state <floating_ip_state>
Find if a floating-ip is attached to a server or not.
IPAddressLog now can contain multiple entries for the same ip.

a53b5141 11/10/2013 06:21 pm Marios Kogias

cyclades: snf-manage por-list --server --public

List only ports connected to public networks
List only ports connected to a specific server

c6fe2f41 11/10/2013 06:21 pm Marios Kogias

cyclades: snf-manage server-create --port

Use --port multiple times to configure server connections.
Possible forms are:
  • --port network:<network_id>(,address=<ip_address>)
  • --port id:<port_id>
  • --port floatingip:<floatingip_id>.
b5e0d5c9 11/09/2013 07:51 pm Christos Stavrakakis

cyclades: Change default value for dhcp option

Change default value of 'dhcp' option in snf-manage network-create command.

8f335041 11/08/2013 05:19 pm Christos Stavrakakis

cyclades: Handle 'drained' flag of networks

  • Export 'SNF:DRAINED' status for drained networks.
  • Do not allow creation of new ports in drained networks.
  • Do not allow allocation of new IPs in drained networks.
68129b44 11/07/2013 04:28 pm Christos Stavrakakis

cyclades: Optimize *-list commands

Use prefetch_related and select-related to importive the DB queries that
are generated by *-list snf-manage commands.

d2036274 11/07/2013 04:28 pm Christos Stavrakakis

cyclades: Code refactoring to backend module

  • Create function 'ensure_network_is_active' to check if a network
    exists in backend and create it if not.
  • Create function 'create_job_dependencies' to transaform a list of job
    IDs to the 'depends' attribute as expected by Ganeti....
64303189 11/07/2013 04:28 pm Christos Stavrakakis

cyclades: Add option to display IPs in server-list

c4b9ea4c 11/07/2013 03:42 pm Christos Stavrakakis

cyclades: Retrieve image names only if needed

Retrieve images from plankton only if the user asked for the image name.
Otherwise just display the image ID. This will significantly speed up
the execution time of 'server-list' management command.

ae6ab1c7 11/07/2013 12:39 pm Christos Stavrakakis

cyclades: Changes service type of net resources

b4f491c1 11/07/2013 12:35 pm Christos Stavrakakis

cyclades: Remove old networks API

7b5263e4 11/06/2013 09:51 pm Christos Stavrakakis

cyclades: Fix network-create management command

Fix when network is created in the Ganeti backends. The network must be
created in the Ganeti backends only after IPv4 or/and IPv6 subnet has
been created. This commit moves the code that created the network in the...

24ea227b 11/06/2013 06:58 pm Dionysis Grigoropoulos

cyclades: Return 'links' in subnet and port calls

  • Return 'links' attribute in subnet api response
  • Return 'links' attribute in port api response
3549cb2f 11/06/2013 06:58 pm Dionysis Grigoropoulos

cyclades: Fix bugs in subnets and ports

  • Return subnets from public networks, in GET subnets
  • Fix a bug in list ports, where only attached ports to servers were
    listed
cdd6fc06 11/06/2013 04:06 pm Christos Stavrakakis

cyclades: Create 'cyclades_network' service

Create 'cyclades_network' service which is part of Cyclades, of 'network'
type and with 'network' prefix to hold all API endpoints that are
relative with networks. So, for example, the endpoint for networks will...

3785b737 11/06/2013 02:56 pm Dionysis Grigoropoulos

cyclades: Merge subnet-create with network-create

  • Merge snf-manage subnet-create into snf-manage network-create
f8ce6d44 11/06/2013 02:00 pm Christos Stavrakakis

cyclades: Fix bug in tests

Fix bug in port tests that were introduced by latest changes in IPPool
manager.

8d5795b4 11/06/2013 02:00 pm Christos Stavrakakis

Cyclades: Rename 'Can not' to 'Cannot' to all msgs

fef04862 11/05/2013 06:52 pm Dionysis Grigoropoulos

cyclades: Add a test for subnet creation

c52f91ad 11/05/2013 06:52 pm Dionysis Grigoropoulos

cyclades: Update snf-manage subnet-create

  • Print info of newly created subnet after snf-manage subnet-create
cad4793e 11/05/2013 06:52 pm Dionysis Grigoropoulos

cyclades: Fix a typo in api/subnets.py

3aecadc8 11/05/2013 11:07 am Christos Stavrakakis

cyclades: Fix default/forced server networking

Fix the default behaviour for networking of servers that are being
created. There are two settings controlling this behaviour:

  • CYCLADES_DEFAULT_SERVER_NETWORKS: This setting contains list of
    networks to connect a newly created server to, if the user has not...
f61f3fa7 11/04/2013 04:07 pm Christos Stavrakakis

docs: Update admin guide and rename mngmt command

0292883e 11/04/2013 03:52 pm Christos Stavrakakis

cyclades: Refactor code

Move code relative with allocating ips and floating IPs to 'logic.ips'
module.

01f5f8d9 11/04/2013 03:20 pm Christos Stavrakakis

cyclades: Workaround for race condition in Ganeti

Workaround for race where OP_INSTANCE_REMOVE starts executing on Ganeti
before OP_INSTANCE_CREATE. If this is the case, OP_INSTANCE_REMOVE will
not wait for locks, instead it will fail because the instance has not...

3f18f035 11/04/2013 12:18 pm Christos Stavrakakis

cyclades: Forbid new ports no deleting network

Do not allow creation of new ports and reservation of floating IPs on
network that are being deleted. Currently the state of the network
changes only when the network gets deleted from all backends. So we
check if a network is being deleted by checking if the action of the...

d2c3c533 11/04/2013 12:18 pm Christos Stavrakakis

cyclades: Create server in public net with FIP

Remove 'floating_ips' extension attribute to POST /servers API call.
Instead use the 'fixed_ip' attribute of 'networks' attribute to specify
the IPv4 address of a floating IP. So in order to create a server
connected to a private network and a public network, the 'networks'...

c82f57ad 11/04/2013 12:18 pm Christos Stavrakakis

cyclades: Series of fixes regarding networks & ips

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

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

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

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

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

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.