Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / api @ eb5f7eb0

# Date Author Comment
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
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.

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

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

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

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

cyclades: Fix bug in network test

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.

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

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....
e407f159 10/29/2013 04:00 pm Ilias Tsitsimpis

snf-cyclades-app: Use the new AstakosClient

Change AstakosClient to use ASTAKOS_AUTH_URL as entry point to the
Astakos service, instead of ASTAKOS_BASE_URL it was using until now.

Remove ASTAKOS_BASE_URL from Cyclades settings, replace it with
ASTAKOS_AUTH_URL. Modify Cyclades to determine ASTAKOS_ACCOUNT_URL and...

014df29c 10/29/2013 03:40 pm Christos Stavrakakis

cyclades: Remove stale references to vm.router

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

Revert "cyclades: Add /routers api"

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