Fix an issue_commission calculation
The check for available capacity in the target entitywouldn't account property for the initial quantity.
Make also the unit tests that failed to detect the problemmore robust.
quotaholder: log all exceptions, fix token crash
fix quotaholder nested exception JSON failure
also, log http 500 on server side
pep8 fixes
Import quotaholder exceptions from kamaki in unittests
Make ForUpdateManager thread-safe
The manager held a global flag `_for_update' on a single manager object,which could be read or set by multiple threads.
select_for_update() is now provided by a subclass of QuerySet.It must be used as the last modifier of a query set,...
Edit quotaholder_app package info
improve pep8 compliance
Fixes to setup.py
Update author/maintainer name/email of all synnefo projects. Also fixshort description and some whitespace issues.
Do not automatically update version files
Do not automatically update version files from setup.py. From nowon, version files are updated using 'update_version.py' script and'devflow'.
Also removed autopkg.conf and created devflow.conf configuration file.
Remove devflow dependency from quotaholder setup
Remove devtools and rename to devflow
fix+test for issue_commission release logic
issue_commission() with negative quantity is consideredto be a 'release' instead of an 'allocation'.The limit checks for the conditions or the release weresomewhat incomplete and inconsistent.
The new logic also fixes the bug found by kpap where...
allow overlimit entities to release resources
When a resource holding is found with quantity exceeding its capacity,it cannot allocate any more quantities,but it should be able to release quantities.However, if even after the release the quantity remained...
Redefine IntDecimalField to allow support for south migration;apply the new field to astakos.im.ProjectResourceGrant
wip Use decimals to store quota values; infinite quotas no more supported
Define custom integer field that is stored in the DB as decimal
Set default quota values in _increase_resource
Import QH_PRACTICALLY_INFINITE in tests
Add details in exceptions raised in issue_commission
Exceptions regarding limit violations now carry detailsas specified in CommissionValueException
New add_quota API to handle infinity
Separately handle subtractions and additions of quotasAdapt get_diff_quota plus various bug fixes
Do not record arguments of add_quota.Add call query_serials separate from ack_serials.
Record arguments of add_quota and return them in ack_serial
Add a serial in the add_quota API call
add_quota API call
Replace commit_on_success with commit_manually.The callpoint takes care of committing.
Make side-effecting quotaholder API calls fail completely,if part of the request is rejected.
If such a call returns a non-empty list, this means thatthe entire call failed due to the actions mentioned in the list.
select_for_update for quotaholder
Simplify set_quota implementation
Keep the DB but flush it at start up of testing
Use a postgres DB for testing
Check list_entities on sorted output
Disallow commission when source == target
Merge two tests for quotaholder api
Add quotaholder token for tests
fix obscure bug in callpoint class that triggered db integrity errors
Callpoint class had a placeholder attribute original_callswhich was initialized as an empty dictionary,and thus was usable. Class init() code did not initializeoriginal_calls as it should but because the placeholder was...
allocate quotaholder serials via database sequence
make quotaholder token a required setting
add list_holdings quotaholder api call
list_holdings() to be used to get all holdings for multiple resourceswithout having to call list_resources/get_holding for each entity/holding.
Cleanup
A couple of more tests for quotaholder
Implement reset_holding API call
Test issue_commission
Merge remote-tracking branch 'origin/quota' into devel-0.13
authenticate quotaholder http calls with a token
Quotaholder returns 403 invalid token if the request'sX-AUTH-TOKEN header does not match settings.QUOTAHOLDER_TOKEN
One more test for quotaholder
Change testing port
Remove quotaholder migrations
Use SYNNEFO_SETTINGS_DIR in quotaholder testing
Update quotaholder testing configuration
Clean up testing config
Add more tests for quotaholder
Move resource if > 0
Check for pending commissions per entity, resource
csrf_excempt quotaholder view
set quotaholder urls
- quotaholder base url is of the form 'http://host/quotaholder/v/'- cyclades setting name set to CYCLADES_QUOTAHOLDER_URL
eliminate unused imports
fix quotaholder_app in synnefo_settings
Register quotaholder-manage in scripts
Remove a print
Namespace quotas api url
to avoid conflicts with cyclades-app
snf-ize quotaholder-app package
Rename set_full_holding to init_holding
Implement release_holding
Pass Entity instead of string.
API call to set the whole holding.
Do not create entity in issue_commission.
Do not allow duplicate provisions in a commission.
Add missing copyright
Update imports
Remove old files
Add copyright.
Move tests to snf-quotaholder-app
Move commissioning into snf-common.
Missing urls.py file.
Rename in fixtures.
Merge quotaholder into synnefo