Statistics
| Branch: | Tag: | Revision:

root @ ec5e00aa

# Date Author Comment
ec5e00aa 04/29/2013 12:13 pm Giorgos Korfiatis

Revert quotaholder's name to quotaholder_app

In order to facilitate migrations.

68b991bc 04/29/2013 12:12 pm Giorgos Korfiatis

quotaholder: Rename counters to usage_min, usage_max

3679f852 04/29/2013 11:17 am Giorgos Korfiatis

quotaholder: Explicitly set commission's issue_time

Avoid function call as a default value in model.

f6e7a826 04/29/2013 11:14 am Giorgos Korfiatis

quotaholder: Impose non-null commission name

Default to empty string

20f68e60 04/26/2013 04:41 pm Giorgos Korfiatis

astakos: Migrate service and resource names

- Rename 'pithos+' to 'pithos'
- Prepend resource names with 'service_name.'

bd7fe7c1 04/26/2013 12:47 pm Sofia Papagiannaki

Merge branch 'feature-change-astakos-commands' into feature-quotas

Conflicts:
snf-astakos-app/astakos/im/management/commands/resource-list.py
snf-astakos-app/astakos/im/management/commands/service-list.py
snf-astakos-app/astakos/im/management/commands/service-modify.py...

8b68fa76 04/25/2013 05:56 pm Giorgos Korfiatis

astakosclient: Update provisions' type in docstring

567f49a2 04/25/2013 05:54 pm Giorgos Korfiatis

astakosclient: Change provisions argument to dict

3a1bed03 04/25/2013 05:49 pm Giorgos Korfiatis

astakos: Set and return commission names in API calls

Support issue_commission's `name' parameter for an optional description
of the commission. Include this field in the dict returned by
get_commission.

Change astakosclient accordingly.

65fb5cf6 04/25/2013 04:22 pm Giorgos Korfiatis

Merge branch 'develop' into feature-quotas

Conflicts:
astakosclient/astakosclient/__init__.py
astakosclient/astakosclient/errors.py
astakosclient/astakosclient/tests.py
docs/index.rst

3a527b3a 04/25/2013 04:01 pm Giorgos Korfiatis

astakos: Separate importing resources from setting limits

`snf-manage resource-import' does not provide a way to change the
default base quota any more. When importing a resource for the first
time, it sets the limit to zero.

Use `snf-manage resource-modify' to change limits. It supports both...

3f7b6f6f 04/25/2013 12:43 pm Giorgos Korfiatis

astakos: Correct qh call to auto accept commissions

d521eb8e 04/24/2013 01:33 pm Giorgos Korfiatis

quotaholder: Delete unused helper functions

3a195d2e 04/24/2013 01:31 pm Giorgos Korfiatis

quotaholder: Remove unused Holding flags

643b3d82 04/24/2013 01:17 pm Giorgos Korfiatis

quotaholder: Remove default values in required args

Also remove unused `context' argument and replace empty list default
values with None.

4df49ee7 04/24/2013 01:15 pm Giorgos Korfiatis

astakos: Further validate input in quota API calls

4cb56223 04/24/2013 12:25 pm Giorgos Korfiatis

quotaholder: Remove unused utils and api.py

7bed22fb 04/24/2013 11:39 am Giorgos Korfiatis

quotaholder: Integrate unit tests in django tests

b2f34c77 04/23/2013 06:28 pm Kostas Papadimitriou

common: Fix resolving of SOUTH_TESTS_MIGRATE

in synnefo.settings.test

ba886e03 04/23/2013 06:27 pm Kostas Papadimitriou

astakos: Update projects tests

e4a6c11d 04/23/2013 06:19 pm Giorgos Korfiatis

astakos: Define and export local resources

0a7a4104 04/23/2013 06:04 pm Kostas Papadimitriou

astakos: Replace some explicit settings imports

importing setting names explicitly makes it hard to write tests that
depend on specific setting values and polutes the module namespace.

In this commit only settings that are currently used in tests where
refactored.

3b1ab480 04/23/2013 05:37 pm Kostas Papadimitriou

common: Test settings improvements

- Avoid settings overrides from conf files inside SYNNEFO_SETTINGS_DIR
Tests are expected to succeed with exact setting values defined either
in tests modules/cases or in the default synnefo setting modules. To
ensure this we temporarily set SYNNEFO_SETTINGS_DIR environmental variable...

450c7fb0 04/23/2013 05:09 pm Kostas Papadimitriou

astakos: Initial tests for project views

ad730cc5 04/23/2013 04:12 pm Giorgos Korfiatis

astakos: Validate input of quota-related API calls

58161871 04/23/2013 03:43 pm Constantinos Venetsanopoulos

Merge branch 'feature-admin-guide-update' into develop

34e79416 04/23/2013 03:40 pm Constantinos Venetsanopoulos

Make docs.dev.grnet.gr URL oblsolete

Everything should point to http://www.synnefo.org/*
This patch updates the URL everywhere in the repo.

271d2c4c 04/23/2013 03:40 pm Giorgos Korfiatis

astakos: Rename get_service_quotas to service_get_quotas

So that it follows the naming scheme of other astakosclient calls.

c0d88cf3 04/23/2013 03:01 pm Constantinos Venetsanopoulos

Fix wrapping in admin and quick install guide

9770ba6c 04/23/2013 02:50 pm Giorgos Korfiatis

Handle max pending applications as a quotable resource

Assume a resource `astakos.pending_app' related to service `astakos'.
On submitting an application, issue a commission that will update the
related counter if possible, and accept the commission on success....

