Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos @ 0a7a4104

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

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

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.

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

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.

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.

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.

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

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

Update astakos usage view

Update view to use the introduced astakos quotas api.

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

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.

4161cb70 04/18/2013 12:20 pm Giorgos Korfiatis

Move resource data away from astakos settings

UI-related presentation data go to presentation.py.
Remove load_service_resources call and related astakos-init
management command.

34d3883a 04/18/2013 12:20 pm Giorgos Korfiatis

Make resource name independent of service name

Also remove unused ResourceMetadata model.

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

Import resources from definition and config files

Register a service's resources giving option --json <file>.
The json file is expected to represent a dictionary with keys
"service" and "resources".

Currently the default base quota (uplimit) for each resource is read...

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

7125062f 04/17/2013 02:09 pm Giorgos Korfiatis

Make astakos-quota robust on missing base quotas

6c0f4562 04/12/2013 06:18 pm Giorgos Korfiatis

quotaholder: Unify accept and reject commission code

Incorporate accept/reject functions in resolve_pending_commissions,
in order to enforce a total ordering on locking holdings.
Add a wrapper (resolve_pending_commission) that operates on a single
serial.

61660c26 04/12/2013 11:14 am Giorgos Korfiatis

Remove quotaholder views and urls files

No more needed, since quotaholder is integrated in astakos.

6bd4129b 04/11/2013 06:30 pm Kostas Papadimitriou

Move astakos webproject hooks

move astakos.im.synnefo_settings to astakos.synnefo_settings and make
the appropriate changes in setup.py

befa5997 04/11/2013 02:07 pm Giorgos Korfiatis

Merge branch 'develop' into feature-quotas

Conflicts:
snf-astakos-app/astakos/im/api/service.py
snf-quotaholder-app/quotaholder_django/quotaholder_app/callpoint.py

6cc50d6a 04/11/2013 01:21 pm Giorgos Korfiatis

Cleanup obsolete quota code

f0001470 04/11/2013 11:34 am Christos Stavrakakis

Merge branch 'feature-snf-django' into develop

Conflicts:
docs/older/Changelog.pithos-app
snf-astakos-app/astakos/im/api/__init__.py
snf-pithos-app/pithos/api/util.py

e7f22a2a 04/10/2013 07:05 pm Christos Stavrakakis

Merge branch 'release-0.13' into develop

Conflicts:
snf-astakos-app/astakos/im/messages.py

aee9a389 04/10/2013 03:22 pm Giorgos Korfiatis

Force query to list before passing as argument

An unevaluated query ends up being used as an argument of intended list
type to another query, which fails in the case of an EmptyQuerySet, which
is not iterable.

07168279 04/09/2013 05:53 pm Kostas Papadimitriou

Astakos dashboard url change

landing instead of user profile

32ee6f20 04/09/2013 12:22 pm Kostas Papadimitriou

Fix url typo

cdd30404 04/08/2013 05:53 pm Giorgos Korfiatis

Make pending project options more descriptive

36011c7a 04/08/2013 05:12 pm Giorgos Korfiatis

