Statistics
| Branch: | Tag: | Revision:

root @ 9202a57d

# Date Author Comment
a6a70f40 02/13/2014 04:20 pm Giorgos Korfiatis

cyclades: Include project in server management commands

4334d1c8 02/13/2014 04:20 pm Giorgos Korfiatis

astakosclient: Update project calls to new scheme

Remove get application calls and set application_action to post to the
project endpoint.

9efd0075 02/13/2014 04:20 pm Kostas Papadimitriou

astakos: A bit of refactoring of projects views

- Update project views to work with the updated projects logic
- Use api.projects methods when applicable
- Common project view decorator
- Common view for app/project details

8735e44e 02/13/2014 04:20 pm Kostas Papadimitriou

astakos: Filter out not associated sources from user quota api response

return only resources that are related to projects the user has active
membership to.

4df9dfc9 02/13/2014 04:20 pm Kostas Papadimitriou

astakos: Display both summed up and per project quota in usage view

787f7372 02/13/2014 04:20 pm Giorgos Korfiatis

snf_django: Fix select_related in ListCommand

Pass all related fields in a single call, because select_related does not
chain as expected (yet). See https://code.djangoproject.com/ticket/16855

Also pass prefetch_related in a uniform way.

0de7c5a7 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Make project-list a ListCommand

Use --filter-by to filter by owner and name.

Refs #5014

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

snf_django: Factor out resource reconcile

Generalize the checks operated during resource reconciliation so that they
can be used in all Synnefo components.

Adapt checks for user/project limits, include checks for project limits.

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.

eb83c485 02/13/2014 04:20 pm Sofia Papagiannaki

pithos: Update reconcile-resources-pithos command

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

astakos: Adapt resource reconciliation

Assume base project when reconciling astakos resources.

87a86b71 02/13/2014 04:20 pm Ilias Tsitsimpis

burnin: Support the new quotas API

GetQuotas now returns a dictionary with the project's uuids as keys.
This patch changes burnin to support that.

9202a57d 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Fix project notification recipients

Notify applicant on an application action; notify project owner on project
actions if owner exists.

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.

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

astakosclient: Hide provision complexity

Both issue_one_commission and the new call issue_commission_generic act
as wrappers on top of _issue_commission. They create the appropriate
project-level provisions, based on the original ones provided by the
astakosclient user.

1f4a46dd 02/13/2014 04:20 pm Giorgos Korfiatis

astakosclient: Support resource reassignment

Add issue_commission wrapper for assigning resources to a new 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...

5dc97d69 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Add command project-modify

Add a management command that directly modifies an initialized project.

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

quotaholder: Do not check provision integrity

The API is responsible to provide valid data to the backend.

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

quotaholder: Merge similar provisions

Make sure that issue_commission handles a single provision per (holder,
source, resource) tuple by merging similar provisions.

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.

78e1f8da 02/13/2014 04:20 pm Sofia Papagiannaki

pithos: Add support for project originated quota

Introduce ``project`` container policy. The value of this policy denotes
the project from which the container quota originate.

Further changes:
  • domain argument in get_{account|container|object}_meta backend methods...
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

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

pithos: Fix quota reporting during moves

Report quota change when moving across accounts or across containers
assigned to different projects.

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

astakos: Refactor resource-modify

Remove interactive operations, rename default-quota to base-default.

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

astakos: Modify resource project default

Add support in resource-modify for changing the project_default.

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

astakos: Get service related project quota

Add API call for a service to request the project quota for its own
resources.

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.

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

astakos: Sync project-based quota

Update quota code to take into account the differentiated sources.
There is no more need to lock the user when updating quota; locking
the project is now adequate.

Update quota listing in management commands; introduce option --quota in...

44d950c6 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Improve printing in quota-verify

Also add option to delete project and user holdings that do not correspond
to actual astakos entities.

64a43a9a 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Disable setting user base quota

Remove functionality from management commands `quota' and `user-modify'
for setting base quota. They will now be handled through projects.

362dadaa 02/13/2014 03:19 pm Giorgos Korfiatis

astakos: Adapt to new project/app scheme

c3763b39 02/13/2014 03:19 pm Giorgos Korfiatis

astakos: Make ProjectResourceGrant fields non null

Field project_capacity now requires a value; field project_application
was mistakenly set nullable.

2c1a5a15 02/13/2014 03:19 pm Giorgos Korfiatis

