Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / api / management @ 883c1f94

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

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

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

cyclades: Small fixes to server-import command

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.

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

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

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

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.

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.

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

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
8d5795b4 11/06/2013 02:00 pm Christos Stavrakakis

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

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

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

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

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

cyclades: Fix bug in snf-manage network-remove

Add decorator to convert api faults

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}

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

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

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.

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>

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

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

cyclades: Fix bug in port-inspect 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.

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

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...
9541aab5 10/14/2013 12:07 am Marios Kogias

cyclades: snf-manage port-list

ab6d1a2f 10/13/2013 11:59 pm Marios Kogias

cyclades: Modify snf-manage network commands

Modifications according to the new API

e08afd0b 10/11/2013 02:45 pm Christos Stavrakakis

cyclades: Fix typo and tests

2a2f9ffa 10/07/2013 02:37 pm Christos Stavrakakis

cyclades: Refactor network-modify command

Refactor snf-manage network-modify command. Remove options that modified
link, mac_prefix, mode, enable_dhcp or state of the network. This
options modified only the network in DB and resulted in incosistencies
between Cyclades DB and Ganeti.

91f7a08c 10/07/2013 02:37 pm Christos Stavrakakis

cyclades: Fix server-modify management command

  • Change --set-suspended and --unsuspended to --suspended=True|False
  • Removed --set-deleted as snf-manage server-remove can be used.
  • Removed option for modifying the state of a server.
60a71437 10/07/2013 02:37 pm Christos Stavrakakis

cyclades: Resize server from management command

Add the --flavor option in server-modify management command to resize a
server to a different flavor.

35f2fc07 10/07/2013 02:37 pm Christos Stavrakakis

cyclades: Add --action option in server-modify cmd

Add --action option in server modify command, to start, stop or reboot
an instance.

c3c8297e 10/03/2013 11:19 am Christos Stavrakakis

cyclades: Add 'server-remove' management command

Implement server-remove management command that deletes an instance from
a Ganeti backend. The command will wait by default for the
OP_INSTANCE_REMOVE job to complete, except if --wait=False is used.

ed2064f8 09/18/2013 05:17 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.6' into develop

Conflicts:
Changelog
docs/admin-guide.rst
snf-cyclades-app/synnefo/api/management/commands/network-remove.py
snf-cyclades-app/synnefo/api/servers.py
snf-cyclades-app/synnefo/api/tests/servers.py
snf-cyclades-app/synnefo/logic/backend.py...

bdb4641c 09/16/2013 02:53 pm Giorgos Korfiatis

cyclades: Fix unbound reference

Set backend to None if not specified.

a8333def 09/11/2013 05:06 pm Christos Stavrakakis

cyclades: Add newline

4111c53e 09/10/2013 03:29 pm Christos Stavrakakis

cyclades: fix typos

16855230 08/06/2013 11:09 am Christos Stavrakakis

cyclades: Fix bugs in modifying network to IP pool

Fix bugs in network-modify command, and specifically when modifying
a network to a floating IP pool:
  • do not check availability of link in backends in which the network is
    already created.
  • check about the group list was working only with ganeti>=2.7...
a4658bbe 08/06/2013 08:40 am Christos Stavrakakis

cyclades: Move code for validating network values

Move code for network parameters validation from 'api' module to 'logic'.

d758784b 08/05/2013 02:39 pm Christos Stavrakakis

Fix stale import statements

Commit 7cfc0ce moved code from webproject to snf_django. This commit
fixes some stale imports that skipped renaming.

7cfc0cef 08/05/2013 12:45 pm Christos Stavrakakis

snf-django: Move ListCommand to snf-django

snf-webproject contained the generic ListCommand, and because of this it
had a dependency from snf-django-lib. This commit moves this command from
snf-webproject to snf-django-lib and removes this dependency. Also,...

6c77ed37 07/26/2013 09:59 am Christos Stavrakakis

cyclades: Create network in all backends

Add option in snf-manage network-create command to create network in all
backends.

671db71c 07/25/2013 01:31 pm Christos Stavrakakis

cyclades: Add network to multiple backends

Update snf-manage network-create command to take a list of comma
seperated backend IDs to create the network to.

b47f167a 07/24/2013 09:15 pm Christos Stavrakakis

cyclades: Fixes in network management commands

Merge code from logic/networks.py and network management commands.

449c2d82 07/24/2013 09:15 pm Christos Stavrakakis

cyclades: Fix bug in network-modify command

Fix bug caused by wrong identation level. Modification of network in
Ganeti should be performed only if 'add_reserved_ips' or
'remove_reserved_ips' options are used.

5e5b2476 07/24/2013 09:15 pm Christos Stavrakakis

cyclades: Convert network to floating IP pool

Add '--floating-ip-pool' option to network-modify management command, in
order to convert a network to a floating IP pool. Conversation of a
network to a floating IP pool requires the creation of the network to...