Fix description for resource `ram' in settings

a4398c8c 04/08/2013 02:14 pm Giorgos Korfiatis

Remove client_key parameter from quotas API

It is not necessary, since the service token in used for authorization.
The api_method decorator is modified so that it passes to the method
the service data through the request object.

1028e568 04/08/2013 01:43 pm Giorgos Korfiatis

API call for resources

18f21257 04/08/2013 01:41 pm Giorgos Korfiatis

API calls for quotas and commissions

4850202e 04/08/2013 01:37 pm Giorgos Korfiatis

Do not register resources in quotaholder

79e3da8a 04/08/2013 01:36 pm Giorgos Korfiatis

Prepare quotaholder calls for the new API

- {accept, reject}_commission take a single serial
- resolve_pending_commissions takes a set of serials to accept
and a set of serials to reject
- commission exceptions record the provision on which they are raised...

798819c7 04/08/2013 01:03 pm Olga Brani

Merge branch 'release-0.13' of https://code.grnet.gr/git/synnefo into release-0.13

83886184 04/08/2013 01:03 pm Olga Brani

Correct company url in Astakos footer template

c273dd61 04/08/2013 12:47 pm Kostas Papadimitriou

Revert unknown account message

89feafec 04/08/2013 12:33 pm Olga Brani

Merge branch 'release-0.13' of https://code.grnet.gr/git/synnefo into release-0.13

d2b8ec7b 04/08/2013 11:07 am Christos Stavrakakis

Move common test code to snf_django.lib.testing

ee7a2b87 04/08/2013 11:06 am Christos Stavrakakis

Use common 'api_method' decorator to astakos api

Update all astakos API methods to use the new common 'api_method'
decorator. The 'api_method' decorator 'user_required' option
authenticates uses by their token through astakos. Consequently,
astakos methods can not use this option. Instead, two custom...

cf5f17b6 04/08/2013 11:06 am Christos Stavrakakis

Add fault.xml template to pithos and astakos

bd40abfa 04/08/2013 11:06 am Christos Stavrakakis

Move cloud faults to 'snf_django.lib.api.faults'

Gather all faults from all synnefo projects into common
'snf_django.lib.api.faults'.

e496f888 04/05/2013 06:49 pm Giorgos Korfiatis

Adjust astakos to new holding design

Simplifications due to removal of quantity and merging capacity into holding.
Also make sure that holders and resources are represented as strings in
quotaholder calls.

2864e701 04/05/2013 06:49 pm Giorgos Korfiatis

Turn holding into a counter

The role of Holding is now only to keep track of usage against
a limit. There is no more exporting of resources and thus no need
for the stock counters.

b78f2b29 04/05/2013 06:49 pm Giorgos Korfiatis

Rename capacity to limit

dc9da5b9 04/05/2013 06:49 pm Giorgos Korfiatis

New quota functions in astakos

Handle quotas as nested dictionaries indexed by:
user uuid, source, resource name

0da5e49a 04/05/2013 06:49 pm Giorgos Korfiatis

Compute and show quotas by source

Adjust astakos code to the new nested dict structure of quotas.

aa27f246 04/05/2013 06:49 pm Giorgos Korfiatis

Move quota-related code out of models.py

Intention is to collect all quota-related code to a single file.

9bca7701 04/05/2013 06:49 pm Giorgos Korfiatis

Pass user.id in project join/leave operations

This is done for reasons of uniformity.

8cbea11d 04/05/2013 06:49 pm Giorgos Korfiatis

Sync to quotaholder by recomputing user quotas

On a user joining/leaving a project or on a project definition change,
we used to compute quota diffs for affected users and add them up
to existing values in quotaholder.

We now switch to recomputing all quotas for affected users and resetting...

8288906d 04/05/2013 06:48 pm Giorgos Korfiatis

Remove unused code

f77363c2 04/05/2013 06:48 pm Giorgos Korfiatis

wip Update astakos.im to use local quotaholder

Import directly quotaholder.callpoint in endpoint/qh.py
instead of an HTTP client.
Remove code related to entities, such as registering users and services.
Remove sync_projects logic.

992b81b6 04/05/2013 06:48 pm Giorgos Korfiatis

wip Remove check whether membership is pending sync

It is not needed any more, syncing to quotaholder will happen
in a single transaction along with the call initiating the change.

3d4cef9e 04/05/2013 06:48 pm Giorgos Korfiatis

wip Remove check is_active on projects and memberships

Remove second phase of (de)activation, not needed any more,
since syncing to quotaholder will happen in the same transaction
as the call initiating the syncing.

3adbfafa 04/05/2013 06:48 pm Giorgos Korfiatis

wip Remove import_limit and export_limit from policy

If needed, they can be simulated by importing from special resources.

17565359 04/05/2013 06:48 pm Giorgos Korfiatis

Default quotaholder input to empty list

Keyword arguments in quotaholder calls defaulted to empty pair,
although they were actually expecting a list.

14a58548 04/05/2013 06:48 pm Giorgos Korfiatis

wip Update astakos.im to simplified quotaholder policy

570015d2 04/05/2013 06:48 pm Giorgos Korfiatis

wip New, simplified syncing to quotaholder

d03796c2 04/05/2013 06:48 pm Giorgos Korfiatis

Redesign quota holding

A Holding now tracks the current usage (amount imported)
and the amount available to export (stock).

Counters come in pairs (imported_min, imported_max and
stock_min, stock_max respectively) to allow for a two-step
commission.

For example, issuing a commission to import some quantity...

2b888e60 04/05/2013 06:48 pm Giorgos Korfiatis

Merge Policy model into Holding

Since the removal of quantity, Policy was left with only one value:
capacity. To simplify things, we directly include capacity in Holding.

This makes obsolete the following functions, which are removed:
get_limits, set_limits, get_holding, set_holding.

04dcc30e 04/05/2013 06:48 pm Giorgos Korfiatis

Import resource from no source

Since quantity (initial supply) has been removed from Policy,
there is no direct way to set the initial available resource,
for example the total available VMs for holding cyclades.

This is now achieved by issuing (and accepting) a commission...

c6ef66ba 04/05/2013 06:48 pm Giorgos Korfiatis

Update quotaholder unit tests

757f3256 04/05/2013 06:48 pm Giorgos Korfiatis

Update stress test to use the new transaction decorator

200b37fb 04/05/2013 06:48 pm Giorgos Korfiatis

Execute astakos-init and user-update in a transaction