Cache by uuid instead of token in astakos client
Refs: #3660
Implement a user_list to list cached shell users
Refs: #3632
Fix broken unittests concerning floating ips
Make wait mechanism usble by more cyclades methods
Refs: #3867
Update the copyright dates everywhere
Fix spelling mistake (ident-->indent)
Expose impemented floating IP methods
New commands:
floatingip list/create/delete/info/poolsserver ip attach/detach
Also, renamed the assoc/disassoc floating ip clients methods toattach/detach_floating_ip
Adjust unit/functional tests
Refs: #3964
Add a Connection Retry to Client + ResponseManager
Usage:cl.XxxClient(...)cl.CONNECTION_RETRY_LIMIT = 5cl.<methods>
Adjust list_sever_nics to recent server changes
Fix deprecated terms in documentation
Fix typo when getting metadata without key
Merge branch 'feature-floating-ips' into develop
Conflicts: Changelog
Fix all minor typos and modifications in tests
Fix typo in method docs
Adjust livetests to cloud renamings
Document the Upgrade notes for v0.9
Adjust all livetests to use cached astakos client
Adjust cached astakos client unit tests
Create mising func. tests 4 cached astakos client
Adjust astakos functional tests to novel features
Make sure all url-params are url-encoded
Refs: #3956
A. Hardcode the new kamaki config file
Refs: #3934
Breaks compatibility, implements a remotes-based config file
Handle url proccessing even if url is unicode
Also, fix typos and default values for service configurations
Fix typo in astakos client: version_id-->versionId
Adjust cached auth info reading to recent changes
Fix typos in user command flow
Use explicitely set services urls if no auth_url
Refs: #3874
In current configuration, kamaki checks for auth_url. If that fails,it raises an error. If it is not set, it prints a warning and attemptsto read the <service>.url option from the configuration file....
Implement --cloud arg to switch between clouds
Refs: #3913
Config file can (optionaly) contain:
[remotes] example = https://www.example.org/astakos/identity/v2.0/ old_version = https://www.example.org/astakos/identity/v1.0/ ...
Now, user can explicitely request for a remote cloud authentication URI:...
Get endpoint urls for all CLI operations
Use kamaki.clients.astakos.AstakosClient as a cached astakos client to getuser information and, most importantly, endpoints. Allow users to authenticatemultiple tokens on the same session. In every session there must be at most...
Enrich/rename astakos client calls with endpoints
Kamaki.clients.astakos.AstakosClient is now a high-level client lib thatoffers access to token-authenticated astakos-aquired cached information.Users who need an astakos client should use the snf-astakosclient instead....
Impleent floating ip methods @compute/cyclades
Refs: #3862
New methods introduced and unit-tested: ComputeRestClient: floating_ip_pools_get, floating_ips_get/post/delete CycladesRestClient: floating_ip_pools_get, floating_ips_get/post/delete ComputeClient: get_floating_ip_pools, get_floating_ips,...
Implement floating_ip(s)post/get/delete rest calls
Implement floating_ip_pools_get @compute/cyclades
Adjust astakos authenticate to snf-0.14 url sheme
Rename meta-->metadata and remove values @CLI
Refs: #3633
Rename meta-->metadata and remove values @lib
- Meta-->metadata in some cases, according to the expected cyclades API- remove values level from requests and responses @ cyclades lib
Fix expected "public" header params in tests
Use _format_image_headers: image_register,get_meta
- Ensure uniform image meta output- Easy to apply the correct meta format
Refs: #3797
Restore thread-wait for append
Fix typo (permition --> permission)
Merge branch 'feature-json-output' into develop
Conflicts: Changelog kamaki/cli/commands/image.py
Also, take care of pep8 issues
Wait threads to finish in pithos append_object
Implement an optional json output 4 outputing cmds
Refs: #3732
Add json/optional responses to flavor/network cmds
Add json/optional outputs to server commands
Do not unpublish by default @ pithos rest calls
Refs: #3780
Do not recalculate #blocks in upload_from_string
Refs: #3608
Store image properties after image registration
Log of changes:- Properties are stored in a remote file on Pithos+- File name is <image-file>.meta- Feature can be switched off with --no-property-file-upload- If remote property file exists, registration is aborted...
Apply option outputs to image commands + renames
- Add image.add_member missing content-length header- Rename image-[add|del]member commands to members-[add|delete]- Remove update option from image-register- In image-compute split properties to properties-list and properties-get...
Apply optional output to kamaki file commands
Apply the feature wherever is applicableGeneralize the feature by moving the corresponding code to _command_init
Update file operations and their output
Refs: #3756 #3732
- Add optional output for file methods: mkdir, touch, create, move, create, copy, move, append, delete, purge, info, meta, upload - Transliterate permissions and metadata methods to apear as get/set/delete...
Add output to file copy/move
Also, kamaki.clients.pithos.copy/move_object returns response headers
Add output support to create methods
In kamaki.clients-------------------- storage.create_directory returns response headers- implement pithos.create_container
In kamaki.cli.pithos-------------------- add flag --with_output for optional output...
Update changelog, unittests for upload_from_string
Functional test and debug for upload_from_string
Implement upload_from_string
Implemented with threads
Optimize download_to_string by using threads
Implement download_to_string in pithos client
The download_to_string method downloads a remote object from pithos into astring, which is then returned.
Also, implemented unit and functional tests. Changelog is updated
Adjust pithos livetest to use container_info_cache
Refs: #3707
Update unitest to include container_info_cache
Refs: 3707
Add a container_infor_cache param to upload_object
Each upload involves a request that retrieves block size and hash information.In higher level applications, this request is redudant after the first upload.This feature allows higher level operations to cache retrieved container info...
Update livetest for upload return modification
Refs: #3656
Modify upload methods to return created obj info
Methods affected: upload_object upload_object_unchunked upload_object_by_manifestation
unittests modified accordingly
Implement livetest for image unregister
Refs: #3728
Expose image-unregister to cli and unittest it
Implement image unregister in kamaki.clients
Make kamaki.clients unware of kamaki.logger
use logging for getting the loggers
Allow activation/deactivation of specific loggers
refs: #3715Logger settings are not aborted and will be restored at deactivation
Also, remove all logger creation functionality from kamaki.clientsA file or stream logger should be created an the kamaki.clients caller side...
Merge branch 'feature-logging' into develop
Remove log redaduncy when logging in a file
Globalize logger usage
Unsolved bug: redudant info in logfile
Wipe logger add_file_logger
Fix typo in _create_or_get_missing_hashes call
Honour if_(none_)match even if all blocks are up
Refs: bug #3708
Expand logger to support stream logging, simplify
Adjust expected values in fanctional client tests
Connect request-response threads in logs
The connection between kamaki request attempt and httplib response waslogged, but the connection between httplib response and kamaki responsemanagment was not logged.
Update docs to use the term Synnefo where needed
In some cases, the term 'GRNET development team' was replaced with 'Synnefo' or'Synnefo development team'
Add some parameters to storage.list_object
:param limit: (int) The amount of results requested
:param marker: (str) Return containers with name lexicographically after marker
:param prefix: (str) Return objects starting with prefix
:param format: (str) reply format can be json or xml (default:json)...
Set a default network type when creating nets
Default type is MAX_FILTERED
Support #3514
Split file-quota semantics for account and contner
kamaki file quota --> only for accountkamaki file quota <container> --> kamaki file containerlimit get [container]
Support #3541
Rename file setquota to file containerlimit set
Also, do not allow user to set account quota
Fix astakos client functional test
Use 'user.token' instead of 'astakos.token'
Remove quotaholder from kamaki
This affects the cli:- remove the quotaholder commands set- remove the commissioning system (automatic command retrieval)
This affevts the clients:- remove the quotaholder client- remove the clients commissioning system...
Rename store command group to file
Feature #3566
Rename command group astakos to user
The client is still called 'astakos', but the command group is now 'user'
Add if-etag-match to pithos client upload
Merge branch 'feature-store' into develop
Add option to fail upload if remote file exists
The if-none-match header option with '*' is used in that case.This is exposed as 'if_not_exist' in PithosClient.upload_object
Feature #3574
Pametrize log file, make it globaly available
Kamaki logger module is now available to both cli and clients packagesUsers may set the log_file option in configuration file kamaki config set log_file ...
Support #3441
Return image details as headers, in image register
Feature #3512
Make --public and --sharing to work in upload
Bug #3509
Fix typo in commands.errors (self-->this)
This typo caused undesired behavior when deleting a deleted network
Bug #3547
Stop create_server from crushing by a faulty image
If the image is missing the (os, users) metadata, the create_server methodused to crush anexpectingly
Add a NL to logs to make them more readable
Fix typo in using download progress bar
Minimize requeests whn dnlding same block
If a file has multiple same blocks, download one of them and copy it to localfile locations
fixbug 3555: blcks missing if same to other blcks
Create a livetest that catches bug #3555
A boring file is a file with at least two same blocksKamaki fails to download more than 1 same blocks, therefore the downloadedfile is corruptedThis test fixes the bug