Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app @ 5ba2cfd2

# Date Author Comment
5ba2cfd2 02/26/2014 09:50 pm Christos Stavrakakis

cyclades: Add str method to all DB models

Add str method to all DB models, that simply calls unicode
method. Because str will return a unicode string it will be ignored,
and the result from unicode will be used.

4e571185 02/25/2014 03:01 pm Dionysis Grigoropoulos

plankton: Handle a potential 500 error in plankton

  • Catch a potential 500 error, when registering a file as an Image, while
    trying to decode "Image name" into unicode.
  • Add corresponding test case
8c911970 02/24/2014 01:14 pm Christos Stavrakakis

cyclades: s/BaseCommand/SynnefoCommand

Replace use of BaseCommand with SynnefoCommand which will convert the
arguments/options to unicode objects.

a4e9c19c 02/21/2014 04:11 pm Christos Stavrakakis

plankton: Fix handling of HTTP headers

Handle properly image properties that are passed through HTTP headers.
We convert the request headers to image properties by unquoting them and
then decoding them to Unicode objects using 'utf-8' encoding. Image keys...

f259c6d9 02/21/2014 04:07 pm Christos Stavrakakis

cyclades: Make all DB models return unicode repr

df455d57 02/21/2014 04:05 pm Christos Stavrakakis

cyclades: Replace 'uenc' with 'smart_unicode'

Replace use of 'synnefo.util.text.uenc' function with
'django.utils.encoding.smart_unicode'.

'uenc' function depends on the locale category LC_CTYPE, which is not
appropriate for Cyclades API. We explicitly use 'smart_unicode' and...

5a6cee09 02/21/2014 04:05 pm Christos Stavrakakis

snf_django: Handle unicode errors in JSON bodies

Catch unicode errors when JSON deserializing the body of a request.
Also, rename 'get_request_dict' function to 'get_json_body', as it is a
more represenative name for what the function is doing.

f3bdab04 02/20/2014 04:41 pm Giorgos Korfiatis

cyclades: Fix list objects in enforce

Convert set back to list, because the code further down requires an
indexable object.

9c6d629f 02/19/2014 06:19 pm Giorgos Korfiatis

Remove keypath, use common dict operations instead

Replace get_path with dict indexing. Remove unused setting
`CYCLADES_CUSTOMIZE_SERVICES' that used set_path. Remove the util/keypath.py
module.

dfc7aab7 02/19/2014 06:19 pm Giorgos Korfiatis

Replace set_path with defaultdict in quota handling

2a811e37 02/19/2014 06:19 pm Giorgos Korfiatis

Revert "common: Do not encode key paths as string"

This reverts commit b10f66b9a20fb9dca0a56c88d5d224f1e3fa25ea.

a6a70f40 02/13/2014 04:20 pm Giorgos Korfiatis

cyclades: Include project in server management commands

2e2fc330 02/13/2014 04:20 pm Giorgos Korfiatis

cyclades: Adapt resource reconciliation

Take projects into account when computing resource usage and comparing
with the quotaholder values.

02353a1a 02/13/2014 04:20 pm Giorgos Korfiatis

cyclades: Expose user and tenant ID of floating IPs

Include user_id and tenant_id in the API details of a floating IP.

b5780d85 02/13/2014 04:20 pm Giorgos Korfiatis

cyclades: Add field project in models

Add field `project' and initialize it to `userid' for all VMs, networks and
floating IPs. This means that all resources are assigned to the owner's base
project.

47c27955 02/13/2014 04:20 pm Giorgos Korfiatis

cyclades: Assign new resources to a project

