Refactor tests
Add more tests for db, logic and api
Fix wrong count of reserved pool entries
Padding should not be considered when counting unavailable entries.
Remove dummy function
Fix bug in images API
Use image_backend context manager to ensure that ImageBackend is alwaysclosed. list_images method did not close the ImageBackend, whichresulted in depletion of the Pithos backend connection pool.
Properly configure plankton as an app
All django apps need a models.py file
Add basic tests for plankton
Fix bugs in models methods
Add more tests for db and logic
Refactor some test code
Misc minor bug fixes
Add object factories for most db models
Use 'factory_boy' library for creating Django ORM objects as test data.These factories can be used as fixtures replacement since they areeasier to write and maintain.
Fix test settings
LOGGING has been renamed to LOGGING_SETUP
Include Pool tests to Django testsuite
Fix current db, logic and api tests
Fix handling of firewallProfile action
Refs #3097
Fix variable scope
add_quota API call
Fix variable scope bug in process_net_status
Do not allow creation of more than one pools
Do not allow creation of more than one Bridge or MacPrefix pool, sincewe can not handle them yet.
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
Add backend-id option to reconcile-servers
Make reconcile-servers perform reconciliation only for the specifiedbackend.
Import quotaholder settings only if needed
Import by default the quotas settings
reconciliation:avoid double asking Ganeti
Modify reconcile-servers to not communicate 2 times with Ganetito get the operstate and the NICs of the VMs. Merge this two onecall.
Modify backend-modify --drained and --offline args
Make backend-modify drained argument as --drained=True|False insteadof --drained and --no-drained. The same for offline.
Mark as drained newly added backends
Rename reconcile command to reconcile-servers
Rename `snf-manage reconcile` management command to `snf-managereconcile-servers`, to be consistent with `snf-managereconcile-networks`. Also, treat '--detect-all' option as defaultwhen no other '--detect-*' is specified.
Merge two tests for quotaholder api
Add quotaholder token for tests
Introduce network flavors to replace network types
Add tags and mode to network db model. Replace existing type withflavor. Introduce 4 different flavors. Each flavor has mode, link,mac_prefix, tags. Supported flavors are CUSTOM, IP_LESS_ROUTED,MAC_FILTERED, PHYSICAL_VLAN and are hardcoded in db models....
Migration files for network types
Better version of the bug fix 39cefb25
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...
remove obsolete import get_callpoint
allocate quotaholder serials via database sequence
make quotaholder token a required setting
Implement quotas-init and quotas-verify
Implement quotas-init and quotas-verify management commands.- quotas-init sets quotas of Quotaholder to the state of quotas in Cyclades DB- quotas-verify detects incosistencies between quotas in Quotaholder and...
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.
First unpack, then consider options, while checking canonicals
Cleanup
A couple of more tests for quotaholder
Merge branch 'ui-0.13' into devel-0.13
Implement reset_holding API call
Fix metatada and personality of vmapi
Fix renamed setting
Test issue_commission
Avoid negative indexing, not supported by django lists
Revert "snf-webproject: Don't disable existing loggers by default"
This reverts commit 5cb79e68bb1e0b443b62ec1ffe7b005bbf806b91.
Merge remote-tracking branch 'origin/quota' into devel-0.13
Fix quotaholder settings
Temporary fix for allocating archipelagos VMs
cyclades: authenticate to quotaholder with token
- initialize quotaholder client with the token from setting CYCLADES_QUOTAHOLDER_TOKEN
- rename setting USE_QUOTAHOLDER to CYCLADES_USE_QUOTAHOLDER
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
Disallow empty names in _random_choice
Fix astakos docs
Remove quotaholder migrations
Fix typos
Use SYNNEFO_SETTINGS_DIR in quotaholder testing
Merge handling of ext_<provider> disk templates
Use helper function for verifying personalities
Merge branch 'quota' into devel-0.13
Update quotaholder testing configuration
Clean up testing config
Add more tests for quotaholder
snf-webproject: Don't disable existing loggers by default
Use CYCLADES_QUOTAHOLDER_URL
Merge branch 'origin/devel-0.13' into quota
Conflicts: snf-cyclades-app/synnefo/api/servers.py
fix auto-generation in get_doc()
remove stub docstrings to allow their generation from canonicals
auto-generate missing api call docstrings
provide random Name
fixes in canonical randoms
Separate concerns of unpack and check in Args
Move implementation details to argmap.py
allow '-' in quotaholder entity names
Move resource if > 0
Check for pending commissions per entity, resource
Raise AssertionError when exhausted
Add missing import
Remove parse and _parse from canonicals
Fixes in unpack
Show input canonical
integrate Args and argmap, change argmap magic pos
csrf_excempt quotaholder view
rename betteron to argmap, add manipulation methods
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 wrong setting
PUBLIC_ROUTED_USE_POOL has been renamed to PUBLIC_USE_POOL
Fix bugs from merging
Add USE_QUOTAHOLDER setting
Add setting indicating whether to use the Quotaholder service oruse the static limits.