0ee59d55 04/23/2013 02:48 pm Giorgos Korfiatis

quotaholder: Update unit tests

ebf463a5 04/23/2013 01:20 pm Stavros Sachtouris

Update quick admin guide with kamaki changes

4dce387e 04/23/2013 01:10 pm Ilias Tsitsimpis

astakosclient: Replace ValueError with BadValue

All Exceptions that AstakosClient is raising should
be under AstakosClientException class

bbf79074 04/23/2013 11:48 am Giorgos Korfiatis

quotaholder: Change provisions argument to list

It is the API code's task to transform the input dict to list.

dd04efac 04/22/2013 07:07 pm Stavros Sachtouris

Update kamaki instructions in admin guide docs

15e727f1 04/22/2013 06:54 pm Giorgos Korfiatis

quotaholder: pep8 fixes

948e15bc 04/22/2013 06:47 pm Giorgos Korfiatis

Turn callpoint into a module of functions

Class structure is no more needed; there is no need for initialization,
since the code is used internally.

a0b34382 04/22/2013 06:33 pm Giorgos Korfiatis

astakos: Reintroduce foreign key from Resource to Service

Also merge all migrations from 0026 to 0032.

9523af40 04/22/2013 06:04 pm Christos Stavrakakis

Fix help message of management command

9b126f13 04/22/2013 05:50 pm Giorgos Korfiatis

astakos: Move helper function from qh to quotas.py

abdf6d92 04/22/2013 05:29 pm Giorgos Korfiatis