Add optional parameter `project' in API calls that create VMs, networks,
and floating IPs. If missing, user's base project is assumed (same uuid
as the user).

13f1e2ff 02/13/2014 04:20 pm Giorgos Korfiatis

cyclades: Inspect qh NotFound response

Since a user can now specify the project where a resource is assigned,
user-provided data do reach the quotaholder. A NotFound response is
thus not necessarily an internal error; the user may just not be a
member of the input project. Query the quotaholder to find out whether...

99667854 02/13/2014 04:20 pm Giorgos Korfiatis

cyclades: Reassign resources

Add API calls to assign a VM, network, or floating IP to a new project.

70c51e5d 02/13/2014 04:20 pm Giorgos Korfiatis

cyclades: use project as tenant_id in API

7bc909c7 02/13/2014 04:20 pm Giorgos Korfiatis

cyclades: Update holdings in tests

f600b74e 02/13/2014 04:20 pm Giorgos Korfiatis

cyclades: Enforce quota per project

Take project into account when checking and enforcing quota violations. Add
option to restrict check to a certain project.

b10f66b9 02/10/2014 01:36 pm Giorgos Korfiatis

common: Do not encode key paths as string

Handle explicitly key paths as lists of keys. This allows the key
to be any python object, as is the case in python dicts.

Provide utility unpack() to convert from a string representation to
a list of keys. It assumes that a key is either a string or an integer...

9dc95427 01/30/2014 03:17 pm Giorgos Korfiatis

Merge branch 'release-0.15' into develop

Conflicts:
snf-deploy/snfdeploy/__init__.py
version

54d26a27 01/30/2014 12:13 pm Dionysis Grigoropoulos

cyclades: Fix numerous bugs in plankton views

  • Check if the user specified an invalid disk/container format when
    registering an image.
  • Check if the user provided a valid disk/container format when
    updating a registered image.
  • Check if the user provided an image ID when registering/updating an...
606837c6 01/29/2014 03:43 pm Christos Stavrakakis

plankton: Fix wrong import

s/lib/util

78fa9134 01/29/2014 03:24 pm Christos Stavrakakis

plankton: Validate parameters and catch assertions

d58ea30a 01/29/2014 01:41 pm Christos Stavrakakis

plankton: Fix storing of image properties

Image properties where stored all together as one metadata (JSON dumped
string). This caused problems with the maximum allowed length of for a
metadata value. This commit fixes this by storing each property as a
separate metadata which is prefixed with the 'PROPERTY_PREFIX'.

0efb43cd 01/29/2014 01:41 pm Christos Stavrakakis

plankton: Validate meta key/value length

Fail with BadRequest if length of metadata key or value is not valid.

1a9aa726 01/28/2014 03:43 pm Dionysis Grigoropoulos

cyclades: Check if the name of an image is null

491d2a31 01/28/2014 12:30 pm Christos Stavrakakis

cyclades: Stats per backend from API

Extend Cyclades stats API endpoint with the ability to return stats
only for a backend. Also, add option to include image stats or not.

72224dd6 01/28/2014 11:59 am Christos Stavrakakis

plankton: Check that object is an image

Fix bug that caused Plankton to return Pithos files that were not
registered as images. Plankton did not checked that the requested Pithos
object (UUID or URL) was an Image. This was caused because
'get_object_meta' call of PithosBackend returns the common metadata for...

182b2e2a 01/28/2014 11:21 am Dionysis Grigoropoulos

cyclades: Fix typo in tests/networks.py

6faf3c78 01/27/2014 03:35 pm Dionysis Grigoropoulos

cyclades: Typo fix in api/networks.py

  • Fix a typo that made responses report all networks as "deleted=True"
3d870b05 01/27/2014 02:17 pm Dionysis Grigoropoulos

cyclades: Update api/networks.py and typo fixes

  • Update api/networks.py to use the updated get_attribute from commit
    14402edcf6d19fc42a64ef93da3d66ef7969327b.
  • Add corresponding test case
  • Typo fix in an error message in api/subnets.py

Refs #4979

14402edc 01/24/2014 07:12 pm Christos Stavrakakis

cyclades: Validate fields of API requests

Make sure that all fields of a request (user input) have a valid type.
This commit validates 'ports', 'servers' and 'floating_ips' APIs.

Refs #4979

ba777b02 01/23/2014 03:44 pm Giorgos Korfiatis

cyclades: Detach serial from resource when resolved

0f4c5b34 01/23/2014 03:43 pm Giorgos Korfiatis

cyclades: Delete unused quota code

f4d624c6 01/23/2014 03:43 pm Giorgos Korfiatis

cyclades: Update serial only if actually resolved

909dab08 01/22/2014 02:16 pm Giorgos Korfiatis

cyclades: Fix typo

62b76f38 01/22/2014 12:50 pm Christos Stavrakakis

cyclades: Extend flavors with 'allow_create' field

  • Add 'allow_create' field to Flavor DB model and the corresponding
    migration.
  • Extend API for flavors to return the 'SNF:allow_create' attribute
  • Update POST /servers API call to check that the flavor that is...
56591392 01/21/2014 04:43 pm Kostas Papadimitriou

ui: Disable content editing in public key list view

6a439d95 01/21/2014 11:38 am Dionysis Grigoropoulos

cyclades: Update snf-manage subnet-* commands

  • Update snf-manage commands to use the new userid and public fields
    introduced in commit bdedfd9d79be7f1c00764b5d56a326d30b30b474
a8817717 01/20/2014 06:34 pm Christos Stavrakakis

cyclades: Fix broken tests

Fix tests that were broken by commit #7ef05bd.

1b3f1792 01/20/2014 05:06 pm Christos Stavrakakis

cyclades: Fix quota bug in snf-dispatcher

Clear the 'vm.serial' field after processing a job that was not
expected. When processing such a job, we reject the pending commission
and issue a new one that reflects the unexpected job. However, since we
reject the commission that is associated with the 'vm.task_job_id' job,...

e1f3c814 01/20/2014 04:07 pm Kostas Papadimitriou

ui: Fix super method call

7ef05bd4 01/20/2014 03:52 pm Christos Stavrakakis

cyclades: Fix corner case in reconciliation

Do not perform reconciliation for building servers that the
OP_INSTANCE_CREATE job is completed after quering Ganeti about the state
of servers.

49e3c862 01/20/2014 03:31 pm Christos Stavrakakis

cyclades: Display IPs in stats-cyclades

Display free and total public IPv4 addresses when pretty-printing
Cyclades stats.

7219c7a3 01/20/2014 01:39 pm Christos Stavrakakis

cyclades: Add deleted attribute for changes-since

Extend API response for servers, networks, subnets and floating IPs,
to support HTTP 'changes-since' queries.

d56fa78c 01/17/2014 04:59 pm Giorgos Korfiatis

Catch EOF in astakos/quota commands

Abort operation when raw_input raises an EOFError.

d9a7f0bb 01/17/2014 04:57 pm Giorgos Korfiatis

Fix stdout/stderr write in astakos/quota commands

Write actual command output and user prompts to stdout; error and progress
messages to stderr.

0c66520a 01/14/2014 11:36 am Kostas Papadimitriou

ui: Styling for vms in error state in ips/network list view

a2b39c54 01/14/2014 11:05 am Kostas Papadimitriou

ui: Improve recurrent api calls throttling

do not trigger faster recurrent intervals when api endpoint does not support
incremental updates (changes-since parameter).

62ebf1c3 01/13/2014 05:53 pm Kostas Papadimitriou

ui: Disable port toggling when no ports available in network view

0dcbd685 01/13/2014 05:53 pm Kostas Papadimitriou

ui: Hide firewall view in private network ports

c915a198 01/13/2014 04:55 pm Giorgos Korfiatis

cyclades: Fix passing arg shutdown_timeout in logic

29e3919d 01/13/2014 04:55 pm Giorgos Korfiatis

cyclades: Set shutdown timeout when enforcing quota

Provide option `--shutdown-timeout' in management command to force a VM
shutdown.

