- 27 Mar, 2013 6 commits
-
-
Georgios D. Tsoukalas authored
Refs #3492 - Introduce a generic PooledObject class to act both as a context manager for getting and putting back an object from a pool. - Implement a class PooledHTTPConnection(PooledObject) as a sublcass of the one in (1) - Eliminate httplib.HTTPConnection patching of close(). Eliminate put/get_http_connection. The httplib.HTTPConnection object is no longer released back to the pool via a method on it. One must explicitly put it to the pool, or use the PooledObject context manager in (2) above. - Update lib.astakos, lib.quotaholder.http, synnefo.api.delegate, pithos.api.delegate to use PooledHTTPConnection. - Update tests
-
Georgios D. Tsoukalas authored
-
Sofia Papagiannaki authored
Public URLs should consist of a random part. A public URL should be unique and should not be equal to any deleted public URL. Finally publishing a public object has no effect. Therefore, to generate a new public URL for an object, the object should be unpublished and published again.
-
Sofia Papagiannaki authored
# Fix send change email error message # Remove double logging
-
Sofia Papagiannaki authored
Do not display unnecessary message: "Please use either `--from-file' or `--set-capacity' options" while importing quotas from file.
-
Stratos Psomadakis authored
-
- 26 Mar, 2013 9 commits
-
-
Kostas Papadimitriou authored
Refs #3452
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
We used to check the limit on applicant; however we would like to to control pending applications per the original applicant, i.e the owner. The check is ignored when the applicant is a project admin.
-
Giorgos Korfiatis authored
An admin can modify a project, i.e. create an application based on a previous application. We distinguish the initial applicant, called the `owner', from the user who submitted the current application, called the `applicant'. Show owner instead of applicant in project-list: the applicant can vary among applications for a single project, but owner is likely to be unique.
-
Kostas Papadimitriou authored
New ASTAKOS_PROJECTS_VISIBLE setting (defaults to False) added to control whether the projects menu should be visible in astakos user views.
-
Kostas Papadimitriou authored
-
Kostas Papadimitriou authored
- We force user quota information to be updated after the completion of vm/network create/destroy actions.
-
Giorgos Korfiatis authored
Add field `response' in ProjectApplication model. Add option `-m' in project-control command. Refs #3493
-
Giorgos Korfiatis authored
-
- 22 Mar, 2013 6 commits
-
-
Stratos Psomadakis authored
-
Christos Stavrakakis authored
Distinquish between exceptions in the decorated function and exceptions in accepting/rejecting the commissions. The first one determines whether serials should be accepted or rejected, while the second one is an error indicating that commissioning can not be completed.
-
Stratos Psomadakis authored
Commit 469d099 introduced a typo which caused /plankton/shared_images/ to raise an UnboundLocalError.
-
Giorgos Korfiatis authored
Refs #3489 Call to as_sql() raises EmptyResultSet in a couple of occasions, more importantly when filtering based on an empty list: filter(field__in=[]).
-
Giorgos Korfiatis authored
This makes it easier to maintain, since it is used in multiple applications (astakos.im and quotaholder_app).
-
Giorgos Korfiatis authored
Inform specifically which users, if any, have been synced, instead of listing the whole diff. The latter can be recovered by giving the option --verify.
-
- 21 Mar, 2013 5 commits
-
-
Giorgos Korfiatis authored
Refs #3479 Database stack limit issue was triggered by syncing quotas for all users. It is much faster to compare quotas locally and send for sync to quotaholder only those that differ.
-
Giorgos Korfiatis authored
Refs #3479 Looking up (entity, resource) pairs created a huge query formula in disjunctive normal form, which apparently brought the db parser to its limits. It has been replaced by selecting the holdings by entity only. This means that in theory we lock more holdings than needed (for any resource for a given entity), but in practice we would need to select these holdings anyway.
-
Kostas Papadimitriou authored
typo fix that caused unavailable ram options due to user quota limits to still be shown as selectable values.
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
Get quotaholder holdings for all users in one call, to speed up execution of 'snf-manage cyclades-usage-verify'.
-
- 20 Mar, 2013 7 commits
-
-
Kostas Papadimitriou authored
Refs #3396 Refs #3397 - Use separate loading messages for each action to avoid confusion caused due to aynchronous progress - Enforce resolving of unknown machine image ids before the main view gets rendered.
-
Kostas Papadimitriou authored
Fix early check for existing cookie contents
-
Kostas Papadimitriou authored
Refs #3460 Token value set in api action/request is always retrieved from the current cookie contents. When cookie contents change is detected ui redirects user to log in. Cookie changes are detected each time the app tries to use the user uuid/token information. A window interval (hardcoded to 10 seconds) was added to access this information to ensure that cookie change logic will be applied even when ui app gets idle (no api calls are made).
-
Kostas Papadimitriou authored
- Include suspend/release suspension tests - Mock astakos displayname/uuid resolving methods - Update fixtures with user uuids - Test vmid lookup
-
Kostas Papadimitriou authored
Refs #3454
-
Kostas Papadimitriou authored
Refs #3453 VM lookup is triggered when search query matches the following patterns - vm<id> - vm-<id>
-
Konstantinos Tompoulidis authored
* Document the Quotas feature * Minor fixes and updates * pep8 fixes
-
- 19 Mar, 2013 5 commits
-
-
Sofia Papagiannaki authored
Pithos usage tests require special setup since test accounts should be created and configured properly in astakos and quotaholder components. Also, these tests should know the server's version accounting policy. For the time being, pithos server does not return this information. So the tests check the PITHOS_BACKEND_FREE_VERSIONING setting to discover the server's policy. However, this works only if the tests run against a server running in the same host, but not also for a remote server. For the above reasons, the specific tests are deactivated until there will be available a proper pithos testing framework.
-
Sofia Papagiannaki authored
-
Sofia Papagiannaki authored
globally and per-user. Refs: #3309 Substitute pithos-reset-usage with pithos-usage management command and extend it to list also account usage.
-
Sofia Papagiannaki authored
Refs: #3442 Refs: #1733 Pithos has two different version accounting policies: * free: do not include object history version size to the total account usage * debit: include object history version size to the total account usage This configurable by PITHOS_BACKEND_FREE_VERSIONING setting. Pithos delete container function purges the history versions of the including objects. and should send to the quota holder component the released disk space *only* in the case of debit version accounting policy. Also the purging function used to return the negative of the computed released disk space but to the quotaholder component was sent its negative. So, erroneously, the released disk space was added to the total quota usage. Provide tests for the following distinct cases: * free version accounting policy (PITHOS_BACKEND_FREE_VERSIONING=True) and `auto` container versioning policy * free version accounting policy (PITHOS_BACKEND_FREE_VERSIONING=True) and `none` container versioning policy * debit version accounting policy (PITHOS_BACKEND_FREE_VERSIONING=False) and `auto` container versioning policy * debit version accounting policy(PITHOS_BACKEND_FREE_VERSIONING=False) and `none` container versioning policy
-
Sofia Papagiannaki authored
X-Object-Modified-By header was accidentally eliminated in the response
-
- 15 Mar, 2013 2 commits
-
-
Kostas Papadimitriou authored
in order to have usable pdb repl
-
Sofia Papagiannaki authored
Loggers for all synnefo components should be configured in snf-webproject setting file '10-snf-webproject-logging.conf'.
-