astakos: Introduce base projects

Every user is associated with a special-purpose `base' project. Its
mission is to manage the user's base quota.

2c960473 02/13/2014 03:19 pm Giorgos Korfiatis

astakos: Make base project when creating user

Make base project along with the user with the same uuid. Enable the
project upon user acceptance.

d1c95ad9 02/13/2014 03:19 pm Giorgos Korfiatis

astakos: Mark project membership as initialized

Add flag `initialized' on ProjectMembership. It is set to true once a user
is accepted. It is used to distinguish users that have registered
project quota (but may have been removed since then).

508e13e3 02/13/2014 03:19 pm Giorgos Korfiatis

quotaholder: Migrate holdings for pool projects

Recreate quota holdings for all initialized projects and memberships.

552df4cd 02/12/2014 06:48 pm Giorgos Korfiatis

astakos: Fill grants' project_capacity

Each resource grant that a project provides is now also associated with
a project-level limit. This is set by consulting the existing user-level
limit and the max members allowed. If the latter limit is not set, we
consider the project's current number of active members.

5e3c112a 02/12/2014 06:48 pm Giorgos Korfiatis

astakos: Add project default in resources

Add field `project_default' in resources. This will serve as a skeleton to
fill project quota (both project-level and member-level limits) for
resources not specified by the application.

The field is initialized by consulting the default base quota (field...

8af74daf 02/12/2014 06:48 pm Giorgos Korfiatis

astakos: Make limit_on_members_number a bigint

We need bigint in order to represent infinite as 2**63-1.

11922155 02/12/2014 06:48 pm Giorgos Korfiatis

astakos: Replace application None values

None will from now on denote a missing field of the application. Use empty
string for missing string and the conventional max int (2**63-1) for a
missing limit.

2ffe077d 02/12/2014 06:48 pm Giorgos Korfiatis

astakos: Store all project info on the project model

A project entry will contain all information needed to operate a project.
An application will store just the information provided by the applicant.

88f5242e 02/12/2014 06:47 pm Giorgos Korfiatis

astakos: Identify projects with a uuid

Introduce field `uuid'; use it to refer to projects in the API and the
management commands.

9255938e 02/10/2014 02:40 pm Kostas Papadimitriou

astakos: Typo fix

7f3bbafa 02/10/2014 02:40 pm Giorgos Korfiatis

astakos: Reduce import clutter in functions.py

84498bca 02/10/2014 02:40 pm Giorgos Korfiatis

astakos: Refactor notification code

Introduce generic notify functions that consult a dict for a given action.

74c9dfca 02/10/2014 02:40 pm Giorgos Korfiatis

astakos: Remove unneeded argument

62d30634 02/10/2014 02:40 pm Giorgos Korfiatis

astakos: Introduce private projects

A private project can only be accessed by its owner and its members.
No user can join the project; but the owner can enroll members.

4398adc9 02/10/2014 02:36 pm Giorgos Korfiatis

docs: New project design wrt applications

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

cd7282a1 02/07/2014 05:10 pm Ilias Tsitsimpis

snf-ci: Fix the branch name for pithos webclient

When cloning the pithos webclient, snf-ci tries to checkout a branch
with the same name as the synnefo one (if such branch exists). To do so
it gets the list of all branches using the 'git branch' command. But...

f507ab25 02/03/2014 03:29 pm Dimitris Aragiorgis

deploy: Fix snf-ganeti-eventd setup

Enable eventd during prepare() so that after restarting it, init
script will not fail.

Signed-off-by: Dimitris Aragiorgis <>

6e382d5a 02/03/2014 02:50 pm Christos Stavrakakis

Merge branch 'release-0.15' into develop

1a720e84 02/03/2014 02:38 pm Christos Stavrakakis

Tests should succeed even if tearing down DB fails

92428559 02/01/2014 11:28 am Sofia Papagiannaki

pithos: Fix TypeError in listing shared & public by me.

fd95755f 01/31/2014 12:01 pm Ilias Tsitsimpis

burnin: Delete ports attached to floating IPs

This patch fixes a problem with burnin where burnin couldn't delete a
floating IP if it was attached to a port, by destroying the port first.

27e51b28 01/30/2014 04:48 pm Olga Brani

astakos: Change contact form textarea size

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...
c91e3687 01/29/2014 04:10 pm Dionysis Grigoropoulos