d1892661 01/10/2014 06:08 pm Kostas Papadimitriou

ui: Suspended vm feedback overlay description fix

a3e25d12 01/10/2014 06:03 pm Kostas Papadimitriou

ui: Disable suspended vm actions

10f8b7ca 01/10/2014 06:01 pm Kostas Papadimitriou

ui: Conditionally disable suggested flavors in create wizard

based on user quota limits

a973ffb4 01/10/2014 06:01 pm Kostas Papadimitriou

helpdesk: Exempt csrf check from helpdesk action views

custom csrf handling is already applied in those views.

Fixes action errors when cyclades are installed along with astakos app which
enables csrf protection middleware.

43708a0a 01/10/2014 06:01 pm Kostas Papadimitriou

helpdesk: Handle vm action errors

02990794 01/10/2014 06:01 pm Kostas Papadimitriou

userdata: Log create/update/delete actions

6368ca5d 01/10/2014 06:01 pm Kostas Papadimitriou

ui: Optionally group public networks by name

If setting ``UI_GROUP_PUBLIC_NETWORKS`` is set to True, public networks will
be grouped by their name in networks view.

ee61780c 01/10/2014 06:01 pm Kostas Papadimitriou

ui: Networks view improvements

- Improve network status styling
- Include status styling for drained networks

c397dbce 01/10/2014 05:52 pm Christos Stavrakakis

cyclades: Add shutdown_timeout to server commands

Add support for specifying a timeout when stopping, rebooting or
destroying a server.

702b2fe6 01/10/2014 04:48 pm Christos Stavrakakis

Fix error msg

aa9feeee 01/09/2014 04:12 pm Dionysis Grigoropoulos

UI: Typo fix in VM diagnostics

Fix an off-by-one-error in VM diagnostics

