astakos: Generate tokens without trailing equal signs
Strip padding ("=") introduced during the base64 encoding.Update token examples in docs.
Rename astakos_keystone to astakos_identity
astakosclient: Append api version
Incorporate all resources into service definitions
- Add 'service_origin' key in resources, as the normative name of the service that exported it.- Keep resources backwards compatible, export-resource-service reads resources from the service list.
common: Export only services specified as public
Employ helper function `filter_public' in service-export-* commands.Also set `pithos_ui' service to non-public and clear version of`astakos_ui'.
astakosclient: add service catalog
service catalogs: autofill endpoints from BASE_URL
make synnefo URLs consistent and configurable
https://service.deployment.vendor.tld/service-base/api-prefix/hard/path |___________________________________| |__________| |________| |_______| BASE_HOST BASE_PATH PREFIX Hardcoded...
astakosclient: Implement get_user_info_with_endpoints
This function uses the keystone alike authentication API of Astakos
quotaholder: Store timestamps using DateTimeField
Add new fields issue_datetime in Commission and issue_datetime,log_datetime in ProvisionLog. Migrate away from custom string-basedissue_time and log_time fields.
astakosclient: Implement get_endpoints method
astakosclient: Implement send_feedback function
astakosclient: Code refactoring for astakos api urls
Export astakos api urls as global variables that can beeasily changed, rather than hard coded values.
astakosclient: Prevent relative uri's requests
do not lstrip slashes from the path of astakos url to avoid making requestswith relative uris.
astakosclient: Use path given in astakos_url (if any)
astakos: WIP move all api calls under ``/astakos/api``
Refs: #3340
Revert "astakosclient: don't check resolve_commissions' parameters"
This reverts commit da18207e2825b4a0a4cb3abc6a9fbef541eda05b.Issue resolved by commit 214058a911c5b4b8b3d9108ba891536a0b40dc49.
astakosclient: Fix bug in checking arguments
astakosclient: don't check resolve_commissions' parameters
In resolve_commissions, accept_serials and reject_serialsmay be empty lists. Don't do a validation check for thisparameters and let the servers respond with an errorif bad values was given.
astakosclient: Update provisions' type in docstring
astakosclient: Change provisions argument to dict
astakos: Set and return commission names in API calls
Support issue_commission's `name' parameter for an optional descriptionof the commission. Include this field in the dict returned byget_commission.
Change astakosclient accordingly.
astakos: Rename get_service_quotas to service_get_quotas
So that it follows the naming scheme of other astakosclient calls.
quotaholder: Improve data of NoCapacityError
Replace `available' by two fields: `limit' and `usage'.
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...
astakosclient: Add user option in get_service_quotas
astakosclient: Add request for service quotas
astakosclient: Add documentation for quotas functionality
astakosclient: Create function issue_one_commission
Refs #3440
astakosclient: Create function check_input to simplify code
astakosclient: Resolve multiple commissions at once
astakosclient: Add some more unit-tests
astakosclient: Rephrase some comments
Most astakos-quotas calls use services' tokens
astakosclient: Rename some functions
astakosclient: Raise BadValue when failing to parse request data
astakosclient: Add request for commission's actions
astakosclient: ReRaise json Exceptions as AstakosClient ones
astakosclient: Add request for commission's info
astakosclient: Add request for pending commissions
astakosclient: Add request for Commissions
astakosclient: Replace ValueError with BadValue
All Exceptions that AstakosClient is raising shouldbe under AstakosClientException class
astakosclient: Add request for Quotas
astakoclient: Add request for Resource List
astakosclient: AstakosClientException now has details attr
astakosclient: For objpool pool_size is now size
Rename snf-astakos-client to astakosclient