docs: Fix typos in image api guide

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

73c37386 01/29/2014 01:41 pm Sofia Papagiannaki

pithos: Database data migration for the plankton properties.

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.

c0aaf871 01/29/2014 08:34 am Ilias Tsitsimpis

snf-deploy: Fix ASTAKOS_AUTH_URL for cyclades.conf

Add the '/astakos' prefix to the ASTAKOS_AUTH_URL path.

0efc6bb7 01/29/2014 08:28 am Dimitris Aragiorgis

Add missing dhcp_queue option in nfdhcpd template

Since 0.12.0 nfdhcpd serves DHCPv6 requests in order to supply DNS
related info. So we have to define a new NFQUEUE to mangle the
corresponding packets.

Signed-off-by: Dimitris Aragiorgis <>

de1dcc91 01/29/2014 08:09 am Dimitris Aragiorgis

deploy: Fix cyclades configure()

CYCLADES_NODE_IP is needed for customizing cyclades.conf
template for UI_MEDIA_URL.

Signed-off-by: Dimitris Aragiorgis <>

8d693406 01/29/2014 08:08 am Dimitris Aragiorgis

deploy: workaround for java console Issue

Java VncViewer class has an issue with self-signed certificates.
With existing deployment it does not work if UI_MEDIA_URL uses
FQDN. Use the node's IP instead.

NOTE: In a linux (Debian) client add the following in...

080880d9 01/29/2014 08:03 am Dimitris Aragiorgis

deploy: workaround for java console Issue

Java VncViewer class has an issue with self-signed certificates.
With existing deployment it does not work if UI_MEDIA_URL uses
FQDN. Use the node's IP instead.

NOTE: In a linux (Debian) client add the following in...

394f5d2a 01/28/2014 06:13 pm Dionysis Grigoropoulos

docs: Update image api guide

  • Update response code for image not found
  • Remove unwanted whitespace at the end of lines
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

18405a2c 01/28/2014 11:20 am Dionysis Grigoropoulos

snf-deploy: Fix ownership of snf_pithos database

3de93ef3 01/27/2014 05:48 pm Dimitris Aragiorgis

Add missing dhcp_queue option in nfdhcpd template

Since 0.12.0 nfdhcpd serves DHCPv6 requests in order to supply DNS
related info. So we have to define a new NFQUEUE to mangle the
corresponding packets.

Signed-off-by: Dimitris Aragiorgis <>

9a48ef23 01/27/2014 05:36 pm Dimitris Aragiorgis

deploy: add missing ganeti collectd setup

Signed-off-by: Dimitris Aragiorgis <>

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

9dd66900 01/23/2014 02:28 pm Kostas Papadimitriou

astakos: Display auth provider identifier in user-show command

4845dfaa 01/23/2014 11:02 am Christos Stavrakakis

snf_django: Fix bug in list commands

Fix bug in Synnefo ListCommand where you could not select to print only
the user email columnd ('-o user.email').

68122bae 01/22/2014 06:41 pm Sofia Papagiannaki

astakos oa2: Fix request authorisation code failures due to unicode issue

If the object to be urlencoded has its own urlencode() method,
use this instead.

Refs: #4971

8a0d8997 01/22/2014 05:56 pm Giorgos Korfiatis

Remove remnants of django-oa2-client

30b1d10d 01/22/2014 05:52 pm Giorgos Korfiatis

docs: Mention enforce quota output

db34e6ad 01/22/2014 03:33 pm Kostas Papadimitriou

astakos: Prevent erroneus race conditions in simultaneous signups

Refs: #4966

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...
3d6d8464 01/22/2014 12:11 pm Christos Stavrakakis

cyclades: Improvements to Astakos stats

Improve the exposed stats from the Astakos API and the way they are
displayed in 'stats-astakos' management command.

56591392 01/21/2014 04:43 pm Kostas Papadimitriou

ui: Disable content editing in public key list view

68269100 01/21/2014 04:40 pm Giorgos Korfiatis

snf-deploy: Stamp pithos most recent database migration

This is necessary so that future migrations know where to start upgrading.

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.

96160b2f 01/20/2014 05:16 pm Ilias Tsitsimpis

snf-deploy: Fix ASTAKOS_AUTH_URL for cyclades.conf

Add the '/astakos' prefix to the ASTAKOS_AUTH_URL path.