680dd4b8 01/09/2014 01:18 pm Ilias Tsitsimpis

Merge branch 'release-0.15' into develop

Conflicts:
ci/utils.py
version

ed91737b 01/08/2014 06:43 pm Kostas Papadimitriou

ui: Public key content styling improvements

24f54995 01/08/2014 05:58 pm Kostas Papadimitriou

userdata: Settings description update

bf18a788 01/08/2014 05:46 pm Kostas Papadimitriou

userdata: Improve public key submission

- Validate key submission content size. Maximum allowed content size is
configurable in userdata settings (USERDATA_SSH_KEY_MAX_CONTENT_LENGTH).
- Return 422 status code on submission validation errors.

a9d34f3b 01/08/2014 05:46 pm Kostas Papadimitriou

userdata: Update unit tests

624f0d07 01/08/2014 04:13 pm Dionysis Grigoropoulos

cyclades: Fix a bug in subnet creation

Since commit ba6ad3460931223d262badebcecbb4124ac136d8 subnets were
always created with an empty name field due to a bug.

b6f688dd 01/08/2014 04:13 pm Dionysis Grigoropoulos

cyclades: Fix a bug in check_name_length

Function check_name_length would crash if the input was a unicode
string.

986bcfe4 01/07/2014 04:16 pm Kostas Papadimitriou

ui: Minor error overlay fixes

set missing overlay titles

54625a34 01/07/2014 04:15 pm Kostas Papadimitriou

ui: Remove needless paragraph from feedback overlay

48bac1b6 12/23/2013 02:59 pm Chrysostomos Nanakos

cyclades: Fix typo in vm state

45ead074 12/20/2013 01:59 pm Christos Stavrakakis

cyclades: Lock objects in reconciliation

Make reconciliation mechanism take an exclusive lock on objects before
issuing messages for reconciliation events. This will make
reconciliation mechanism more slow, but will ensure correct quotas when
reconciliation is run while the service is online.

3af1fb4b 12/20/2013 01:59 pm Christos Stavrakakis

cyclades: Fixes causing unsynced quotas

  • clear QuotaHolderSerial objects when resolving pending commissions.
  • Fix wrong name of Ganeti opcodes.
  • Do not update vm's flavor before issuing new commission
aff81af3 12/19/2013 06:05 pm Christos Stavrakakis

cyclades: Fix typo

02c6595b 12/19/2013 05:27 pm Kostas Papadimitriou

ui: Removed feedback form description

no longer needed since feedback overlay is not manualy triggered any more.

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.

5920f82c 12/19/2013 05:22 pm Christos Stavrakakis

cyclades: Add 'ipversion' to IPAddress model

40576cf5 12/19/2013 05:22 pm Christos Stavrakakis

cyclades: Optimize dispatcher DB queries

b6ac9768 12/19/2013 05:09 pm Kostas Papadimitriou

ui: Do not enforce vm quota decrease on vm removal

eda4d8d0 12/19/2013 05:09 pm Kostas Papadimitriou

ui: Match IP's pane/hover titles

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
689d7a07 12/19/2013 04:36 pm Dionysis Grigoropoulos

cyclades: Update help msg on snf-manage commands

12e8c717 12/19/2013 04:22 pm Giorgos Korfiatis

cyclades: Exclude users from quota enforcement

6aa9924d 12/19/2013 04:08 pm Giorgos Korfiatis

cyclades: Limit quota enforcement operations

Add option in enforce-resources-cyclades to specify the maximum number of
operations to perform per backend.

Also ensure that quota are always checked in the same order.

744dced3 12/18/2013 07:17 pm Christos Stavrakakis

cyclades: Fix broken tests

Fix default values for DB model factories.

03d430b5 12/18/2013 07:17 pm Christos Stavrakakis

cyclades: Comment out unused tests

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

371ab004 12/18/2013 07:17 pm Christos Stavrakakis

cyclades: Allow deletion of ports from deleted VMs

Fix corner case where a port seems to be still attached to a VM although
the VM has already been deleted.

bf0cd43a 12/18/2013 07:17 pm Christos Stavrakakis

cyclades: Fix migration file

Fix migration that caused creation of Subnet for networks that did not
had enabled the 'dhcp' option.

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

cyclades: Do not prefetch related in get()

fd74cfd3 12/17/2013 05:16 pm Christos Stavrakakis

cyclades: Add datetime fields to Subnet model

Add 'created' and 'updated' datetime fields in Subnet model.

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