astakos: Use `with' to open file in management command

5cf5eb56 04/22/2013 05:23 pm Giorgos Korfiatis

astakos: Sync users when importing base quotas from file

d07ce657 04/22/2013 04:18 pm Giorgos Korfiatis

astakos: Standardize arguments of project calls

All calls take a request_user (of type AstakosUser) argument.

7a08e179 04/22/2013 04:18 pm Giorgos Korfiatis

pep8 and style changes

e05c541e 04/22/2013 04:17 pm Giorgos Korfiatis

astakos: Enroll in project even if request is pending

08043775 04/22/2013 04:14 pm Giorgos Korfiatis

astakos: Move get_resources in resources.py

cb14cc6c 04/22/2013 04:07 pm Giorgos Korfiatis

Rename users_quotas to astakos_users_quotas

44104cd3 04/22/2013 04:02 pm Giorgos Korfiatis

astakos: Move quota syncing code in quotas.py

3adbd562 04/22/2013 03:51 pm Giorgos Korfiatis

astakos: Decouple listing from syncing quotas code

a6459f32 04/22/2013 03:23 pm Giorgos Korfiatis

Sync user after changing base quota

ae16bcad 04/22/2013 02:18 pm Giorgos Korfiatis

Respect user-specific quota when changing resource default

Do not update holding limit if there exist user-specific base quota
for the particular resource.

501053a1 04/22/2013 01:35 pm Christos Stavrakakis

Cyclades: reserve public IP after commission

When creating a server, do not reserve a public IP address before
issuing commission to quotaholder. This bug resulted in unsynchronized
IP pools between Cyclades and Ganeti, and needed external
reconciliation to synchronize them....

02a66377 04/22/2013 10:12 am Christos Stavrakakis

Merge branch 'feature-plankton-fixes' into develop

595b2b0d 04/22/2013 10:10 am Sofia Papagiannaki

Add database migration

Provide an alembic migration to add an index
on the attributes.domain field

e77b7a99 04/22/2013 10:10 am Sofia Papagiannaki

pithos backend: update get_domain_objects method

Rename and change it to backend method
(add the backend_method decorator)

cda71050 04/22/2013 10:10 am Christos Stavrakakis

plankton: Cleanup and improve code

Major refactor in plankton APP and ImageBackend code:
  • Remove unused code
  • Remove 'plankton_method' decorator that added an ImageBackend to
    requests an replace it with 'image_backend' context manager. This
    context manager is responsible for opening and closing connections...
14c94c48 04/22/2013 10:10 am Christos Stavrakakis

Improve performance in listing images

Use '_get_domain_objects' function of Pithos backend, to list all
objects in a 'plankton' domain, instead of looping over all accessible
accounts, containers and objects. This function also returns metadata
and permissions for each object in order to avoid two extra calls for...

07f5a62c 04/22/2013 10:10 am Christos Stavrakakis

List all images in snf-manage image-list

Until now 'snf-manage image-list' management command printed only images
that were public, or accessible by a specific user. This commit changes
this command to print all images (regardless of the owner).

59573532 04/22/2013 10:10 am Christos Stavrakakis

plankton: raise BadRequest for invalid location

Modify 'add_image' plankton API method, to check that location parameter
is a valid Pithos url, and raise BadRequest if not.

22b5ac0b 04/22/2013 10:10 am Christos Stavrakakis

plankton: Correct image unregister

Correct usage of 'update_object_meta' function to remove all metadata
from plankton domain. Use an empty dictionary with replace=True.

Refs #3522

62d3ea53 04/22/2013 10:10 am Christos Stavrakakis

plankton: add logging to backend functions

a1a4cbfb 04/22/2013 10:10 am Christos Stavrakakis

Bypass authentication in image-show command

Make image-show management command to show information about an image
without passing a userid. Use 'image_list' command of ImageBackend
instead of 'get_image' because the second one will raise Forbidden for
non-public images....

5576e6dd 04/22/2013 10:10 am Sofia Papagiannaki

Pithos backend: Return objects in a specific domain

Refs: #3510

7627ec6f 04/22/2013 10:10 am Christos Stavrakakis

amqp_puka: Fix wrong import of ordereddict

6cc65c86 04/22/2013 10:10 am Christos Stavrakakis

Remove transaction from 'backend-add' command

Do not run 'backend-add' command inside transaction, because if
'snf-dispatcher' is running, it will receive messages that will arrive
from a Ganeti backend that does not exist in the DB and will not be able
to process them.

51286d7a 04/19/2013 07:00 pm Giorgos Korfiatis

quotaholder: Do no side effect on failed commissions

Make sure that no Commission or Provision entry is created when
issue_commission fails, even if the transaction is committed.

a93f2d64 04/19/2013 06:43 pm Kostas Papadimitriou

astakos: remove js debug statement

e03ccd07 04/19/2013 06:32 pm Giorgos Korfiatis

quotaholder: Fix printing of holding key

e311d555 04/19/2013 06:32 pm Giorgos Korfiatis

quotaholder: Improve data of NoCapacityError

Replace `available' by two fields: `limit' and `usage'.

480974e6 04/19/2013 06:32 pm Giorgos Korfiatis

astakos: Change response for API call `quotas'

The following indicators are returned for each holding:
"limit": the quota limit (as before)
"usage": the current usage (pessimistically, includes any pending
allocations)
"pending": the difference of max and min allocation, indicates...

34a61fff 04/19/2013 06:29 pm Kostas Papadimitriou

Service catalog fix

also include services for which no existing presentation data exist.
Admin can use ASTAKOS_SERVICE_META setting to customize the service
presentation metadata.

362ff471 04/19/2013 06:28 pm Kostas Papadimitriou

Store service access url in database

1571edb0 04/19/2013 05:55 pm Olga Brani

Astakos: ui minor fixes

Refs: #3573
Correct onclick functionality in project create page.
Discover missing div tag in project details page.

7534d44c 04/19/2013 05:39 pm Kostas Papadimitriou

