Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / api / management / commands @ 44bd008a

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

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

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

1fb0fdda 07/22/2013 04:53 pm Christos Stavrakakis

cyclades: Display task and task_job_id

Make 'server-show' and 'server-inspect' management command to display
the 'task' and 'task_job_id' fields of the vm.

12cb6933 07/22/2013 04:53 pm Christos Stavrakakis

cyclades: Minor improvements in manage commands

5aeb4e93 07/17/2013 02:57 pm Christos Stavrakakis

cyclades: Support IPv6 only networks

Make Cyclades support IPv6 only networks. Such networks will have
the 'subnet' attribute set to None, in the same way that IPv4 only
networks have the 'subnet6' attribute set to None.

Because currently Ganeti does not support IPv6 only networks, we create the...

c75ab92e 07/17/2013 02:57 pm Christos Stavrakakis

cyclades: Refactor code relative to networks

Move code checks from network-create management command to
logic/networks.py.

Also create common decorator for management commands to convert api
faults to command errors.

890f3d4c 07/12/2013 01:22 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.2' into develop

Conflicts:
Changelog
snf-astakos-app/astakos/im/messages.py
snf-astakos-app/astakos/im/views/target/__init__.py
snf-cyclades-app/synnefo/logic/backend.py
snf-cyclades-app/synnefo/logic/management/commands/reconcile-servers.py...

6193628f 07/08/2013 12:04 pm Christos Stavrakakis

cyclades: Fix typo bug in management command

32e4e343 07/07/2013 03:04 pm Christos Stavrakakis

PEP8 fixes

870210e7 07/07/2013 03:04 pm Christos Stavrakakis

cyclades: Fix type bug in network-create cmd

291c782f 07/03/2013 08:22 pm Christos Stavrakakis

cyclades: Fix misleading message in network-remove

660b9f3b 07/02/2013 12:32 pm Christos Stavrakakis

cyclades: Remove PUBLIC_USE_POOL setting

Remove PUBLIC_USE_POOL setting, since in order to use floating IPs, the
cyclades must be responsible for managing all IP pools.

28662998 07/02/2013 12:32 pm Christos Stavrakakis

cyclades: Fix bug in server-create command

Function for creating a server have been moved from api to logic.

9115d567 07/02/2013 12:31 pm Christos Stavrakakis

Distinquish between networks and Floating IP pools

Extend Network model with the 'floating_ip_pool' boolean field, to
indicate whether a Network can be a floating IP pool or not. Networks
that are floating IP pools must exist in all Backends, and so
'snf-manage backend-add' should try to add them....

64cdd31b 07/02/2013 12:31 pm Christos Stavrakakis

cyclades: Add ip pool option to network-create cmd

Add '--floating-ip-pool' option to 'network-create' management command.
Networks that have this option set must be created to all Ganeti
backends.

e57893cd 07/02/2013 12:31 pm Christos Stavrakakis

cyclades: Do not delete networks with floating IPs

Forbid network deletion in case the network has allocated floating IPs,
no matter whether they are used by instances or not. Update
'allocate_floating_ip' API method, to take exclusive lock on network
before reserving a floating IP, to avoid race condition between deleting...

5ec446aa 07/02/2013 12:31 pm Christos Stavrakakis

cyclades: Add and remove networks from backends

Extend 'snf-manage network-modify' command with '--add-to-backend' and
'--remove-from-backend' options, to create and remove an already created
public network from a Ganeti backend.

40d4f27d 06/28/2013 11:05 am Christos Stavrakakis

cyclades: Fix --image-name option in server-list

15c05cb7 06/28/2013 11:05 am Stratos Psomadakis

Fix regressions in snf-manage list commands

adc82764 06/28/2013 10:38 am Christos Stavrakakis

cyclades: Fix --image-name option in server-list

c4b059b1 06/28/2013 09:47 am Stratos Psomadakis

Fix regressions in snf-manage list commands

18c4414d 06/07/2013 03:15 pm Giorgos Korfiatis

cyclades: Rename service token

Rename CYCLADES_ASTAKOS_SERVICE_TOKEN to CYCLADES_SERVICE_TOKEN for
uniformity.

b55b9692 06/03/2013 02:09 pm Giorgos Korfiatis

common: Export only services specified as public

Employ helper function `filter_public' in service-export-* commands.
Also set `pithos_ui' service to non-public and clear version of
`astakos_ui'.

c2873a91 06/03/2013 11:50 am Georgios D. Tsoukalas

cyclades: add service-export-cyclades command

b47b110d 06/03/2013 11:50 am Kostas Papadimitriou

cyclades: Remove userdata api from ui prefix

- Individualize userdata api by placing module under synnefo namespace and
urs under it's own USERDATA_PREFIX

e3ff6830 06/03/2013 11:49 am Georgios D. Tsoukalas

make synnefo URLs consistent and configurable

https://service.deployment.vendor.tld/service-base/api-prefix/hard/path |___________________________________| |__________| |________| |_______|
BASE_HOST BASE_PATH PREFIX Hardcoded...