Add missing init for snf_django.lib.db package

4e03ba30 04/19/2013 05:37 pm Kostas Papadimitriou

Update astakos usage view

Update view to use the introduced astakos quotas api.

db9f7a2b 04/19/2013 01:45 pm Giorgos Korfiatis

astakosclient: Add user option in get_service_quotas

5afce44d 04/19/2013 01:28 pm Giorgos Korfiatis

astakos: Add user parameter in service_quotas API call

Using this parameter, the service can query the quotas of a specific
user.

b830f774 04/19/2013 12:29 pm Giorgos Korfiatis

Move transaction.py to snf_django package

3b3baf88 04/19/2013 12:28 pm Giorgos Korfiatis

snf_django: Add missing import for IntDecimalField

Needed for formfield() method.

b052f360 04/19/2013 12:23 pm Giorgos Korfiatis

Move intdecimalfield.py to snf_django package

Rename it to fields.py and update all migrations that reference the field.

222a4f6a 04/19/2013 11:09 am Giorgos Korfiatis

Move managers.py to snf_django package

0cdc5cc5 04/18/2013 06:50 pm Giorgos Korfiatis

astakos: Remove obsolete ProjectResourceGrant fields

003909e3 04/18/2013 06:45 pm Giorgos Korfiatis

astakos: Handle source correctly in initial_quotas

2ec5a35c 04/18/2013 06:23 pm Giorgos Korfiatis

astakos: Remove obsolete fields of AstakosUserQuota

Remove quantity, import_limit, export_limit.
Update user-set-initial-quota management command.

673f8f42 04/18/2013 05:56 pm Giorgos Korfiatis

astakos: Remove obsolete project-related model fields

Several fields of models Project and ProjectMembership were related
to the external syncing to quotaholder and have become obsolete since
the inclusion of quotaholder in astakos.

cf53943b 04/18/2013 05:12 pm Sofia Papagiannaki

Fix trasactionless query in pithos sqlite backend init

Refs: #3580

26837206 04/18/2013 05:12 pm Georgios D. Tsoukalas

fix trasactionless query in pithos backend init

The query was submitted for execution without any prior transaction
setup, which caused:

1. psycopg2 to implicitly start a transaction
2. the new transaction to remain unknown to the sqlalchemy layer
since it was implicit...

ed599e9a 04/18/2013 03:04 pm Sofia Papagiannaki

Merge branch 'feature-pithos-container-quota' into develop

5b33b8e5 04/18/2013 12:38 pm Giorgos Korfiatis

astakosclient: Add request for service quotas

9747707e 04/18/2013 12:20 pm Giorgos Korfiatis

Sync quotas efficiently when importing resources

When changing the default base quota (uplimit) for a preexisting resource,
do a bulk update of the related holdings.
When importing a new resource, create the new related holdings.

Prompt the admin for the uplimit in the management command, if a config...

143d8a9d 04/18/2013 12:20 pm Kostas Papadimitriou

Cleanup CLRF's

26551b92 04/18/2013 12:20 pm Kostas Papadimitriou

Remove resource/service model dependencies

- Remove foreign key dependency between Service/Resource model. Replace
it with a service CharField to keep track of the service identifier
that the resource was registered from.
- Remove all references to resource service name in resource lookups

75380308 04/18/2013 12:20 pm Kostas Papadimitriou

Use updated resource models in projects views

b75a7e53 04/18/2013 12:20 pm Giorgos Korfiatis

Update resource-list management command

720955ff 04/18/2013 12:20 pm Giorgos Korfiatis

Modify resource limit from the command line

0156e40c 04/18/2013 12:20 pm Kostas Papadimitriou

Services api/presentation logic cleanup

- Remove presentation information from Service model (order, icon)
- To access the list of services filled with both presentation and api
data use Service.catalog(). The method fills a dict with service
identifiers and service metadata through the following steps...

54bac253 04/18/2013 12:20 pm Kostas Papadimitriou

Astakos missing Service model migrations

bb005bc2 04/18/2013 12:20 pm Giorgos Korfiatis

New call astakos/api/service_quotas

Returns quotas for all resources associated with the service that makes
the call.

42f0a495 04/18/2013 12:20 pm Giorgos Korfiatis

astakos: update service-add and service-list

71460e84 04/18/2013 12:20 pm Giorgos Korfiatis

astakos: fix default empty dict setting